<?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=Ds4113</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=Ds4113"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Ds4113"/>
	<updated>2026-04-04T13:04:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543422</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543422"/>
		<updated>2016-02-26T05:30:54Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\alpha_V = \frac{1}{V}\,\left(\frac{\partial V}{\partial T}\right)_p&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Physically, temperature is related to the average kinetic energy of the system. As the temperature increases, the kinetic energy increases as well. This results in molecules moving faster and having, on average, greater separation. Macroscopically this results in the material having a larger volume.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static. This could also possibly mean that the quasi-harmonic approach is not very suitable for studying phase transition phenomena.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run.  &lt;br /&gt;
&lt;br /&gt;
The system consisted of 32 unit cells (64 atoms). Generally, more atoms should yield more accurate results, but the computations become more power-demanding. Based on the findings in the DOS part of this experiment, somewhere between 10x10x10 to 20x20x20 unit cells should be needed to give accurate results, as each additional unit cell represent an additional k-point that can be sampled in the MD simulations. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543421</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543421"/>
		<updated>2016-02-26T05:28:53Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\alpha_V = \frac{1}{V}\,\left(\frac{\partial V}{\partial T}\right)_p&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Physically, temperature is related to the average kinetic energy of the system. As the temperature increases, the kinetic energy increases as well. This results in molecules moving faster and having, on average, greater separation. Macroscopically this results in the material having a larger volume.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static. This could also possibly mean that the quasi-harmonic approach is not very suitable for studying phase transition phenomena.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run.  &lt;br /&gt;
&lt;br /&gt;
The system consisted of 32 unit cells (64 atoms). Generally, more atoms should yield more accurate results, but the computations become more power-demanding. Based on the findings in the DOS part of this experiment, somewhere between 10x10x10 to 20x20x20 unit cells should be needed to give accurate results. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543420</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543420"/>
		<updated>2016-02-26T05:25:12Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\alpha_V = \frac{1}{V}\,\left(\frac{\partial V}{\partial T}\right)_p&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Physically, temperature is related to the average kinetic energy of the system. As the temperature increases, the kinetic energy increases as well. This results in molecules moving faster and having, on average, greater separation. Macroscopically this results in the material having a larger volume.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static. This could also possibly mean that the quasi-harmonic approach is not very suitable for studying phase transition phenomena.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543419</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543419"/>
		<updated>2016-02-26T05:23:31Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\alpha_V = \frac{1}{V}\,\left(\frac{\partial V}{\partial T}\right)_p&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Physically, temperature is related to the average kinetic energy of the system. As the temperature increases, the kinetic energy increases as well. This results in molecules moving faster and having, on average, greater separation. Macroscopically this results in the material having a larger volume.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543418</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543418"/>
		<updated>2016-02-26T05:22:35Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
&lt;br /&gt;
Physically, temperature is related to the average kinetic energy of the system. As the temperature increases, the kinetic energy increases as well. This results in molecules moving faster and having, on average, greater separation. Macroscopically this results in the material having a larger volume.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543417</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543417"/>
		<updated>2016-02-26T05:17:54Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The DOS Curve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data (results based on only one k-point (0.5000, 0.5000, 0.5000)),  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543416</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543416"/>
		<updated>2016-02-26T05:13:24Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.09.02.png|frameless|180x180px]]&lt;br /&gt;
&lt;br /&gt;
for system doing non-expansion work, this translates into&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 05.10.01.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_05.10.01.png&amp;diff=543415</id>
		<title>File:Screen Shot 2016-02-26 at 05.10.01.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_05.10.01.png&amp;diff=543415"/>
		<updated>2016-02-26T05:10:16Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_05.09.02.png&amp;diff=543414</id>
		<title>File:Screen Shot 2016-02-26 at 05.09.02.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_05.09.02.png&amp;diff=543414"/>
		<updated>2016-02-26T05:09:36Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543413</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543413"/>
		<updated>2016-02-26T05:04:34Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The DOS Curve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Qualitatively speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
[[File:Screen Shot 2016-02-26 at 04.58.56.png|thumb|360x360px|&#039;&#039;&#039;Fig. 1.2. &#039;&#039;&#039;DOS curve shows higher density (lines B and C) at frequencies corresponding to higher density of curves in the graph of phonon dispersion.]] &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_04.58.56.png&amp;diff=543410</id>
		<title>File:Screen Shot 2016-02-26 at 04.58.56.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-26_at_04.58.56.png&amp;diff=543410"/>
		<updated>2016-02-26T05:00:56Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543409</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543409"/>
		<updated>2016-02-26T05:00:15Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The DOS Curve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, with the&lt;br /&gt;
main peaks clearly visible, but with random, although minor, fluctuations along&lt;br /&gt;
the curve. Due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
The calculations returned the graphs of phonon dispersion in our system. There is a relationship between the dispersion and the phonon DOS curve (Fig. 1.2., the graph of phonon dispersion taken from the script&amp;lt;ref name=&amp;quot;:3&amp;quot;&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;). Simply speaking, the higher density of &#039;lines&#039; in some particular region of energy results in higher DOS as the lines in the graph of phonon dispersion represents energy states. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543173</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543173"/>
		<updated>2016-02-25T21:22:31Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Literature */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016]. - In the MD part, I&#039;ve cited few things from my previous lab report on MD.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543170</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543170"/>
		<updated>2016-02-25T21:20:02Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, giving the &amp;lt;math&amp;gt;T^2&amp;lt;/math&amp;gt; shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching &amp;lt;math&amp;gt;6k_B&amp;lt;/math&amp;gt; per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900 K and&lt;br /&gt;
T=1000 K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543169</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543169"/>
		<updated>2016-02-25T21:18:43Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The DOS Curve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around &amp;lt;math&amp;gt;300 cm^{-1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;700-800 cm-^{1}&amp;lt;/math&amp;gt;). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character.&lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543167</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543167"/>
		<updated>2016-02-25T21:17:19Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Quasi-harmonic Approximation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E = F + TS&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H = E + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;G = F + PV&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543165</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543165"/>
		<updated>2016-02-25T21:16:50Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Quasi-harmonic Approximation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated:&lt;br /&gt;
&lt;br /&gt;
E = F + TS&lt;br /&gt;
&lt;br /&gt;
H = E + PV&lt;br /&gt;
&lt;br /&gt;
G = F + PV&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543163</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543163"/>
		<updated>2016-02-25T21:15:21Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Quasi-harmonic Approximation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_21.08.10.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543162</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543162"/>
		<updated>2016-02-25T21:14:45Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Quasi-harmonic Approximation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 21.08.10.png|left|frameless]]   &lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-25_at_21.08.10.png&amp;diff=543160</id>
		<title>File:Screen Shot 2016-02-25 at 21.08.10.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-25_at_21.08.10.png&amp;diff=543160"/>
		<updated>2016-02-25T21:11:37Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543137</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543137"/>
		<updated>2016-02-25T20:46:32Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Buckingham repulsive potential in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543136</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543136"/>
		<updated>2016-02-25T20:43:35Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
&#039;Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Saman, D. (2016). &#039;&#039;Liquid Simulations&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:DS4113_LIQ&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.001 ps). &lt;br /&gt;
&lt;br /&gt;
&#039;When setting-up a calculation, it is importnant to decide what time-step to use. Generally, larger steps allows the system to equilibriate quicker (less steps needed), but, as discussed above, introduces some errors, which can even become significant (at large enough time-steps). Using smaller time-steps results in both more accurate and more precise results, but the system takes longer to equilibrate. It is also more time-demanding to run the simulation for longer times, as the number of steps needed to calculate is larger. It is therefore important to find a balance between these two extremes.&#039;&amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;  &amp;lt;/nowiki&amp;gt;The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543129</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543129"/>
		<updated>2016-02-25T20:37:51Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values. As the temperature gets higher, one could expect that the MD calculations would should a transition to the liquid phase, as there is some dynamics in the system. The quasi-harmonic approximation is not expected to show any phase transitions.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543123</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543123"/>
		<updated>2016-02-25T20:30:56Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The DOS Curve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results were compared and it was found that the obtained HFE were the same to 5 significant figures. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543121</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543121"/>
		<updated>2016-02-25T20:27:30Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Averaged volume of the unit cell at different temperatures. Calculated using MD.&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 3. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 3. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543119</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543119"/>
		<updated>2016-02-25T20:23:40Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow (Table 1, Fig. 2). Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 1. Dependence of HFE per cell and the grid density.&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well (see Fig. 3). &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen in Figure 4. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow (Fig. 5). The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case.&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature (see Fig. 6).&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From Figure 9, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in Table 2. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Table 2. Comparison of the expansion coefficient at two different temperatures.&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543110</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543110"/>
		<updated>2016-02-25T20:17:09Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 396, 468 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543107</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543107"/>
		<updated>2016-02-25T20:11:51Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Appendix 1 - Raw Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
=== Quasi-harmonic approximation ===&lt;br /&gt;
{|&lt;br /&gt;
|+&#039;&#039;&#039;Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&#039;&#039;&#039;&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MD Simulations ===&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycobEFZNThTLUQxMEk/view?usp=sharing 300 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoZkVuNXpZZUx5dG8/view?usp=sharing 400 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoaGtqX2VlQTZCS28/view?usp=sharing 500 K]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B9N19Pi9BycoazBJT1JkZzRoQ0E/view?usp=sharing 900 K]&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543100</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543100"/>
		<updated>2016-02-25T20:02:04Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Appendix 1 - Raw Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
{|&lt;br /&gt;
|+Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
  |&amp;lt;math&amp;gt;\alpha / K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543099</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543099"/>
		<updated>2016-02-25T19:59:33Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Appendix 1 - Raw Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
{|&lt;br /&gt;
|+Calculated properties of the 10x10x10 system using the quasi-harmonic approximation at different temperatures&lt;br /&gt;
|Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / A^3&lt;br /&gt;
  |\alpha / K^{-1}&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543098</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543098"/>
		<updated>2016-02-25T19:57:53Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Appendix 1 - Raw Data ==&lt;br /&gt;
{|&lt;br /&gt;
  |Temperature / K&lt;br /&gt;
  |HFE per unit cell / eV&lt;br /&gt;
  |a / A&lt;br /&gt;
  |Volume / A^3&lt;br /&gt;
  |\alpha / K^{-1}&lt;br /&gt;
  |Entropy per unit cell / eV/K&lt;br /&gt;
  |Heat Capacity per unit cell (const. vol.) / ev/K&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |0&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90097751&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |100&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90241883&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.986564&lt;br /&gt;
  |18.837&lt;br /&gt;
  |1.00865E-05&lt;br /&gt;
  |0.000022&lt;br /&gt;
  |0.000068&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |200&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.90937571&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.987609&lt;br /&gt;
  |18.856&lt;br /&gt;
  |1.80314E-05&lt;br /&gt;
  |0.000126&lt;br /&gt;
  |0.000244&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |300&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.92812222&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.989396&lt;br /&gt;
  |18.89&lt;br /&gt;
  |2.27634E-05&lt;br /&gt;
  |0.000248&lt;br /&gt;
  |0.00035&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |400&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.95859089&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.991637&lt;br /&gt;
  |18.933&lt;br /&gt;
  |2.48244E-05&lt;br /&gt;
  |0.000359&lt;br /&gt;
  |0.000409&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |500&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-40.9994319&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.994145&lt;br /&gt;
  |18.98&lt;br /&gt;
  |2.73973E-05&lt;br /&gt;
  |0.000456&lt;br /&gt;
  |0.000442&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |600&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.04931063&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.996834&lt;br /&gt;
  |19.032&lt;br /&gt;
  |2.78478E-05&lt;br /&gt;
  |0.00054&lt;br /&gt;
  |0.000463&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |700&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.10711372&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |2.999658&lt;br /&gt;
  |19.085&lt;br /&gt;
  |2.98664E-05&lt;br /&gt;
  |0.000614&lt;br /&gt;
  |0.000476&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |800&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.17188564&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.002605&lt;br /&gt;
  |19.142&lt;br /&gt;
  |3.91809E-05&lt;br /&gt;
  |0.000681&lt;br /&gt;
  |0.000485&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |900&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.24301122&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.00653&lt;br /&gt;
  |19.217&lt;br /&gt;
  |2.2376E-05&lt;br /&gt;
  |0.000741&lt;br /&gt;
  |0.000492&lt;br /&gt;
 &lt;br /&gt;
 |-&lt;br /&gt;
  |1000&lt;br /&gt;
  |&amp;lt;nowiki&amp;gt;-41.31984077&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |3.0088&lt;br /&gt;
  |19.26&lt;br /&gt;
  |&lt;br /&gt;
  |0.000795&lt;br /&gt;
  |0.000497&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543091</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543091"/>
		<updated>2016-02-25T19:54:03Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|373x373px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left|thumb]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543085</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543085"/>
		<updated>2016-02-25T19:52:13Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|375x375px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.|left]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543081</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543081"/>
		<updated>2016-02-25T19:51:37Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|345x345px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543080</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543080"/>
		<updated>2016-02-25T19:51:02Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|363x363px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|339x339px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|340x340px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.|356x356px]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.|358x358px]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|357x357px|&#039;&#039;&#039;Fig. 9. &#039;&#039;&#039;The volume of a unit cell vs Temprature for the Quasi-harmonic approximation (0 GPa), dynamical calculations (0 GPa), and actuall experimental data (10E-4 GPa).]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543078</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543078"/>
		<updated>2016-02-25T19:48:46Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7. &#039;&#039;&#039;The dependence of&lt;br /&gt;
the coefficient of thermal expansion on temperature.]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|&#039;&#039;&#039;Fig. 8. &#039;&#039;&#039;Instantaneous and averaged volume of the MgO system containing 32 unit cells at 400 K.]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px|Fig. 9.]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543076</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543076"/>
		<updated>2016-02-25T19:47:03Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px|&#039;&#039;&#039;Fig. 4. &#039;&#039;&#039;The Helmholtz&lt;br /&gt;
Energy as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5. &#039;&#039;&#039;Entropy and&lt;br /&gt;
Heat Capacity as a Function&lt;br /&gt;
of Temperature for the Quasi-Harmonic Approximation.]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px|&#039;&#039;&#039;Fig. 6. &#039;&#039;&#039;Cell&lt;br /&gt;
parameter, a, as a function of Temperature for the Quasi-harmonic approximation.]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7.&#039;&#039;&#039;]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|Fig. 8.]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px|Fig. 9.]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543072</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543072"/>
		<updated>2016-02-25T19:44:59Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Helmholtz Free energy, Heat Capacity and Entropy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px|&#039;&#039;&#039;Fig. 2. &#039;&#039;&#039;The Helmholtz Free Energy, F,&lt;br /&gt;
as a function of the grid density parameter.]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|&#039;&#039;&#039;Fig. 3. &#039;&#039;&#039;Entropy as a function of the grid parameter.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px|&#039;&#039;&#039;Fig. 4.&#039;&#039;&#039;]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5.&#039;&#039;&#039;]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px|&#039;&#039;&#039;Fig. 6.&#039;&#039;&#039;]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7.&#039;&#039;&#039;]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|Fig. 8.]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px|Fig. 9.]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543070</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543070"/>
		<updated>2016-02-25T19:42:15Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fig. 1.&#039;&#039;&#039; The effect of the grid density on the DOS curve. &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px|&#039;&#039;&#039;Fig. 2.&#039;&#039;&#039;]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px|Fig. 3.]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px|&#039;&#039;&#039;Fig. 4.&#039;&#039;&#039;]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px|&#039;&#039;&#039;Fig. 5.&#039;&#039;&#039;]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px|&#039;&#039;&#039;Fig. 6.&#039;&#039;&#039;]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb|&#039;&#039;&#039;Fig. 7.&#039;&#039;&#039;]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb|Fig. 8.]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px|Fig. 9.]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543062</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543062"/>
		<updated>2016-02-25T19:34:42Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 19.31.43.png|left|thumb]]&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-25_at_19.31.43.png&amp;diff=543060</id>
		<title>File:Screen Shot 2016-02-25 at 19.31.43.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Screen_Shot_2016-02-25_at_19.31.43.png&amp;diff=543060"/>
		<updated>2016-02-25T19:32:59Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543056</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543056"/>
		<updated>2016-02-25T19:28:08Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
Overall, I&#039;ve found this experiment very enjoyable. The script was very detailed and easy to understand. The calculation set-up was easy as well, yet it provided very useful and accurate results.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543055</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543055"/>
		<updated>2016-02-25T19:26:12Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour of the system as it undergoes phase transition from solid to liquid.&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543053</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543053"/>
		<updated>2016-02-25T19:25:18Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour as it changes from solid to liquid&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543050</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543050"/>
		<updated>2016-02-25T19:24:50Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients, were calculated using molecular dynamics simulations. It was found that the volumes were larger than the literature values, yet closer to reality compared to the quasi-harmonic approach. The thermal expansion coefficients were again lower that the ones found in literature.&lt;br /&gt;
&lt;br /&gt;
Next time doing the experiment, I would:&lt;br /&gt;
* re-run the quasi-harmonic approximation calculations in the region between 900-1000 K to find, what was behind the fluctuation of the thermal expansion coefficient in that region. &lt;br /&gt;
* try solve the problem that caused problems with creating my our systems, so that I could study the CaO and Li systems, to back up my speculations.&lt;br /&gt;
* try to find a structure file for the zeolite mentioned in the script, again to back up my speculations.&lt;br /&gt;
* try to run the MD simulations at larger temperature scale to examine the behaviour as it changes from solid to liquid&lt;br /&gt;
&lt;br /&gt;
== Literature ==&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543032</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543032"/>
		<updated>2016-02-25T19:13:52Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next part, the DOS curve was calculated and plotted, showing three prominent peaks (at approximately 306, 414 and 792 cm-1). For comparison, DOS curves calculated using the grid densities of 1x1x1 and 50x50x50 were showed and the effect of the grid density on the quality of the curve explained.&lt;br /&gt;
&lt;br /&gt;
For the 10x10x10 grid density, entropy, heat capacity and Helmholtz free energy were calculated in the region between 0 to 1000 K. It was found that the calculated values matched literature values quite well. Single cell volumes, lattice parameters and the thermal expansion coefficients were calculated as well, but it was found that these deviated from the literature values quite greatly (calculation results 25-40% lower than literature values).&lt;br /&gt;
&lt;br /&gt;
In the last part, the cell volumes, and consequently the thermal expansion coefficients,&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543027</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=543027"/>
		<updated>2016-02-25T19:02:31Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
In this&lt;br /&gt;
experiment, numerous thermodynamic properties of MgO were calculated using a&lt;br /&gt;
simple quasi-harmonic approach as well is using molecular dynamics simulations.&lt;br /&gt;
It was found that grid densities of 5x5x5 should yield reasonable accurate&lt;br /&gt;
results, but as it is always more accurate using higher densities, a grid&lt;br /&gt;
density of 10x10x10 was used throughout the experiment.&lt;br /&gt;
&lt;br /&gt;
Is the next&lt;br /&gt;
part, the DOS curve was calculated and plotted, showing three prominent peaks&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542965</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542965"/>
		<updated>2016-02-25T18:10:12Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle.&amp;lt;ref&amp;gt;Jackson, I. (2000). &#039;&#039;The Earth&#039;s mantle&#039;&#039;. Cambridge: Cambridge University Press.pp. 311–378.&amp;lt;/ref&amp;gt; It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left -taken from the script&amp;lt;ref&amp;gt;Ch.ic.ac.uk, (2016). &#039;&#039;Calculating the phonon modes of MgO&#039;&#039;. [online] Available at: &amp;lt;nowiki&amp;gt;http://www.ch.ic.ac.uk/harrison/Teaching/Thermal_Expansion/phonons.html&amp;lt;/nowiki&amp;gt; [Accessed 25 Feb. 2016].&amp;lt;/ref&amp;gt;, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature.&amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Anderson, O. and Zou, K. (1990). Thermodynamic Functions and Properties of MgO at High Compression and High Temperature. &#039;&#039;Journal of Physical and Chemical Reference Data&#039;&#039;, 19(1), p.69.&amp;lt;/ref&amp;gt; This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa.&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542945</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542945"/>
		<updated>2016-02-25T17:57:01Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties (namely the Helmholtz Free Energy, Entropy and Heat Capacity at a constant volume) in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle. It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature. This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa. This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542935</id>
		<title>Rep:Mod:DS4113 MGO</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:DS4113_MGO&amp;diff=542935"/>
		<updated>2016-02-25T17:49:15Z</updated>

		<summary type="html">&lt;p&gt;Ds4113: /* The Molecular Dynamics Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this computational experiment, some thermodynamic properties in the region from 0 to 1000 K at 0 GPa, as well as some additional ones - the DOS curve, of crystalline MgO were calculated using two different methods, the Quasi-harmonic approximation, and molecular dynamics. Understanding the behaviour of MgO under range of different conditions is vital for further advances in geological sciences, as Mg and O are the two most abundant species in Earth&#039;s mantle. It is often considerably hard to obtain experimental data due to the extreme conditions in the Earth&#039;s mantle, so it is often the case that theoretical calculations are the only tool how to broaden our understanding.&lt;br /&gt;
&lt;br /&gt;
All calculations were done on college computers, using Red Hat Enterprise Linux 6, DLV and GULP. They were generally, except for the molecular dynamics calculations, not very computationally demanding, and the results were usually obtainable in a matter of seconds. The structural files of the MgO system had been provided to us.&lt;br /&gt;
&lt;br /&gt;
It was found that the results and trends obtained by both methods matched experimental data quite well.&lt;br /&gt;
&lt;br /&gt;
== The Quasi-harmonic Approximation ==&lt;br /&gt;
This simple, yet quite powerful, approximation assumes that the phononic vibrations in the crystal do not interfere with each other, so one can effectively treat them as independent harmonic oscillations. From this fact, the energy levels of the system can be established, and then, using computational power, the system&#039;s partition function, Z, can be calculated. It is then a matter of simple statistical thermodynamics to obtain the Helmholtz Free energy, from which all other thermodynamic properties can be calculated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;F = -k_BTln(Z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then &lt;br /&gt;
&lt;br /&gt;
[[File:Screen_Shot_2016-02-25_at_12.27.58.png|frameless|264x264px]]&lt;br /&gt;
&lt;br /&gt;
Knowing F, S and P, other thermodynamic functions, such as enthalpy, the Gibbs Free Energy, etc., can be calculated.&lt;br /&gt;
&lt;br /&gt;
As a general rule, this approach is not suitable for very low or very high temperatures. At very low temperatures, the quantum effects start to play a more dominant role, this has to be often corrected which is beyond the scope of this experiment. At very high temperatures, the calculated properties deviate from the actual ones as well. To ensure the validity of the results of the Quasi-harmonic approach, the calculated thermal expansivity coefficient is often a posteriori compared to the experimental values. This idea shall be discussed more deeply bellow.&lt;br /&gt;
&lt;br /&gt;
== The DOS Curve ==&lt;br /&gt;
The Density of States (DOS) can defined as the number of states in a particular region around a a particular energy. When plotted, it often forms a continuous curve, and can tell us more about the distribution of levels with energy, which can be used to predict the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
Ideally, to obtain precise results, one should sum over all possible k-points. Practically, that would be very computationally demanding, so often we only sum over a certain number of k-points which if often enough to obtain a good picture of the behaviour of the system. &lt;br /&gt;
&lt;br /&gt;
For the DOS curve, as the density of the grid of k-points increases, the DOS&lt;br /&gt;
curve becomes more smooth. Bellow, two extreme cases can be seen (1x1x1 grid on&lt;br /&gt;
the left, 50x50x50 on the right).  &lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.45.29.png|frameless|251x251px]][[File:Screen Shot 2016-02-25 at 15.41.39.png|frameless]]  &lt;br /&gt;
&lt;br /&gt;
We can see that even though the DOS&lt;br /&gt;
calculated for the 1x1x1 grid does not give us much useful data,  it&lt;br /&gt;
hints on where the main to peaks in the actual DOS curve are (region around 300&lt;br /&gt;
cm-1 and 700-800 cm-1). It was found that grid sizes from 20x20x20 up gave&lt;br /&gt;
almost smooth DOS curves, but due to limited computational power, grid size of&lt;br /&gt;
10x10x10 was initially used in the next part. Later, a 50x50x50 grid (biggest&lt;br /&gt;
one that did not result in an error due to bad memory allocation) was used and&lt;br /&gt;
the properties were recalculated. Both results are shown and compared. &lt;br /&gt;
&lt;br /&gt;
It can be expected that similar sizes should be appropriate&lt;br /&gt;
for a similar oxide, as only the mass of of the metal changes in the calculations,&lt;br /&gt;
the symmetry of the system remains the same, resulting in DOS of the approximately same accuracy. It was attempted to run the calculations using CaO, instead of MgO, but the calculations resulted in an error due to the Ca cations now have any positive charge, an obstacle that I was not able to overcome.&lt;br /&gt;
&lt;br /&gt;
As for zeolites, their structure is more complicated,&lt;br /&gt;
compared to simple MgO or CaO crystals, so it could be expected that higher&lt;br /&gt;
grid density would be needed to collect all the necessary vibrations.&lt;br /&gt;
&lt;br /&gt;
Situation for Li is not very clear, as I would expect&lt;br /&gt;
lower grid density could be enough to sample over a regular metallic lattice with&lt;br /&gt;
only one type of atoms. However, there could be some unexpected issues with the&lt;br /&gt;
structure not being simply crystalline, but having a metallic character. &lt;br /&gt;
&lt;br /&gt;
== The Helmholtz Free energy, Heat Capacity and Entropy ==&lt;br /&gt;
In the next part of the experiment, the dependence of the&lt;br /&gt;
Helmholtz free energy (HFE) at 300 K and 0 GPa on the grid density was&lt;br /&gt;
calculated. The value of HFE for 1x1x1 grid was found to be -40.930301 eV,&lt;br /&gt;
after increasing the density to 2x2x2, the value overshot to -40.926609 eV, and&lt;br /&gt;
then gradually reached a stable value of around -40.92648 eV, as the grid size&lt;br /&gt;
was increased up to 15x15x15. This can be seen bellow. Accuracy is included for comparison.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.47.39.png|frame|398x398px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Grid density&lt;br /&gt;
!HFE per cell / eV&lt;br /&gt;
!Accuracy / eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9303(0)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9266(09)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.01&lt;br /&gt;
|-&lt;br /&gt;
|3x3x3&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(32)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(5)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|5x5x5&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-40.9264(63)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|6x6x6&lt;br /&gt;
|40.9264(71)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|10x10x10&lt;br /&gt;
|40.9264(8)&lt;br /&gt;
|0.001&lt;br /&gt;
|-&lt;br /&gt;
|15x15x15&lt;br /&gt;
|40.9264(82)&lt;br /&gt;
|0.001&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The effect of the grid density on entropy has been evaluated&lt;br /&gt;
as well. &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.50.28.png|left|thumb|372x372px]]&lt;br /&gt;
It can be seen that in this case, the density needed is even&lt;br /&gt;
lower, and the system reaches an approximately constant value at even the 2x2x2&lt;br /&gt;
configuration. Nevertheless, as above, the value of entropy probably gets more&lt;br /&gt;
accurate with rising grid density. &lt;br /&gt;
&lt;br /&gt;
In the next part, the HFE, entropy and heat capacity were&lt;br /&gt;
calculated as a function of temperature in the range 0 – 1000 K. Initially grid&lt;br /&gt;
density of 10x10x10 was used. Calculations were then re-run using 50x50x50 grid&lt;br /&gt;
density to see what, if any, effect would the change have on the thermodynamic&lt;br /&gt;
properties.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.53.08.png|thumb|310x310px]]&lt;br /&gt;
First, lets&lt;br /&gt;
examine the Helmholtz Free Energy, F. The plotted dependence can be seen &#039;&#039;&#039;bellow&#039;&#039;&#039;. For raw data, see Appendix 1.&lt;br /&gt;
&lt;br /&gt;
 From thermodynamics, we know that F = U – TS.&lt;br /&gt;
As the shape of the calculated dependence is somewhat hyperbolic, one could&lt;br /&gt;
assume that the entropy itself is, at least in the region in discussion, also&lt;br /&gt;
approximately linearly dependent on T, giving the T^2 shape overall. Our&lt;br /&gt;
discussion, however, does not need to stop here, as during the calculations,&lt;br /&gt;
the entropy itself was calculated as well. The&lt;br /&gt;
graphical dependence of entropy and heat capacity (all presented values of heat capacities are at constant volume) on temperature can be seen&lt;br /&gt;
bellow. The graph includes experimental data from literature as well. It can be&lt;br /&gt;
seen that the computationally obtained data compare quite well with the&lt;br /&gt;
calculated heat capacity reaching closely the actual experimental values as the&lt;br /&gt;
temperature increases. As for entropy, there was a constant absolute difference&lt;br /&gt;
between the computational and experimental values of about 0.04 meV/K.cell&lt;br /&gt;
which was independent of temperature.  &lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 15.55.45.png|left|thumb|378x378px]]   &lt;br /&gt;
&lt;br /&gt;
One can mention that the entropy&lt;br /&gt;
actually really does rise somewhat linearly with temperature. There is a&lt;br /&gt;
thermodynamic expression for the behaviour of entropy with temperature as well:&lt;br /&gt;
&lt;br /&gt;
However, the above expression&lt;br /&gt;
assumes constant heat capacity, which, at least at lower T, is not the case:&lt;br /&gt;
&lt;br /&gt;
The behaviour of the heat&lt;br /&gt;
capacity is as expected (see [https://en.wikipedia.org/wiki/Einstein_solid Einstein solid]). As the&lt;br /&gt;
temperature rises to infinity, the heat capacity (for our system) should be&lt;br /&gt;
approaching 6k_B per cell (0.51794 meV/K.cell). We can see that this theoretical&lt;br /&gt;
conclusion agrees with the computational data (0.497 meV/K.cell at T = 1000 K), as well as the literature ones.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.03.08.png|thumb|308x308px]]&lt;br /&gt;
The also calculations yielded the&lt;br /&gt;
value of optimal lattice size at each temperature. As expected, the lattice&lt;br /&gt;
size grows with growing temperature &#039;&#039;&#039;(See bellow):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At lower temperatures, the growth of the lattice parameter is slow, but as the temperature increased, the lattice parameter started to grow more rapidly. At temperatures above 600K, it growth became approximately linear.&lt;br /&gt;
&lt;br /&gt;
Knowing the difference in&lt;br /&gt;
temperatures, and the differences in lattice volumes, approximate coefficients&lt;br /&gt;
of thermal expansions:&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 16.12.22.png|left|thumb]]&lt;br /&gt;
The results are, however, only approximate, as the difference between the temperatures used to calculate the coefficient was 100 K. Ideally the difference should be as small as possible.&lt;br /&gt;
&lt;br /&gt;
The coefficients are clearly&lt;br /&gt;
dependent on the temperature. At lower temperatures, the value of the&lt;br /&gt;
coefficient grows rapidly, but at higher temperatures it seems to plateau.  There is a large fluctuation at T = 900K and&lt;br /&gt;
T=1000K. There could be two reasons behind it. It could really indeed by a&lt;br /&gt;
random fluctuation, or, as we are nearing to the decomposition temperature (MgO&lt;br /&gt;
is only stable at T bellow 700 K), it could mark some chemical/structural&lt;br /&gt;
changes of the system. The former is probably closer to the truth, as the quasi-harmonic picture is rather static.&lt;br /&gt;
&lt;br /&gt;
Interestingly enough, the calculated values were between 40 (at 300 K) to 25 (at 800 K) % smaller compared to the literature. This is the lowest accuracy encountered during this experiment, as the other calculated properties matches the experimental ones quite well.&lt;br /&gt;
&lt;br /&gt;
== The Molecular Dynamics Results ==&lt;br /&gt;
Grant and Richards defines molecular dynamics simply as ‘simulation of motions of a&lt;br /&gt;
system of particles (atoms) with respect to the forces which are present’&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;Grant, Guy H, and W. G Richards. &#039;&#039;Computational Chemistry&#039;&#039;. Oxford [England]: Oxford University Press, 1995. Print.&amp;lt;/ref&amp;gt;. If&lt;br /&gt;
we consider a system of particles, each at some position, r, and under an&lt;br /&gt;
influence of some potential field (Lennard-Jones in our case, but there are&lt;br /&gt;
many others), we can then easily calculate the forces that the particles exert&lt;br /&gt;
on each other. Using simple Newtonian mechanics, it can be shown that if we&lt;br /&gt;
know the acting forces and initial velocities/momenta, as well as initial&lt;br /&gt;
positions, we can calculate a dynamic evolution of the given system with time:&lt;br /&gt;
[[File:DS4113 position.png|centre|183x183px]]&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;If we compare this result to the Taylor series for discplacement:&amp;lt;/span&amp;gt;&lt;br /&gt;
[[File:DS4113 Taylor.png|centre|frameless|375x375px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;We can&lt;br /&gt;
mention, that our solution only contains the first 3 terms, but not the rest.&lt;br /&gt;
Generally, our solution is correct for infinitesimally small time-steps, but as the time-step gets bigger, this introduces some level of errors.&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Also, we&lt;br /&gt;
assume that during the whole duration the step, the acceleration is constant,&lt;br /&gt;
which, once again, introduces some errors. This error can be reduced either by&lt;br /&gt;
using smaller time-steps, or, as it is the case for this experiment, using a so-called Leapfrog Verlet&lt;br /&gt;
method&amp;lt;/span&amp;gt;&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Leapfrom Werlet method calculates the avegare acceleration between t –dT and t+dT :&lt;br /&gt;
[[File:DS 4113 Verlet1.png|centre|frameless]]&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;math&amp;gt; a = F/m&amp;lt;/math&amp;gt;, we can substitute back into the first equation to get:&lt;br /&gt;
[[File:Verlet 2.png|centre|frameless|342x342px]]&lt;br /&gt;
In this equation, we don’t use both velocity and acceleration at the same time, which&lt;br /&gt;
minimizes the errors.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our calculations, the&lt;br /&gt;
system was set up and allowed to equilibrate (500 steps with time-steps of 1 fs),&lt;br /&gt;
after which dynamical properties of the system were collected (again 500 steps&lt;br /&gt;
with time-steps of 0.005 ps). The calculations were run at 4 different&lt;br /&gt;
temperatures: 300 K, 400 K, 500 K and 900 K. At each temperature, the values of&lt;br /&gt;
the properties fluctuated, but the averaged results converged to a stable value&lt;br /&gt;
in approximately 0.1 ps, and remained stable during the rest of the run. &lt;br /&gt;
&lt;br /&gt;
Among others, the calculations&lt;br /&gt;
yielded averaged cell volumes. Results can be seen bellow.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature / K&lt;br /&gt;
!Unit cell volume / &amp;lt;math&amp;gt;A^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|18.8406 ± 0.0515&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|18.8940 ± 0.0889&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|18.9476 ± 0.0520&lt;br /&gt;
|-&lt;br /&gt;
|900&lt;br /&gt;
|19.1894 ± 0.0094&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparison between&lt;br /&gt;
results obtained by Quasi-Harmonic approximation, dynamic calculations and&lt;br /&gt;
experimental data can be seen bellow. As more data was available, basic error&lt;br /&gt;
analysis for the dynamic calculations was done as well.&lt;br /&gt;
[[File:Screen Shot 2016-02-25 at 17.15.19.png|left|thumb|558x558px]]&lt;br /&gt;
The calculations were run at p =&lt;br /&gt;
0 GPa, the experimental data were collected at p = 0.0001 GPa. This could&lt;br /&gt;
potentially affect the cell volumes gathered by experimental means, but the&lt;br /&gt;
effect should not be very large. From the graph, it can be seen that as the&lt;br /&gt;
temperature gets higher, the difference between the dynamic calculations and&lt;br /&gt;
quasi-harmonic calculations becomes smaller, and both results become more&lt;br /&gt;
accurate with respect to the experimental data. In the whole region of our&lt;br /&gt;
focus, 300 – 900 K, the dynamic calculations yielded results closer to the experimental ones.It should be noted, however, that, as opposed to simple quasi-harmonic calculations, had to be left running overnight as they are more computationally demanding. It may not be a problem in our case, but in cases of more complex system containing more particles, this could become an obstacle. Thus, as usual in computational chemistry, there is some interplay between the accuracy of the results and the computational power needed to obtain the results.&lt;br /&gt;
As for the expansion coefficients, only two could be calculated, as due to the method being computationally very demanding, a smaller range of temperature could be studied. Results can be seen in &#039;&#039;&#039;Table XX&#039;&#039;&#039;. Clearly, the results obtained using molecular dynamics calculations are more accurate, yet still obviously lower than the experimental values.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Temperature /K&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Lit) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(Quasi-harm. approx.) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
!&amp;lt;math&amp;gt;\alpha(MD) /10{-6}K^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|300&lt;br /&gt;
|31.2&lt;br /&gt;
|22.7634&lt;br /&gt;
|28.3628&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|35.7&lt;br /&gt;
|24.8244&lt;br /&gt;
|28.3395&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ds4113</name></author>
	</entry>
</feed>