<?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=Ym2814</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=Ym2814"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Ym2814"/>
	<updated>2026-04-21T07:03:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610853</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610853"/>
		<updated>2017-03-24T05:58:56Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Methodology */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume at constant pressure, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
===Aims===&lt;br /&gt;
&lt;br /&gt;
This exercise is to investigate the thermal expansion of MgO lattice by using both quasi-harmonic approximation and molecular dynamics simulations.&lt;br /&gt;
&lt;br /&gt;
===Tools in use===&lt;br /&gt;
The softwares being used for all simulations are RedHat Linux, DLVisualize and GULP.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation (MD)]]&lt;br /&gt;
&lt;br /&gt;
The QHA and MD share the same value of expansion coefficient due to the same gradient (0.0005). It seems that QHA is more accurate when the temperature is below 300 K because zero-point energy is taking into account. However, MD will be a more reliable method for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
The grid size will affect the accuracy of the calculation. The accuracy would be perfect for an infinite grid but the calculation would take an infinite amount of CPU time to run. By performing the phonon dispersion curves and density of states, 32x32x32 grid size was chosen for quasi-harmonic approximation and a supercell containing 32 MgO units was chosen for molecular dynamics.&lt;br /&gt;
&lt;br /&gt;
The thermal expansion of MgO lattice was simulated by both QHA and MD and comparison has been made between two methods. Same expansion coefficient has been obtained from the two methods, which is 2.65x10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. However, QHA will be more reliable at relatively low temperatures while MD is more accurate for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610851</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610851"/>
		<updated>2017-03-24T05:58:19Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
===Aims===&lt;br /&gt;
&lt;br /&gt;
This exercise is to investigate the thermal expansion of MgO lattice by using both quasi-harmonic approximation and molecular dynamics simulations.&lt;br /&gt;
&lt;br /&gt;
===Tools in use===&lt;br /&gt;
The softwares being used for all simulations are RedHat Linux, DLVisualize and GULP.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation (MD)]]&lt;br /&gt;
&lt;br /&gt;
The QHA and MD share the same value of expansion coefficient due to the same gradient (0.0005). It seems that QHA is more accurate when the temperature is below 300 K because zero-point energy is taking into account. However, MD will be a more reliable method for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
The grid size will affect the accuracy of the calculation. The accuracy would be perfect for an infinite grid but the calculation would take an infinite amount of CPU time to run. By performing the phonon dispersion curves and density of states, 32x32x32 grid size was chosen for quasi-harmonic approximation and a supercell containing 32 MgO units was chosen for molecular dynamics.&lt;br /&gt;
&lt;br /&gt;
The thermal expansion of MgO lattice was simulated by both QHA and MD and comparison has been made between two methods. Same expansion coefficient has been obtained from the two methods, which is 2.65x10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. However, QHA will be more reliable at relatively low temperatures while MD is more accurate for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610850</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610850"/>
		<updated>2017-03-24T05:52:46Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation (MD)]]&lt;br /&gt;
&lt;br /&gt;
The QHA and MD share the same value of expansion coefficient due to the same gradient (0.0005). It seems that QHA is more accurate when the temperature is below 300 K because zero-point energy is taking into account. However, MD will be a more reliable method for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
The grid size will affect the accuracy of the calculation. The accuracy would be perfect for an infinite grid but the calculation would take an infinite amount of CPU time to run. By performing the phonon dispersion curves and density of states, 32x32x32 grid size was chosen for quasi-harmonic approximation and a supercell containing 32 MgO units was chosen for molecular dynamics.&lt;br /&gt;
&lt;br /&gt;
The thermal expansion of MgO lattice was simulated by both QHA and MD and comparison has been made between two methods. Same expansion coefficient has been obtained from the two methods, which is 2.65x10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. However, QHA will be more reliable at relatively low temperatures while MD is more accurate for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610849</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610849"/>
		<updated>2017-03-24T05:52:17Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation (MD)]]&lt;br /&gt;
&lt;br /&gt;
The QHA and MD share the same value of expansion coefficient due to the same gradient (0.0005). It seems that QHA is more accurate when the temperature is below 300 K because zero-point energy is taking into account. However, MD will be a more reliable method for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
The grid size will affect the accuracy of the calculation. The accuracy would be perfect for an infinite grid but the calculation would take an infinite amount of CPU time to run. By performing the phonon dispersion curves and density of states, 32x32x32 grid size was chosen for quasi-harmonic approximation and a supercell containing 32 MgO units was chosen for molecular dynamics.&lt;br /&gt;
&lt;br /&gt;
The thermal expansion of MgO lattice was simulated by both QHA and MD and comparison has been made between two methods. Same expansion coefficient has been obtained from the two methods, which is 2.65x10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. However, QHA will be more reliable at relatively low temperatures and MD is more accurate for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610847</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610847"/>
		<updated>2017-03-24T05:37:45Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Molecular Dynamics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation (MD)]]&lt;br /&gt;
&lt;br /&gt;
The QHA and MD share the same value of expansion coefficient due to the same gradient (0.0005). It seems that QHA is more accurate when the temperature is below 300 K because zero-point energy is taking into account. However, MD will be a more reliable method for higher temperatures.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610844</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610844"/>
		<updated>2017-03-24T05:26:48Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Molecular Dynamics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
A larger cell that contains 32 MgO units was used for molecular dynamics simulation. The system is allowed to evolve in time according to Newton&#039;s second law F=ma. The time step used was 1 femtosecond and the temperatures vary from 100 K to 1000 K. The cell volume was calculated as the average of last 5 timesteps.&lt;br /&gt;
&lt;br /&gt;
[[File:MD m.png|400x400px|thumb|center|Figure 13: Cell volume against temperture for both QHA and molecular dynamic simulation]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:MD_m.png&amp;diff=610843</id>
		<title>File:MD m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:MD_m.png&amp;diff=610843"/>
		<updated>2017-03-24T05:25:10Z</updated>

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

		<summary type="html">&lt;p&gt;Ym2814: /* The Thermal Expansion of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 10: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 11: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 12: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610841</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610841"/>
		<updated>2017-03-24T05:17:47Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 3: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 4: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 5: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 6: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 7: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 8: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610840</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610840"/>
		<updated>2017-03-24T05:15:40Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Methodology */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;. The Helmholtz free energy is calculated by the equation showing below&amp;lt;ref name=&amp;quot;equation&amp;quot;&amp;gt;From Prof N. M. Harrison’s Lectrure Notes: Vibrations in crystals&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Free energy equation.png|400px|thumb|center|Equation 2: Helmholtz free energy]]&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Free_energy_equation.png&amp;diff=610838</id>
		<title>File:Free energy equation.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Free_energy_equation.png&amp;diff=610838"/>
		<updated>2017-03-24T05:13:10Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610834</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610834"/>
		<updated>2017-03-24T05:02:43Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Molecular Dynamics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
In the molecular dynamics simulation, the energy is minimized as a function of the position of the atomic position. The interionic potential is taken to be the sum of&lt;br /&gt;
pairwise additive Coulomb, van der Waals, and repulsive interactions&amp;lt;ref name=&amp;quot;10.1063/1.475727&amp;quot;&amp;gt;Masanori Matsui, Breathing shell model in molecular dynamics simulation: Application to MgO and CaO, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;108&#039;&#039;&#039;, 1998, 3304-3309.{{DOI|10.1063/1.475727}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610820</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610820"/>
		<updated>2017-03-24T04:27:33Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* The Thermal Expansion of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; K&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610819</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610819"/>
		<updated>2017-03-24T04:26:54Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* The Thermal Expansion of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt;&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;, which is very closed to the computed value.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610818</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610818"/>
		<updated>2017-03-24T04:23:44Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* The Thermal Expansion of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
 &lt;br /&gt;
In order to calculate the coefficient of thermal expansion, the structure of MgO will be optimised with respect to free energy from 0 K to 1000 K in steps of 100 K. The structure with minimum energy will be calculated at each temperature.&lt;br /&gt;
&lt;br /&gt;
[[File:table m.png|400x400px|thumb|center|Figure 9: Thermal expansion simulation at different temperatures]]&lt;br /&gt;
&lt;br /&gt;
The plots of free energy, lattice constant and cell volume against temperature are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:free energy m.png|300px|thumb|center|Figure 9: Free energy against temperature]]||[[File:lattice constant m.png|300px|thumb|Figure 10: Lattice constant against temperature]]&lt;br /&gt;
||[[File:Cell volume2.png|300px|thumb|Figure 11: Cell volume against temperature]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can be seen that free energy decreases with temperature and lattice constant increases with temperature. As for the cell volume, it increases linearly from 300 K to 1000 K with gradient equals to 0.0005. The initial cell volume is 18.836496 Å&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;. Then the expansion coefficient can be calculated by equation 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{1.836496}\times0.0005=2.65\times10^{-5} K^{-1} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In literature, the expansion coefficient at 300 K is 3.06 x 10&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_volume2.png&amp;diff=610814</id>
		<title>File:Cell volume2.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_volume2.png&amp;diff=610814"/>
		<updated>2017-03-24T04:08:28Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_volume_m.png&amp;diff=610812</id>
		<title>File:Cell volume m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_volume_m.png&amp;diff=610812"/>
		<updated>2017-03-24T03:52:09Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Lattice_constant_m.png&amp;diff=610811</id>
		<title>File:Lattice constant m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Lattice_constant_m.png&amp;diff=610811"/>
		<updated>2017-03-24T03:49:49Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_parameter_m.png&amp;diff=610810</id>
		<title>File:Cell parameter m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Cell_parameter_m.png&amp;diff=610810"/>
		<updated>2017-03-24T03:48:26Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Free_energy_m.png&amp;diff=610809</id>
		<title>File:Free energy m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Free_energy_m.png&amp;diff=610809"/>
		<updated>2017-03-24T03:45:10Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Table_m.png&amp;diff=610804</id>
		<title>File:Table m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Table_m.png&amp;diff=610804"/>
		<updated>2017-03-24T03:40:10Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610800</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610800"/>
		<updated>2017-03-24T03:22:53Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
===The system: MgO===&lt;br /&gt;
MgO lattice will be studied in this experiment and the key focus is its thermal expansion. Magnesium oxide is one of the candidate constituents of the Earth&#039;s lower mantle and the estimation of its thermal properties will lead to a better understanding of the mantle structure&amp;lt;ref name=&amp;quot;10.1029/95GL01194&amp;quot;&amp;gt;K. Wang and R. R. Reeber, A simplified model for predicting high pressure thermal expansion of MgO, &#039;&#039;Geophys. Res. Lett.&#039;&#039;, &#039;&#039;&#039;22&#039;&#039;&#039;, 1297-1300, 1995.{{DOI|10.1029/95GL01194}}&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
The lattice structure of MgO is a face-centered cubic with lattice parameter a, b and c all equal to each other. A 1x1x1 grid size represents a primitive cell that contains only one MgO and grid size will be varied in this experiment. In order to obtain an accurate approximation for free energy, a reasonable grid size needs to be found out. The larger the grid size, the more accurate the calculations. Phonon dispersion curves and density of states are therefore calculated. The free energy of MgO is computed within the quasi-harmonic approximation (QHA), in which the anharmonicity resulted from the intrinsic phonon interaction can be neglected. &lt;br /&gt;
&lt;br /&gt;
Thermal expansion is a fundamental property of materials and is extremely important when choosing materials for mechanical and structural applications&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;. The same approximation is then used to optimize the structure of MgO lattice under different temperatures and calculate the coefficient of thermal expansion. &lt;br /&gt;
&lt;br /&gt;
The expansion coefficient is defined as&amp;lt;ref name=&amp;quot;10.1021/ed084p818&amp;quot;&amp;gt;N. C. Corsepius, T. C. DeVore, B. a Reisner, D. L. Warnaar, Using Variable Temperature Powder X-ray Diffraction W To Determine the Thermal Expansion Coefficient of Solid MgO, &#039;&#039;J. Chem. Educ.&#039;&#039;, &#039;&#039;&#039;84&#039;&#039;&#039;, 818-821, 2007.{{DOI|10.1021/ed084p818}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\alpha=\frac{1}{V_0}(\frac{\partial V}{\partial T})_p&amp;lt;/math&amp;gt;   (Equation 1)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the expansion coefficient, V&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; is the initial cell volume and T is the temperature. The value of expansion coefficient can be determined from the temperature dependence of cell volume, which will be performed later in the investigation.&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610782</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610782"/>
		<updated>2017-03-24T01:49:02Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the Free Energy in the Harmonic Approxiamation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034. {{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610781</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610781"/>
		<updated>2017-03-24T01:46:31Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the Free Energy in the Harmonic Approxiamation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
The density of states is calculated for testing molecular set and, based on it, the characterization and prediction of thermal properties of materials are evaluated within the quasi-harmonic approximation (QHA)&amp;lt;ref name=&amp;quot;10.1021/acs.jpca.6b00401&amp;quot;&amp;gt;Ctirad Červinka, Michal Fulem, Ralf Peter Stoffel and Richard Dronskowski, Thermodynamic Properties of Molecular Crystals Calculated within the Quasi-Harmonic Approximation, &#039;&#039;J. Phys. Chem. A&#039;&#039;, &#039;&#039;&#039;2016&#039;&#039;&#039;, 120, 2022-2034.{{DOI|10.1021/acs.jpca.6b00401}}&amp;lt;/ref&amp;gt;.&lt;br /&gt;
In order to justify the choice of 32x32x32 grid size from a numerical point of view, the free energy of MgO was computed within quasi-harmonic approximation and the same shrinking factors are used as last part.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Shrinking Factors&lt;br /&gt;
!Helmholtz Free Energy /eV&lt;br /&gt;
!Total Lattice Energy /eV&lt;br /&gt;
|-&lt;br /&gt;
|1x1x1||-40.930301||rowspan=&amp;quot;7&amp;quot;|-41.07531759&lt;br /&gt;
|-&lt;br /&gt;
|2x2x2||-40.926609&lt;br /&gt;
|-&lt;br /&gt;
|4x4x4||-40.926450&lt;br /&gt;
|-&lt;br /&gt;
|8x8x8||-40.926478&lt;br /&gt;
|-&lt;br /&gt;
|16x16x16||-40.926482&lt;br /&gt;
|-&lt;br /&gt;
|32x32x32||-40.926483&lt;br /&gt;
|-&lt;br /&gt;
|64x64x64||-40.926483&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As grid size increases, the free energy first decreases dramatically from -40.930301 eV to -40.926609 eV, which is followed by some fluctuations before convergence.&lt;br /&gt;
Smaller changes in free energy values can be seen for larger grid sizes and there is no difference in free energy between shrinking factor of 32 and 64, which is the evidence for complete convergence. Therefore 32x32x32 grid size is accurate enough for approximation.&lt;br /&gt;
&lt;br /&gt;
According to the energy differences, 2x2x2, 4x4x4 and 8x8x8 grid size can be used for calculations accurate to 1 meV, 0.5 meV and 0.1 meV respectively.&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610576</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610576"/>
		<updated>2017-03-23T22:54:13Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|300x300px|thumb|center|Figure 1: Phonon dispersion curves of MgO]]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation for later calculations.&lt;br /&gt;
&lt;br /&gt;
The density of states for 1x1x1 grid was first computed for a single k-point, which is showing below.&lt;br /&gt;
&lt;br /&gt;
[[File:DOS1 m.png|300x300px|thumb|center|Figure 2: DOS for a 1x1x1 grid]]&lt;br /&gt;
&lt;br /&gt;
There are 4 distinct peaks with two double in intensity compared to the other two. According to the log file, the vibrational frequencies are 288.49, 288.49, 351.76, 351.76, 676.23 and 818.12 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. These indicate that two sets of degenerate bands should be seen in the dispersion curves at 288.49 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and 351.76cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; respectively. From the dispersion curves showing in figure 1, it can be seen that point L shows the same characteristics.&lt;br /&gt;
&lt;br /&gt;
The following graphs show how DOS varies with grid size.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS2 m.png|300px|thumb|Figure 5: DOS for a 2x2x2 grid]]||[[File:DOS4 m.png|300px|thumb|Figure 6: DOS for a 4x4x4 grid]]&lt;br /&gt;
||[[File:DOS8 m.png|300px|thumb|Figure 7: DOS for a 8x8x8 grid]]&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:DOS16 m.png|300px|thumb|Figure 5: DOS for a 16x16x16 grid]]||[[File:DOS32 m.png|300px|thumb|Figure 6: DOS for a 32x32x32 grid]]&lt;br /&gt;
||[[File:DOS64 m.png|300px|thumb|Figure 7: DOS for a 64x64x64 grid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As the shrinking factor increases, the DOS becomes smoother due to more possible vibrations are sampled and more features appear. The 32x32x32 grid is chosen as the minimum grid size for a reasonable approximation because there is no much change between the 32x32x32 grid and 64x64x64 grid and the former one takes a shorter time to compute.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS64_m.png&amp;diff=610543</id>
		<title>File:DOS64 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS64_m.png&amp;diff=610543"/>
		<updated>2017-03-23T22:34:23Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS32_m.png&amp;diff=610541</id>
		<title>File:DOS32 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS32_m.png&amp;diff=610541"/>
		<updated>2017-03-23T22:33:48Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS16_m.png&amp;diff=610540</id>
		<title>File:DOS16 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS16_m.png&amp;diff=610540"/>
		<updated>2017-03-23T22:32:33Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS8_m.png&amp;diff=610539</id>
		<title>File:DOS8 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS8_m.png&amp;diff=610539"/>
		<updated>2017-03-23T22:31:53Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS4_m.png&amp;diff=610538</id>
		<title>File:DOS4 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS4_m.png&amp;diff=610538"/>
		<updated>2017-03-23T22:31:05Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS2_m.png&amp;diff=610536</id>
		<title>File:DOS2 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS2_m.png&amp;diff=610536"/>
		<updated>2017-03-23T22:30:27Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS1_m.png&amp;diff=610486</id>
		<title>File:DOS1 m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:DOS1_m.png&amp;diff=610486"/>
		<updated>2017-03-23T21:51:09Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610271</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=610271"/>
		<updated>2017-03-23T18:52:11Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
[[File:Phonon dispersion m.png|550x550px|thumb|center|Figure 1: Phonon dispersion curves of MgO]&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the number of points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Phonon_dispersion_m.png&amp;diff=610270</id>
		<title>File:Phonon dispersion m.png</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Phonon_dispersion_m.png&amp;diff=610270"/>
		<updated>2017-03-23T18:51:45Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608386</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608386"/>
		<updated>2017-03-23T00:30:38Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed, where &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the number of points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608383</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608383"/>
		<updated>2017-03-23T00:16:20Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, Phonon dispersion measured directly from molecular dynamics simulations, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed and &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the number of points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608382</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608382"/>
		<updated>2017-03-23T00:15:27Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, &amp;quot;Phonon dispersion measured directly from molecular dynamics simulations&amp;quot;, &#039;&#039;Comput. Phys. Commun.&#039;&#039;, 2011, &#039;&#039;&#039;182&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed and &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions.&lt;br /&gt;
&lt;br /&gt;
In order to compute the free energy of the crystal, all of the vibrational bands need to be summed over, which means summing over all possible k-points. The number of points on a grid should be large enough to obtain more accurate results, however the more the number of points, the longer the computing time. The density of states (DOS), an average over all k-points yielding the number of vibrational modes at each frequency, is a useful object to summarize phonon dispersion curves and will be used to find the minimum grid size for a reasonable approximation.&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608354</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608354"/>
		<updated>2017-03-22T23:03:04Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the phonon modes of MgO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
It has been revealed that the vibration of atoms in a crystal is correlated, and a wave of allowed frequencies and amplitude is formed from a collective vibration. &amp;quot;Phonon&amp;quot; is the quantum of such lattice vibrations and &amp;quot;phonon dispersion&amp;quot; gives the wave vector dependence of phonon frequencies &amp;lt;ref name=&amp;quot;10.1016/j.cpc.2011.04.019&amp;quot;&amp;gt; Ling Ti Kong, &amp;quot;Phonon dispersion measured directly from molecular dynamics simulations&amp;quot;, &#039;&#039;Phys. Rev.&#039;&#039;, 2011, &#039;&#039;&#039;184&#039;&#039;&#039;, 2201-2207.{{DOI|10.1016/j.cpc.2011.04.019}}&amp;lt;/ref&amp;gt;. Every possible vibration can be labeled with a k-vector. In order to understand the variation of frequencies with wavevector k, vibrational frequency is plotted against k and phonon dispersion curves can be therefore obtained. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the bottom of the panel, the special points along the conventional path in k-space, &amp;lt;math&amp;gt;W-L-\Gamma-X-W-K&amp;lt;/math&amp;gt;, are displayed and &amp;lt;math&amp;gt;\Gamma&amp;lt;/math&amp;gt; is the origin.There are 6 branches in phonon dispersion curves of MgO lattice, which corresponds to 2 atoms per cell and 3 dimensions (&amp;lt;math&amp;gt;2\times3&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608202</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=608202"/>
		<updated>2017-03-22T18:54:30Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the internal energy of an MgO crystal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms (lattice constant). According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607628</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607628"/>
		<updated>2017-03-21T17:07:22Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the internal energy of an MgO crystal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a = b = c = 2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms. According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607627</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607627"/>
		<updated>2017-03-21T17:06:55Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Lattice Vibrations - Computing the Phonons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a=b=c=2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms. According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Calculating the phonon modes of MgO===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607613</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607613"/>
		<updated>2017-03-21T16:55:22Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the internal energy of an MgO crystal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Pa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a=b=c=2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms. According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Lattice Vibrations - Computing the Phonons===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607612</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607612"/>
		<updated>2017-03-21T16:54:50Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating the internal energy of an MgO crystal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
In order to compute the energy per unit cell of MgO, an initial calculation was run at 0 K and 0 Gpa. The primitive unit cell of MgO is a rhombohedron, which has cell vectors a=b=c=2.9783 Angstroms with internal angles 60 degrees. The conventional cell of MgO is a cube with side length of 4.212 Angstroms. According to the log file, the total lattice energy per unit cell is -41.07531759 electron volts, which is the energy required to form a crystal from infinitely-separated ions.&lt;br /&gt;
&lt;br /&gt;
===Lattice Vibrations - Computing the Phonons===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607139</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607139"/>
		<updated>2017-03-20T18:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
&lt;br /&gt;
===Lattice Vibrations - Computing the Phonons===&lt;br /&gt;
&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607036</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607036"/>
		<updated>2017-03-20T16:39:35Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Results and Discussion==&lt;br /&gt;
===Calculating the internal energy of an MgO crystal===&lt;br /&gt;
===Lattice Vibrations - Computing the Phonons===&lt;br /&gt;
===Calculating the Free Energy in the Harmonic Approxiamation===&lt;br /&gt;
===The Thermal Expansion of MgO===&lt;br /&gt;
===Molecular Dynamics===&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607005</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607005"/>
		<updated>2017-03-20T16:28:06Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
==Conclusion==&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607003</id>
		<title>Rep:Mod:ym2814mgo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym2814mgo&amp;diff=607003"/>
		<updated>2017-03-20T16:27:28Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: Created page with &amp;quot;===Introduction=== ===Conclusion=== ===References===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
===Conclusion===&lt;br /&gt;
===References===&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579768</id>
		<title>Rep:Mod:ym28142814</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579768"/>
		<updated>2017-02-01T10:49:16Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
===Velocity Verlet Algorithm===&lt;br /&gt;
The velocity-Verlet solution for the position at time t is calculated by the equation below where timestep is 0.1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The position of a classical harmonic oscillator is calculatd by  &amp;lt;math&amp;gt; x(t) = A\cos(\omega t + \phi)&amp;lt;/math&amp;gt;. In this case, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;=1.00, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt;=0.00 and &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;=1.00.&lt;br /&gt;
&lt;br /&gt;
[[File:analytical solution.png|550x550px|thumb|center|Figure 1:classical solution and velocity-Verlet solution for the position at time t]]&lt;br /&gt;
The plot above shows a comparison between the classical solution and velocity-Verlet solution and it can be seen that there are no significant differences between two solutions.&lt;br /&gt;
&lt;br /&gt;
The graph below shows the actual difference between the two solutions.&lt;br /&gt;
[[File:Maxima in error myj.png|550x550px|thumb|center|Figure 2:absolute difference between &amp;quot;ANALYTICAL&amp;quot; and velocity-Verlet solution]]&lt;br /&gt;
&lt;br /&gt;
The maxima in error are estimated and shown as a function of time (brown line), which can be fit to the equation shown in the graph.&lt;br /&gt;
The total energy of the oscillator is the sum of kinetic and potential energies: &amp;lt;math&amp;gt;E=\frac{mv^2}{2} + \frac{kx^2}{2}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;and &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; are the velocity-Verlet solution for velocity and position (&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;=1.00 and &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;=1.00).&lt;br /&gt;
&lt;br /&gt;
[[File:total_energy_myj.png|550x550px|thumb|center|Figure 3:total energy and its lower and upper limit when timestep is 0.1]]&lt;br /&gt;
[[File:energy_0.2timestep_myj.png|550x550px|thumb|center|Figure 4:total energy and its lower and upper limit when timestep is 0.2]]&lt;br /&gt;
&lt;br /&gt;
In order to make sure the total energy does not change by more than 1%, timestep should be no more than 0.2. In a simple harmonic oscillator, the sum of kinetic energy and potential energy should ideally be constant, so it is important to monitor the total energy of a physical system when modeling its behaviour numerically.&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
For a single Lennard-Jones interaction, the potential energy can be calculated by &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;. When the potential energy is zero, the separation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; is equal to the value of &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;).&lt;br /&gt;
The force acting on an object is determined by the potential that it experiences:&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the force at this seperation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i =- \frac{\mathrm{d}\phi\left(r_i\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =- \frac{\mathrm{d}4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)}{\mathrm{d}\mathbf{r}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12r_0^{12}}{r_0^{13}} + \frac{6r_0^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the force at &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be simplified to :&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =\frac{24\epsilon}{r_0}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found when the force is equal to zero:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)=0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r_{eq}=\sqrt[6]{2}\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{r_{eq}^{12}} - \frac{\sigma^6}{r_{eq}^6} \right)&amp;lt;/math&amp;gt;, the well depth &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; can be calculated as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{4\sigma^{12}} - \frac{\sigma^6}{2\sigma^6} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon= -\phi(r_{eq})&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt; can be simplyfied as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r = -4\epsilon \left( \frac{\sigma^{12}}{11r^{11}} - \frac{\sigma^6}{5r^5} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2^5\times\sigma^6} \right)=-2.48\times10^{-2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2.5^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2.5^5\times\sigma^6} \right)=-8.18\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 3^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times3^5\times\sigma^6} \right)=-3.29\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Periodic Boundary Conditions===&lt;br /&gt;
Mass of one water molecule can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;m=\frac{MW}{N_A}=2.99\times10^{-23}g&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\rho=\frac{m}{V}&amp;lt;/math&amp;gt; and the density of water is &amp;lt;math&amp;gt;1 g/cm^{-3}&amp;lt;/math&amp;gt;under standard consitions, the volume of 10000 water molecule can be estimated as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{m}{\rho}=\frac{10000\times2.99\times10^{-23}}{1}=2.99\times10^{-19}cm^3&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In a single timestep, an atom at position &amp;lt;math&amp;gt;\left(0.5, 0.5, 0.5\right)&amp;lt;/math&amp;gt; moves along the vector &amp;lt;math&amp;gt;\left(0.7, 0.6, 0.2\right)&amp;lt;/math&amp;gt;, the final position is &amp;lt;math&amp;gt;\left(1.2, 1.1, 0.7\right)&amp;lt;/math&amp;gt;. After applying periodic boundary conditions, the final position is &amp;lt;math&amp;gt;\left(0.2, 0.1, 0.7\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Reduced Units===&lt;br /&gt;
Since &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}=3.2&amp;lt;/math&amp;gt;, in real unit &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r=r^*\sigma=0.34\times3.2=1.09 nm&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\epsilon\ /\ k_B= 120 \mathrm{K}&amp;lt;/math&amp;gt;,  the well depth in &amp;lt;math&amp;gt;\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon=1.38\times10^{-23}\times120\times10^{-3}\times6.02\times10^{23}=0.997\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;, the reduced temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt; in real units can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=\frac{T^*\epsilon}{k_B}=1.5\times120=180 K&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Output of First Simulations==&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
Generating random starting coordinates for atoms causes problems in simulations because if two atoms happen to be generated close together, the force between two will be large and the resulting potential energy will be high as well, which makes the system unstable. Therefore the final results of simulation will be inaccurate.&lt;br /&gt;
&lt;br /&gt;
In the output file, a simple cubic lattice is created and the distance between the points of this lattice is 1.07722 (in reduced units).&lt;br /&gt;
&amp;lt;center&amp;gt;lattice point number density = number of lattice point/volume of lattice&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{1}{1.07722^3}=0.8&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of fcc cubic lattice, the number of lattice points is 4. &lt;br /&gt;
Since the lattice point number density is 1.2 in this case, the side length can be calculated:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; l=\sqrt[3]{\frac{4}{1.2}}=1.5&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1000 unit cells will be created by the create_atoms command and therefore 4000 atoms will be created for the fcc cubic lattice.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut 3.0&lt;br /&gt;
pair_coeff * * 1.0 1.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
There is only one atom type and the mass is 1.0.&lt;br /&gt;
&lt;br /&gt;
The pairwise interaction is set as cutoff Lennard-Jones potential with no Coulomb and the cutoff for atoms is at 3.0.&lt;br /&gt;
&lt;br /&gt;
pair_coeff specifies the pairwise force field coefficients for one or more pairs of atom types and the asterisks mean all atom types.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; are being specified, so velocity Verlet Algorithm will be used.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
It will be better to replace the text string with a value needed rather than define it directly.&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:TE 0.001 myj.png|400px|thumb|Figure 5: Total energy against time for 0.001 timestep]]||[[File:T 0.001 myj.png|400px|thumb|Figure 6: Temperature against time for 0.001 timestep]]&lt;br /&gt;
||[[File:P 0.001 myj.png|400px|thumb|Figure 7: Pressure against time for 0.001 timestep]]&lt;br /&gt;
|}&lt;br /&gt;
The simulation reaches equilibrium at about t=0.3 and the total energy at equilibrium is about -3.18(in reduced unit).&lt;br /&gt;
&lt;br /&gt;
The pressure and temperature of the system also reach a constant average value with fluctuations, which is 2.6 and 1.3 respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Energy plot for comparision myj.png|600px|thumb|center|Figure 8: energy versus time for all of the timesteps]]&lt;br /&gt;
&lt;br /&gt;
Of the five timesteps used, 0.0025 is the largest to give acceptable results. It gives the most similar results as 0.001 timestep.&lt;br /&gt;
0.015 is a particularly bad choice because the simulation does not reach an equilibrium and the total energy keeps increasing.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
===Thermostats and Barostats===&lt;br /&gt;
In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms each with 3 degrees of freedom:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to get our target temperature &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt;, every velocity can be multiplied by a constant factor &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i (v_i\gamma)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This equation can be simplified as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{3}{2} N k_B T = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2 T = \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma = \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The Nevery, Nrepeat, and Nfreq arguments (100, 1000, 10000 in this case) specify on what timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of Nfreq. The average is over Nrepeat quantities, computed in the preceding portion of the simulation every Nevery timesteps.&lt;br /&gt;
&lt;br /&gt;
The values will be sampled for the average every 100 timesteps and there are 1000 measurements contribute to the average.Then values on timesteps 100, 200, ... 100000 will be used to compute the final average on timestep 100000.&lt;br /&gt;
&lt;br /&gt;
The timestep is 0.0025 and the simulation is run over 100000 timesteps, so the total time of simulation should be 250.&lt;br /&gt;
&lt;br /&gt;
===Plotting the Equations of State===&lt;br /&gt;
10 simulations was run at 5 different temperatures (T=2.0, 3.0, 4.0, 5.0, 6.0) and 2 different pressures (P=2.6, 3.0) at 0.0025 timestep as it shows the best results in last section.&lt;br /&gt;
&lt;br /&gt;
The ideal gas law shows &amp;lt;math&amp;gt;PV=Nk_BT&amp;lt;/math&amp;gt;, which can be used to calculate density as the equation showing below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{N}{V}=\frac{P}{k_BT}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since all variables are in reduced units after simulation and &amp;lt;math&amp;gt;P^*=\frac{P\sigma^3}{\epsilon}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\rho=\frac{N\sigma^3}{V}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;T^*=\frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt; &amp;lt;ref name=&amp;quot;1.4767528&amp;quot;&amp;gt;S. Delage Santacreu ,G. Galliero, M. Odunlami and C. Boned, &amp;quot;Low density shear viscosity of Lennard-Jones chains of variable rigidities&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;137&#039;&#039;&#039;, 204306(2012). {{DOI|10.1063/1.4767528}}&amp;lt;/ref&amp;gt;, the density predicted by ideal gas law can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho^*=\frac{\sigma^3N}{V}=\frac{\sigma^3P}{k_BT}=\frac{\sigma^3\frac{P^*\epsilon}{\sigma^3}}{T^*\epsilon}=\frac{P^*}{T^*}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Final myj.PNG|650px|center|thumb|Figure 9:density vs time for both of the pressures]]&lt;br /&gt;
&lt;br /&gt;
From the graph, it can be seen that the simulated density is lower than the ideal density and the discrepancy increases as pressure increases and it decreases as temperature increases.&lt;br /&gt;
&lt;br /&gt;
==Calculating heat capacities using statistical physics==&lt;br /&gt;
&lt;br /&gt;
The heat capacity of the system can be calculated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = \frac{\mathrm{Var}\left[E\right]}{k_B T^2} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, the temperatures and densities used are 2.0,2.2,2.4,2.6,2.8 and 0.2, 0.8 respectively.&lt;br /&gt;
&lt;br /&gt;
One of the input scripts is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable dens equal 0.2&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${dens}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable timestep equal 0.0025&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp vol atoms&lt;br /&gt;
variable volume equal vol&lt;br /&gt;
variable atoms2 equal atoms*atoms&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable E equal etotal&lt;br /&gt;
variable E2 equal etotal*etotal&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_temp v_temp2 v_volume v_E v_E2&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avetemp equal f_aves[1]&lt;br /&gt;
variable heatcapacity equal ${atoms2}*(f_aves[5]-f_aves[4]*f_aves[4])/f_aves[2]&lt;br /&gt;
variable heatcapacityV equal ${heatcapacity}/${volume}&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity: ${heatcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity over V: ${heatcapacityV}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to make the heat capacity independent of the size, we plot &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; against temperature.&lt;br /&gt;
&lt;br /&gt;
[[file:HC myj.PNG|600px|thumb|center|figure 10: Cv/V against temperature for two different densities]]&lt;br /&gt;
&lt;br /&gt;
According to the equation, the temperature and heat capacity are inversely proportional. So the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; should decrease with temperature.&lt;br /&gt;
&lt;br /&gt;
As for a larger density system, it will have more atoms at a fixed volume and the ability of it to store internal energy will be stronger, therefore the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt;\rho=0.8&amp;lt;/math&amp;gt; will be higher than at&amp;lt;math&amp;gt;\rho=0.2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Structural properties and the radial distribution function==&lt;br /&gt;
An atomic trajectory is recorded to generate RDFs for the solid, liquid, and vapour phase Lennard Jones systems. &lt;br /&gt;
In order to get 3 different phases, the density and temperature is modified as below &amp;lt;ref name=&amp;quot;PhysRev.184.151&amp;quot;&amp;gt;Jean-Pierre Hansen and Loup Verlet, &amp;quot;Phase Transitions of the Lennard-Jones System&amp;quot;, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;184&#039;&#039;&#039;, 151, 1969.{{DOI|10.1103/PhysRev.184.151}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &lt;br /&gt;
! vapour&lt;br /&gt;
! liquid&lt;br /&gt;
! solid&lt;br /&gt;
|-&lt;br /&gt;
| Temperature&lt;br /&gt;
| 1.15&lt;br /&gt;
| 1.2&lt;br /&gt;
| 1.15&lt;br /&gt;
|-&lt;br /&gt;
| Density&lt;br /&gt;
| 0.05&lt;br /&gt;
| 0.8&lt;br /&gt;
| 1.5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:Capture gr myj.PNG‎|500px|thumb|center|Figure 11: RDFs for 3 systems]]&lt;br /&gt;
&lt;br /&gt;
The RDF[https://en.wikibooks.org/wiki/Molecular_Simulation/Radial_Distribution_Functions] defines the probability of finding a particle at a distance r from another particle. For all 3 systems, when r is small, the value of g(r) is zero as two particles can not occupy the same space due to repulsion forces and the first coordination sphere is found when &amp;lt;math&amp;gt;r=\sigma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Gases do not have a regular structure and only have one coordination sphere that will rapidly decay to normal density, g(r)=1.&lt;br /&gt;
&lt;br /&gt;
Solids have regular and specific structure over a long range. The peaks indicate the coordination shells for the solid. The first peak represents the nearest neighbours, the second peaks is for the second nearest neighbours and so on. There is no possibility to find particles in between as all molecules are regularly packed.&lt;br /&gt;
&lt;br /&gt;
Liquids are more loosely packed than solids, therefore, do not have exact intervals.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gr of solid.PNG|400px|thumb|Figure 12:first 3 peaks in RDF of solid]]||[[File:Integral of solid.PNG|400px|thumb|Figure 13: running integral of RDF of solid]]&lt;br /&gt;
|}&lt;br /&gt;
Acoording to the plot above, as for solid, the coordination number of the first coordination shell is 12. And the coordination number for the second and third shell is 6 and 24 respectively.&lt;br /&gt;
&lt;br /&gt;
==Dynamical properties and the diffusion coefficient==&lt;br /&gt;
&lt;br /&gt;
===Mean Squared Displacement===&lt;br /&gt;
The densities and temperatures used are the same as last section.&lt;br /&gt;
The graphs below show the simulation of MSD of liquid, solid and gas as well as for a 1 million atoms system.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour small myj.PNG|400px|thumb|Figure 14a: Simulation for gas]]||[[File:Liquid myj.PNG|400px|thumb|Figure 14b: simulation for liquid]]&lt;br /&gt;
||[[File:Solid small myj.PNG|400px|thumb|Figure 14c:simulation for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour large myj.PNG|400px|thumb|Figure 15a: Simulation for gas (much larger system)]]||[[File:Liquid msd myj.PNG|400px|thumb|Figure 15b: simulation for liquid (much larger system)]]&lt;br /&gt;
||[[File:Solid large myj.PNG|400px|thumb|Figure 15c: Simulation for solid (much larger system)]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The graphs vapour and liquid for both small and large scales are nearly the same.&lt;br /&gt;
The graph for solid at a small scale looks similar to the larger system one but with more fluctuations because the stability of a system containing 1 million atoms would be much higher.&lt;br /&gt;
&lt;br /&gt;
Solid shows a completely different shape due to its regular structure and it has a fixed position for each atom (with vibrations).&lt;br /&gt;
&lt;br /&gt;
The value of D can be estimated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, &amp;lt;math&amp;gt;\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;=gradient of trend line /timestep.&lt;br /&gt;
&lt;br /&gt;
As for small systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0289}{0.002}=2.408&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{6\times10^{-9}}{0.002}=5\times10^{-7}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0305}{0.002}=2.542&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{5\times10^{-8}}{0.002}=4.17\times10^{-6}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Velocity Autocorrelation Function===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for the evolution of the position of a 1D harmonic oscillator as a function of time is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x(t)=Acos(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;v(t)=\frac{dx(t)}{dt}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t)=\frac {d[Acos(\omega t+\phi)]}{dt}=-\omega A sin(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A sin[\omega(t+ \tau)+\phi=-\omega A sin[\omega(t+\phi)+\omega \tau]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Acoording to the trigonometric formula &amp;lt;math&amp;gt;sin(x+y)=sin(x)cos(y)+cos(x)sin(y)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A[sin(\omega t+\phi) cos(\omega \tau)+cos(\omega t +\phi) sin(\omega \tau)]=cos(\omega \tau)\times v(t)-\omega t[cos(\omega t+\phi) sin(\omega \tau)]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = \frac{\int_{-\infty}^{\infty}v(t)[v(t) cos(\omega \tau)-\omega t[cos(\omega t+\phi)sin(\omega \tau)]]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =\frac{cos(\omega t)\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}-\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = cos(\omega t) -\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sine function is an odd function, which means the integral of it from &amp;lt;math&amp;gt;-\infty&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\infty&amp;lt;/math&amp;gt; will be zero. Therefore the second part of the equation shown above should also be zero.&lt;br /&gt;
&lt;br /&gt;
Then the equation can be simplified to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =cos(\omega \tau)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The graph below shows the difference between VACFs of Lennard Jones liquid and solid and harmonic oscillator VACF.&lt;br /&gt;
&lt;br /&gt;
[[File:Capacity myj.PNG|600px|thumb|center|Figure 16: VACFs for liquid, solid and &amp;lt;math&amp;gt;\omega=\frac{1}{2\pi}&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The velocity of a molecule after the collision will be independent of its initial velocity&amp;lt;ref name=&amp;quot;1.434461&amp;quot;&amp;gt;Otto J. Eder, &amp;quot;The velocity autocorrelation function and the diffusion coefficient for a dilute hard&lt;br /&gt;
sphere gas&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;66&#039;&#039;&#039;, 3866 (1977).{{DOI|10.1063/1.434461}}&amp;lt;/ref&amp;gt;. Both magnitude and direction are expected to change with the influence of the force. The minimum value on the graph corresponds to the largest difference between final velocity and initial velocity. Solid has a lower value than the liquid due to stronger interatomic force. In the case of harmonic oscillator, the interatomic force is not involved.&lt;br /&gt;
&lt;br /&gt;
The following equation can be used to calculate D:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Trapezium rule is then used to estimate the integrals under VACFs for gas, liquid and solid and the plots of running integral are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas s ri.PNG|400px|thumb|Figure 17a: running integral for gas]]||[[File:Liquid s ri.PNG|400px|thumb|Figure 17b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid s ri.PNG|400px|thumb|Figure 17c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas l ri.PNG|400px|thumb|Figure 18a: running integral for gas]]||[[File:Liquid l ri.PNG|400px|thumb|Figure 18b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid l ri.PNG|400px|thumb|Figure 18c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Calculations for values of D for small systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.27325499=3.091&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.293666634=0.098&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.002980073=9.933\times10^{-4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.805397393=3.268&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.270274429=0.090&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.000136588=4.553\times10^{-5}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The values of D obtained are very close to the values from the last section except for the value of solid.&lt;br /&gt;
&lt;br /&gt;
The trapezium rule is not that accurate especially for solid and it can be improved by smaller timestep.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579765</id>
		<title>Rep:Mod:ym28142814</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579765"/>
		<updated>2017-02-01T10:16:50Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
===Velocity Verlet Algorithm===&lt;br /&gt;
The velocity-Verlet solution for the position at time t is calculated by the equation below where timestep is 0.1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The position of a classical harmonic oscillator is calculatd by  &amp;lt;math&amp;gt; x(t) = A\cos(\omega t + \phi)&amp;lt;/math&amp;gt;. In this case, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;=1.00, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt;=0.00 and &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;=1.00.&lt;br /&gt;
&lt;br /&gt;
[[File:analytical solution.png|550x550px|thumb|center|Figure 1:classical solution and velocity-Verlet solution for the position at time t]]&lt;br /&gt;
The plot above shows a comparison between the classical solution and velocity-Verlet solution and it can be seen that there are no significant differences between two solutions.&lt;br /&gt;
&lt;br /&gt;
The graph below shows the actual difference between the two solutions.&lt;br /&gt;
[[File:Maxima in error myj.png|550x550px|thumb|center|Figure 2:absolute difference between &amp;quot;ANALYTICAL&amp;quot; and velocity-Verlet solution]]&lt;br /&gt;
&lt;br /&gt;
The maxima in error are estimated and shown as a function of time (brown line), which can be fit to the equation shown in the graph.&lt;br /&gt;
The total energy of the oscillator is the sum of kinetic and potential energies: &amp;lt;math&amp;gt;E=\frac{mv^2}{2} + \frac{kx^2}{2}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;and &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; are the velocity-Verlet solution for velocity and position (&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;=1.00 and &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;=1.00).&lt;br /&gt;
&lt;br /&gt;
[[File:total_energy_myj.png|550x550px|thumb|center|Figure 3:total energy and its lower and upper limit when timestep is 0.1]]&lt;br /&gt;
[[File:energy_0.2timestep_myj.png|550x550px|thumb|center|Figure 4:total energy and its lower and upper limit when timestep is 0.2]]&lt;br /&gt;
&lt;br /&gt;
In order to make sure the total energy does not change by more than 1%, timestep should be no more than 0.2. In a simple harmonic oscillator the sum of kinetic energy anf potential energy should ideally be a constant, so it is important to monitor the total energy of a physical system when modelling its behaviour numerically.&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
For a single Lennard-Jones interaction, the potential energy can be calculated by &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;. When the potential energy is zero, the separation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; is equal to the value of &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;).&lt;br /&gt;
The force acting on an object is determined by the potential that it experiences:&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the force at this seperation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i =- \frac{\mathrm{d}\phi\left(r_i\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =- \frac{\mathrm{d}4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)}{\mathrm{d}\mathbf{r}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12r_0^{12}}{r_0^{13}} + \frac{6r_0^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the force at &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be simplified to :&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =\frac{24\epsilon}{r_0}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found when the force is equal to zero:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)=0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r_{eq}=\sqrt[6]{2}\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{r_{eq}^{12}} - \frac{\sigma^6}{r_{eq}^6} \right)&amp;lt;/math&amp;gt;, the well depth &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; can be calculated as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{4\sigma^{12}} - \frac{\sigma^6}{2\sigma^6} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon= -\phi(r_{eq})&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt; can be simplyfied as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r = -4\epsilon \left( \frac{\sigma^{12}}{11r^{11}} - \frac{\sigma^6}{5r^5} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2^5\times\sigma^6} \right)=-2.48\times10^{-2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2.5^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2.5^5\times\sigma^6} \right)=-8.18\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 3^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times3^5\times\sigma^6} \right)=-3.29\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Periodic Boundary Conditions===&lt;br /&gt;
Mass of one water molecule can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;m=\frac{MW}{N_A}=2.99\times10^{-23}g&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\rho=\frac{m}{V}&amp;lt;/math&amp;gt; and the density of water is &amp;lt;math&amp;gt;1 g/cm^{-3}&amp;lt;/math&amp;gt;under standard consitions, the volume of 10000 water molecule can be estimated as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{m}{\rho}=\frac{10000\times2.99\times10^{-23}}{1}=2.99\times10^{-19}cm^3&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In a single timestep, an atom at position &amp;lt;math&amp;gt;\left(0.5, 0.5, 0.5\right)&amp;lt;/math&amp;gt; moves along the vector &amp;lt;math&amp;gt;\left(0.7, 0.6, 0.2\right)&amp;lt;/math&amp;gt;, the final position is &amp;lt;math&amp;gt;\left(1.2, 1.1, 0.7\right)&amp;lt;/math&amp;gt;. After applying periodic boundary conditions, the final position is &amp;lt;math&amp;gt;\left(0.2, 0.1, 0.7\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Reduced Units===&lt;br /&gt;
Since &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}=3.2&amp;lt;/math&amp;gt;, in real unit &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r=r^*\sigma=0.34\times3.2=1.09 nm&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\epsilon\ /\ k_B= 120 \mathrm{K}&amp;lt;/math&amp;gt;,  the well depth in &amp;lt;math&amp;gt;\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon=1.38\times10^{-23}\times120\times10^{-3}\times6.02\times10^{23}=0.997\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;, the reduced temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt; in real units can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=\frac{T^*\epsilon}{k_B}=1.5\times120=180 K&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Output of First Simulations==&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
Generating random starting coordinates for atoms causes problems in simulations because if two atoms happen to be generated close together, the force between two will be large and the resulting potential energy will be high as well, which makes the system unstable. Therefore the final results of simulation will be inaccurate.&lt;br /&gt;
&lt;br /&gt;
In the output file, a simple cubic lattice is created and the distance between the points of this lattice is 1.07722 (in reduced units).&lt;br /&gt;
&amp;lt;center&amp;gt;lattice point number density = number of lattice point/volume of lattice&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{1}{1.07722^3}=0.8&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of fcc cubic lattice, the number of lattice points is 4. &lt;br /&gt;
Since the lattice point number density is 1.2 in this case, the side length can be calculated:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; l=\sqrt[3]{\frac{4}{1.2}}=1.5&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1000 unit cells will be created by the create_atoms command and therefore 4000 atoms will be created for the fcc cubic lattice.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut 3.0&lt;br /&gt;
pair_coeff * * 1.0 1.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
There is only one atom type and the mass is 1.0.&lt;br /&gt;
&lt;br /&gt;
The pairwise interaction is set as cutoff Lennard-Jones potential with no Coulomb and the cutoff for atoms is at 3.0.&lt;br /&gt;
&lt;br /&gt;
pair_coeff specifies the pairwise force field coefficients for one or more pairs of atom types and the asterisks mean all atom types.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; are being specified, so velocity Verlet Algorithm will be used.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
It will be better to replace the text string with a value needed rather than define it directly.&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:TE 0.001 myj.png|400px|thumb|Figure 5: Total energy against time for 0.001 timestep]]||[[File:T 0.001 myj.png|400px|thumb|Figure 6: Temperature against time for 0.001 timestep]]&lt;br /&gt;
||[[File:P 0.001 myj.png|400px|thumb|Figure 7: Pressure against time for 0.001 timestep]]&lt;br /&gt;
|}&lt;br /&gt;
The simulation reaches equilibrium at about t=0.3 and the total energy at equilibrium is about -3.18(in reduced unit).&lt;br /&gt;
&lt;br /&gt;
The pressure and temperature of the system are also reach a constant average value with fluctuations, which is 2.6 and 1.3 respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Energy plot for comparision myj.png|600px|thumb|center|Figure 8: energy versus time for all of the timesteps]]&lt;br /&gt;
&lt;br /&gt;
Of the five timesteps used, 0.0025 is the largest to give acceptable results. It gives the most similar results as 0.001 timestep.&lt;br /&gt;
0.015 is a particularly bad choice because the simulation does not reach an equilibrium and the total energy keeps increasing.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
===Thermostats and Barostats===&lt;br /&gt;
In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms each with 3 degrees of freedom:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to get our target temperature &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt;, every velocity can be multiplied by a constant factor &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i (v_i\gamma)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This equation can be simplified as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{3}{2} N k_B T = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2 T = \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma = \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The Nevery, Nrepeat, and Nfreq arguments (100, 1000, 10000 in this case) specify on what timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a mlutiple of Nfreq. The average is over Nrepeat quantities, computed in the preceding portion of the simulation every Nevery timesteps.&lt;br /&gt;
&lt;br /&gt;
The values will be sampled for the average every 100 timesteps and there are 1000 measurements contribute to the average.Then values on timesteps 100, 200, ... 100000 will be used to compute the final average on timestep 100000.&lt;br /&gt;
&lt;br /&gt;
The timestep is 0.0025 and the simulation is run over 100000 timesteps, so the total time of simulation should be 250.&lt;br /&gt;
&lt;br /&gt;
===Plotting the Equations of State===&lt;br /&gt;
10 simulations was run at 5 different temperatures (T=2.0, 3.0, 4.0, 5.0, 6.0) and 2 different pressures (P=2.6, 3.0) at 0.0025 timestep as it shows the best results in last section.&lt;br /&gt;
&lt;br /&gt;
The ideal gas law shows &amp;lt;math&amp;gt;PV=Nk_BT&amp;lt;/math&amp;gt;, which can be used to calculate density as the equation showing below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{N}{V}=\frac{P}{k_BT}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since all variables are in reduced units after simulation and &amp;lt;math&amp;gt;P^*=\frac{P\sigma^3}{\epsilon}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\rho=\frac{N\sigma^3}{V}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;T^*=\frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt; &amp;lt;ref name=&amp;quot;1.4767528&amp;quot;&amp;gt;S. Delage Santacreu ,G. Galliero, M. Odunlami and C. Boned, &amp;quot;Low density shear viscosity of Lennard-Jones chains of variable rigidities&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;137&#039;&#039;&#039;, 204306(2012). {{DOI|10.1063/1.4767528}}&amp;lt;/ref&amp;gt;, the density predicted by ideal gas law can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho^*=\frac{\sigma^3N}{V}=\frac{\sigma^3P}{k_BT}=\frac{\sigma^3\frac{P^*\epsilon}{\sigma^3}}{T^*\epsilon}=\frac{P^*}{T^*}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Final myj.PNG|650px|center|thumb|Figure 9:density vs time for both of the pressures]]&lt;br /&gt;
&lt;br /&gt;
From the graph, it can be seen that the simulated density is lower than the ideal density and the discrepancy increases as pressure increases and it decreases as temperature increases.&lt;br /&gt;
&lt;br /&gt;
==Calculating heat capacities using statistical physics==&lt;br /&gt;
&lt;br /&gt;
The heat capacity of the system can be calculated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = \frac{\mathrm{Var}\left[E\right]}{k_B T^2} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, the temperatures and densities used are 2.0,2.2,2.4,2.6,2.8 and 0.2, 0.8 respectively.&lt;br /&gt;
&lt;br /&gt;
One of the input scripts is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable dens equal 0.2&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${dens}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable timestep equal 0.0025&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp vol atoms&lt;br /&gt;
variable volume equal vol&lt;br /&gt;
variable atoms2 equal atoms*atoms&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable E equal etotal&lt;br /&gt;
variable E2 equal etotal*etotal&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_temp v_temp2 v_volume v_E v_E2&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avetemp equal f_aves[1]&lt;br /&gt;
variable heatcapacity equal ${atoms2}*(f_aves[5]-f_aves[4]*f_aves[4])/f_aves[2]&lt;br /&gt;
variable heatcapacityV equal ${heatcapacity}/${volume}&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity: ${heatcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity over V: ${heatcapacityV}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to make the heat capacity independent of the size, we plot &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; against temperature.&lt;br /&gt;
&lt;br /&gt;
[[file:HC myj.PNG|600px|thumb|center|figure 10: Cv/V against temperature for two different densities]]&lt;br /&gt;
&lt;br /&gt;
According to the equation, the temperature and heat capacity are inversely proportional. So the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; should decrease with temperature.&lt;br /&gt;
&lt;br /&gt;
As for a larger density system, it will have more number of atoms at a fixed volume and the ability of it to store internal energy will be stronger, therefore the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt;\rho=0.8&amp;lt;/math&amp;gt; will be higher than at&amp;lt;math&amp;gt;\rho=0.2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Structural properties and the radial distribution function==&lt;br /&gt;
An atomic trajectory is recorded to generate RDFs for the solid, liquid, and vapour phase Lennard Jones systems. &lt;br /&gt;
In order to get 3 different phases, the density and temperature is modified as below &amp;lt;ref name=&amp;quot;PhysRev.184.151&amp;quot;&amp;gt;Jean-Pierre Hansen and Loup Verlet, &amp;quot;Phase Transitions of the Lennard-Jones System&amp;quot;, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;184&#039;&#039;&#039;, 151, 1969.{{DOI|10.1103/PhysRev.184.151}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &lt;br /&gt;
! vapour&lt;br /&gt;
! liquid&lt;br /&gt;
! solid&lt;br /&gt;
|-&lt;br /&gt;
| Temperature&lt;br /&gt;
| 1.15&lt;br /&gt;
| 1.2&lt;br /&gt;
| 1.15&lt;br /&gt;
|-&lt;br /&gt;
| Density&lt;br /&gt;
| 0.05&lt;br /&gt;
| 0.8&lt;br /&gt;
| 1.5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:Capture gr myj.PNG‎|500px|thumb|center|Figure 11: RDFs for 3 systems]]&lt;br /&gt;
&lt;br /&gt;
The RDF[https://en.wikibooks.org/wiki/Molecular_Simulation/Radial_Distribution_Functions] defines the probability of finding a particle at a distance r from another particle. For all 3 systems, when r is small, the value of g(r) is zero as two particles can not occupied the same space due to repulsion forces and the first coordination sphere is found when &amp;lt;math&amp;gt;r=\sigma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Gases do not have a regular structure and only have one coordination sphere that will rapidly decay to normal density, g(r)=1.&lt;br /&gt;
&lt;br /&gt;
Solids have regular and specific structure over a long range. The peaks indicate the coordination shells for the solid. The first peak represent the nearest neighbours, the second peaks is for the seccond nearest neighbours and so on. There is no possibility to find particles in between as all molecules are regularly packed.&lt;br /&gt;
&lt;br /&gt;
Liquids are more loosely packed than solids therefore do not have exact intervals.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gr of solid.PNG|400px|thumb|Figure 12:first 3 peaks in RDF of solid]]||[[File:Integral of solid.PNG|400px|thumb|Figure 13: running integral of RDF of solid]]&lt;br /&gt;
|}&lt;br /&gt;
Acoording to the plot above, as for solid, the coordination number of the first coordination shell is 12. And the coordination number for the second and third shell is 6 and 24 respectively.&lt;br /&gt;
&lt;br /&gt;
==Dynamical properties and the diffusion coefficient==&lt;br /&gt;
&lt;br /&gt;
===Mean Squared Displacement===&lt;br /&gt;
The densities and temperatures used are the same as last section.&lt;br /&gt;
The graphs below show the simulation of MSD of liquid, soid and gas as well as for a 1 million atoms system.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour small myj.PNG|400px|thumb|Figure 14a: Simulation for gas]]||[[File:Liquid myj.PNG|400px|thumb|Figure 14b: simulation for liquid]]&lt;br /&gt;
||[[File:Solid small myj.PNG|400px|thumb|Figure 14c:simulation for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour large myj.PNG|400px|thumb|Figure 15a: Simulation for gas (much larger system)]]||[[File:Liquid msd myj.PNG|400px|thumb|Figure 15b: simulation for liquid (much larger system)]]&lt;br /&gt;
||[[File:Solid large myj.PNG|400px|thumb|Figure 15c: Simulation for solid (much larger system)]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The graphs vapour and liquid for both small and large scales are nearly the same.&lt;br /&gt;
The graph for solid at a small scale looks similar to the larger system one but with more fluctuations because the stability of a system containing 1 million atoms would be much higher.&lt;br /&gt;
&lt;br /&gt;
Solid shows a completely different shape due to its regular structure and it has a fixed position for each atom (with vibrations).&lt;br /&gt;
&lt;br /&gt;
The value of D can be estimated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, &amp;lt;math&amp;gt;\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;=gradient of trend line /timestep.&lt;br /&gt;
&lt;br /&gt;
As for small systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0289}{0.002}=2.408&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{6\times10^{-9}}{0.002}=5\times10^{-7}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0305}{0.002}=2.542&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{5\times10^{-8}}{0.002}=4.17\times10^{-6}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Velocity Autocorrelation Function===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for the evolution of the position of a 1D harmonic oscillator as a function of time is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x(t)=Acos(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;v(t)=\frac{dx(t)}{dt}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t)=\frac {d[Acos(\omega t+\phi)]}{dt}=-\omega A sin(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A sin[\omega(t+ \tau)+\phi=-\omega A sin[\omega(t+\phi)+\omega \tau]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Acoording to the trigonometric formula &amp;lt;math&amp;gt;sin(x+y)=sin(x)cos(y)+cos(x)sin(y)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A[sin(\omega t+\phi) cos(\omega \tau)+cos(\omega t +\phi) sin(\omega \tau)]=cos(\omega \tau)\times v(t)-\omega t[cos(\omega t+\phi) sin(\omega \tau)]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = \frac{\int_{-\infty}^{\infty}v(t)[v(t) cos(\omega \tau)-\omega t[cos(\omega t+\phi)sin(\omega \tau)]]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =\frac{cos(\omega t)\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}-\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = cos(\omega t) -\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sine function is an odd function, which means the integral of it from &amp;lt;math&amp;gt;-\infty&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\infty&amp;lt;/math&amp;gt; will be zero. Therefore the second part of the equation shown above should also be zero.&lt;br /&gt;
&lt;br /&gt;
Then the equation can be simplified to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =cos(\omega \tau)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The graph below shows the difference between VACFs of Lennard Jones liquid and solid and harmonic oscillator VACF.&lt;br /&gt;
&lt;br /&gt;
[[File:Capacity myj.PNG|600px|thumb|center|Figure 16: VACFs for liquid, solid and &amp;lt;math&amp;gt;\omega=\frac{1}{2\pi}&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The velocity of a molecule after collision will be independent of its initial velocity&amp;lt;ref name=&amp;quot;1.434461&amp;quot;&amp;gt;Otto J. Eder, &amp;quot;The velocity autocorrelation function and the diffusion coefficient for a dilute hard&lt;br /&gt;
sphere gas&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;66&#039;&#039;&#039;, 3866 (1977).{{DOI|10.1063/1.434461}}&amp;lt;/ref&amp;gt;. Both magnitude and direction are expected to change with the influence of the force. The minimum value on the graph corresponds to largest difference between final velocity and initial velocity. Solid has lower value than liquid due to stronger interatomic force. In the case of harmonic oscillstor, the interatomic force is not involved.&lt;br /&gt;
&lt;br /&gt;
The following equation can be used to calculate D:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Trapezium rule is then used to estimate the integrals under VACFs for gas, liquid and solid and the plots of running integral are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas s ri.PNG|400px|thumb|Figure 17a: running integral for gas]]||[[File:Liquid s ri.PNG|400px|thumb|Figure 17b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid s ri.PNG|400px|thumb|Figure 17c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas l ri.PNG|400px|thumb|Figure 18a: running integral for gas]]||[[File:Liquid l ri.PNG|400px|thumb|Figure 18b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid l ri.PNG|400px|thumb|Figure 18c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Calculations for values of D for small systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.27325499=3.091&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.293666634=0.098&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.002980073=9.933\times10^{-4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.805397393=3.268&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.270274429=0.090&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.000136588=4.553\times10^{-5}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The values of D obtained are very close to the values from last section except from the value for solid.&lt;br /&gt;
&lt;br /&gt;
The trapezium rule is not that accurate especially for solid and it can be improved by smaller timestep.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579763</id>
		<title>Rep:Mod:ym28142814</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ym28142814&amp;diff=579763"/>
		<updated>2017-02-01T10:10:33Z</updated>

		<summary type="html">&lt;p&gt;Ym2814: /* Calculating heat capacities using statistical physics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
===Velocity Verlet Algorithm===&lt;br /&gt;
The velocity-Verlet solution for the position at time t is calculated by the equation below where timestep is 0.1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The position of a classical harmonic oscillator is calculatd by  &amp;lt;math&amp;gt; x(t) = A\cos(\omega t + \phi)&amp;lt;/math&amp;gt;. In this case, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;=1.00, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt;=0.00 and &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;=1.00.&lt;br /&gt;
&lt;br /&gt;
[[File:analytical solution.png|550x550px|thumb|center|Figure 1:classical solution and velocity-Verlet solution for the position at time t]]&lt;br /&gt;
The plot above shows a comparison between the classical solution and velocity-Verlet solution and it can be seen that there are no significant differences between two solutions.&lt;br /&gt;
&lt;br /&gt;
The graph below shows the actual difference between the two solutions.&lt;br /&gt;
[[File:Maxima in error myj.png|550x550px|thumb|center|Figure 2:absolute difference between &amp;quot;ANALYTICAL&amp;quot; and velocity-Verlet solution]]&lt;br /&gt;
&lt;br /&gt;
The maxima in error are estimated and shown as a function of time (brown line), which can be fit to the equation shown in the graph.&lt;br /&gt;
The total energy of the oscillator is the sum of kinetic and potential energies: &amp;lt;math&amp;gt;E=\frac{mv^2}{2} + \frac{kx^2}{2}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;and &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; are the velocity-Verlet solution for velocity and position (&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;=1.00 and &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;=1.00).&lt;br /&gt;
&lt;br /&gt;
[[File:total_energy_myj.png|550x550px|thumb|center|Figure 3:total energy and its lower and upper limit when timestep is 0.1]]&lt;br /&gt;
[[File:energy_0.2timestep_myj.png|550x550px|thumb|center|Figure 4:total energy and its lower and upper limit when timestep is 0.2]]&lt;br /&gt;
&lt;br /&gt;
In order to make sure the total energy does not change by more than 1%, timestep should be no more than 0.2. In a simple harmonic oscillator the sum of kinetic energy anf potential energy should ideally be a constant, so it is important to monitor the total energy of a physical system when modelling its behaviour numerically.&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
For a single Lennard-Jones interaction, the potential energy can be calculated by &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;. When the potential energy is zero, the separation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; is equal to the value of &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;).&lt;br /&gt;
The force acting on an object is determined by the potential that it experiences:&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the force at this seperation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i =- \frac{\mathrm{d}\phi\left(r_i\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =- \frac{\mathrm{d}4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)}{\mathrm{d}\mathbf{r}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; = &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;=&amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12r_0^{12}}{r_0^{13}} + \frac{6r_0^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the force at &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt; can be simplified to :&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =\frac{24\epsilon}{r_0}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found when the force is equal to zero:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F} =-4\epsilon \left( \frac{-12\sigma^{12}}{r^{13}} + \frac{6\sigma^6}{r^7} \right)=0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r_{eq}=\sqrt[6]{2}\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{r_{eq}^{12}} - \frac{\sigma^6}{r_{eq}^6} \right)&amp;lt;/math&amp;gt;, the well depth &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; can be calculated as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi\left(r_{eq}\right) = 4\epsilon \left( \frac{\sigma^{12}}{4\sigma^{12}} - \frac{\sigma^6}{2\sigma^6} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon= -\phi(r_{eq})&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r^{12}} - \frac{\sigma^6}{r^6} \right)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt; can be simplyfied as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int\phi\left(r\right)\mathrm{d}r = -4\epsilon \left( \frac{\sigma^{12}}{11r^{11}} - \frac{\sigma^6}{5r^5} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2^5\times\sigma^6} \right)=-2.48\times10^{-2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 2.5^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times2.5^5\times\sigma^6} \right)=-8.18\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r = 4\epsilon \left( \frac{\sigma^{12}}{11 \times 3^{11}\times\sigma^{12}} - \frac{\sigma^6}{5\times3^5\times\sigma^6} \right)=-3.29\times10^{-3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Periodic Boundary Conditions===&lt;br /&gt;
Mass of one water molecule can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;m=\frac{MW}{N_A}=2.99\times10^{-23}g&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\rho=\frac{m}{V}&amp;lt;/math&amp;gt; and the density of water is &amp;lt;math&amp;gt;1 g/cm^{-3}&amp;lt;/math&amp;gt;under standard consitions, the volume of 10000 water molecule can be estimated as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{m}{\rho}=\frac{10000\times2.99\times10^{-23}}{1}=2.99\times10^{-19}cm^3&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In a single timestep, an atom at position &amp;lt;math&amp;gt;\left(0.5, 0.5, 0.5\right)&amp;lt;/math&amp;gt; moves along the vector &amp;lt;math&amp;gt;\left(0.7, 0.6, 0.2\right)&amp;lt;/math&amp;gt;, the final position is &amp;lt;math&amp;gt;\left(1.2, 1.1, 0.7\right)&amp;lt;/math&amp;gt;. After applying periodic boundary conditions, the final position is &amp;lt;math&amp;gt;\left(0.2, 0.1, 0.7\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Reduced Units===&lt;br /&gt;
Since &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}=3.2&amp;lt;/math&amp;gt;, in real unit &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r=r^*\sigma=0.34\times3.2=1.09 nm&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\epsilon\ /\ k_B= 120 \mathrm{K}&amp;lt;/math&amp;gt;,  the well depth in &amp;lt;math&amp;gt;\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt; can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\epsilon=1.38\times10^{-23}\times120\times10^{-3}\times6.02\times10^{23}=0.997\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;, the reduced temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt; in real units can be calculated as:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=\frac{T^*\epsilon}{k_B}=1.5\times120=180 K&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Output of First Simulations==&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
Generating random starting coordinates for atoms causes problems in simulations because if two atoms happen to be generated close together, the force between two will be large and the resulting potential energy will be high as well, which makes the system unstable. Therefore the final results of simulation will be inaccurate.&lt;br /&gt;
&lt;br /&gt;
In the output file, a simple cubic lattice is created and the distance between the points of this lattice is 1.07722 (in reduced units).&lt;br /&gt;
&amp;lt;center&amp;gt;lattice point number density = number of lattice point/volume of lattice&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{1}{1.07722^3}=0.8&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of fcc cubic lattice, the number of lattice points is 4. &lt;br /&gt;
Since the lattice point number density is 1.2 in this case, the side length can be calculated:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; l=\sqrt[3]{\frac{4}{1.2}}=1.5&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1000 unit cells will be created by the create_atoms command and therefore 4000 atoms will be created for the fcc cubic lattice.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut 3.0&lt;br /&gt;
pair_coeff * * 1.0 1.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
There is only one atom type and the mass is 1.0.&lt;br /&gt;
&lt;br /&gt;
The pairwise interaction is set as cutoff Lennard-Jones potential with no Coulomb and the cutoff for atoms is at 3.0.&lt;br /&gt;
&lt;br /&gt;
pair_coeff specifies the pairwise force field coefficients for one or more pairs of atom types and the asterisks mean all atom types.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; are being specified, so velocity Verlet Algorithm will be used.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
It will be better to replace the text string with a value needed rather than define it directly.&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&lt;br /&gt;
|[[File:TE 0.001 myj.png|400px|thumb|Figure 5: Total energy against time for 0.001 timestep]]||[[File:T 0.001 myj.png|400px|thumb|Figure 6: Temperature against time for 0.001 timestep]]&lt;br /&gt;
||[[File:P 0.001 myj.png|400px|thumb|Figure 7: Pressure against time for 0.001 timestep]]&lt;br /&gt;
|}&lt;br /&gt;
The simulation reaches equilibrium at about t=0.3 and the total energy at equilibrium is about -3.18(in reduced unit).&lt;br /&gt;
&lt;br /&gt;
The pressure and temperature of the system are also reach a constant average value with fluctuations, which is 2.6 and 1.3 respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Energy plot for comparision myj.png|600px|thumb|center|Figure 8: energy versus time for all of the timesteps]]&lt;br /&gt;
&lt;br /&gt;
Of the five timesteps used, 0.0025 is the largest to give acceptable results. It gives the most similar results as 0.001 timestep.&lt;br /&gt;
0.015 is a particularly bad choice because the simulation does not reach an equilibrium and the total energy keeps increasing.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
===Thermostats and Barostats===&lt;br /&gt;
In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms each with 3 degrees of freedom:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to get our target temperature &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt;, every velocity can be multiplied by a constant factor &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i (v_i\gamma)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This equation can be simplified as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2\frac{3}{2} N k_B T = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma^2 T = \mathfrak{T}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\gamma = \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The Nevery, Nrepeat, and Nfreq arguments (100, 1000, 10000 in this case) specify on what timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a mlutiple of Nfreq. The average is over Nrepeat quantities, computed in the preceding portion of the simulation every Nevery timesteps.&lt;br /&gt;
&lt;br /&gt;
The values will be sampled for the average every 100 timesteps and there are 1000 measurements contribute to the average.Then values on timesteps 100, 200, ... 100000 will be used to compute the final average on timestep 100000.&lt;br /&gt;
&lt;br /&gt;
The timestep is 0.0025 and the simulation is run over 100000 timesteps, so the total time of simulation should be 250.&lt;br /&gt;
&lt;br /&gt;
===Plotting the Equations of State===&lt;br /&gt;
10 simulations was run at 5 different temperatures (T=2.0, 3.0, 4.0, 5.0, 6.0) and 2 different pressures (P=2.6, 3.0) at 0.0025 timestep as it shows the best results in last section.&lt;br /&gt;
&lt;br /&gt;
The ideal gas law shows &amp;lt;math&amp;gt;PV=Nk_BT&amp;lt;/math&amp;gt;, which can be used to calculate density as the equation showing below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho=\frac{N}{V}=\frac{P}{k_BT}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since all variables are in reduced units after simulation and &amp;lt;math&amp;gt;P^*=\frac{P\sigma^3}{\epsilon}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\rho=\frac{N\sigma^3}{V}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;T^*=\frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt; &amp;lt;ref name=&amp;quot;1.4767528&amp;quot;&amp;gt;S. Delage Santacreu ,G. Galliero, M. Odunlami and C. Boned, &amp;quot;Low density shear viscosity of Lennard-Jones chains of variable rigidities&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;137&#039;&#039;&#039;, 204306(2012). {{DOI|10.1063/1.4767528}}&amp;lt;/ref&amp;gt;, the density predicted by ideal gas law can be calculated as below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\rho^*=\frac{\sigma^3N}{V}=\frac{\sigma^3P}{k_BT}=\frac{\sigma^3\frac{P^*\epsilon}{\sigma^3}}{T^*\epsilon}=\frac{P^*}{T^*}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Final myj.PNG|650px|center|thumb|Figure 9:density vs time for both of the pressures]]&lt;br /&gt;
&lt;br /&gt;
From the graph, it can be seen that the simulated density is lower than the ideal density and the discrepancy increases as pressure increases and it decreases as temperature increases.&lt;br /&gt;
&lt;br /&gt;
==Calculating heat capacities using statistical physics==&lt;br /&gt;
&lt;br /&gt;
The heat capacity of the system can be calculated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = \frac{\mathrm{Var}\left[E\right]}{k_B T^2} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, the temperatures and densities used are 2.0,2.2,2.4,2.6,2.8 and 0.2, 0.8 respectively.&lt;br /&gt;
&lt;br /&gt;
One of the input scripts is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable dens equal 0.2&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${dens}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable timestep equal 0.0025&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp vol atoms&lt;br /&gt;
variable volume equal vol&lt;br /&gt;
variable atoms2 equal atoms*atoms&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable E equal etotal&lt;br /&gt;
variable E2 equal etotal*etotal&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_temp v_temp2 v_volume v_E v_E2&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avetemp equal f_aves[1]&lt;br /&gt;
variable heatcapacity equal ${atoms2}*(f_aves[5]-f_aves[4]*f_aves[4])/f_aves[2]&lt;br /&gt;
variable heatcapacityV equal ${heatcapacity}/${volume}&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity: ${heatcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Heat Capacity over V: ${heatcapacityV}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to make the heat capacity independent of the size, we plot &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; against temperature.&lt;br /&gt;
&lt;br /&gt;
[[file:HC myj.PNG|600px|thumb|center|figure 10: Cv/V against temperature for two different densities]]&lt;br /&gt;
&lt;br /&gt;
According to the equation, the temperature and heat capacity are inversely proportional. So the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; should decrease with temperature.&lt;br /&gt;
&lt;br /&gt;
As for a larger density system, it will have more number of atoms at a fixed volume and the ability of it to store internal energy will be stronger, therefore the value of &amp;lt;math&amp;gt;\frac{C_v}{V}&amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt;\rho=0.8&amp;lt;/math&amp;gt; will be higher than at&amp;lt;math&amp;gt;\rho=0.2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Structural properties and the radial distribution function==&lt;br /&gt;
An atomic trajectory is recorded to generate RDFs for the solid, liquid, and vapour phase Lennard Jones systems. &lt;br /&gt;
In order to get 3 different phases, the density and temperature is modified as below &amp;lt;ref name=&amp;quot;PhysRev.184.151&amp;quot;&amp;gt;Jean-Pierre Hansen and Loup Verlet, &amp;quot;Phase Transitions of the Lennard-Jones System&amp;quot;, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;184&#039;&#039;&#039;, 151, 1969.{{DOI|10.1103/PhysRev.184.151}}&amp;lt;/ref&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &lt;br /&gt;
! vapour&lt;br /&gt;
! liquid&lt;br /&gt;
! solid&lt;br /&gt;
|-&lt;br /&gt;
| Temperature&lt;br /&gt;
| 1.15&lt;br /&gt;
| 1.2&lt;br /&gt;
| 1.15&lt;br /&gt;
|-&lt;br /&gt;
| Density&lt;br /&gt;
| 0.05&lt;br /&gt;
| 0.8&lt;br /&gt;
| 1.5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:Capture gr myj.PNG‎|500px|thumb|center|Figure 11: RDFs for 3 systems]]&lt;br /&gt;
&lt;br /&gt;
The RDF[https://en.wikibooks.org/wiki/Molecular_Simulation/Radial_Distribution_Functions] defines the probability of finding a particle at a distance r from another particle. For all 3 systems, when r is small, the value of g(r) is zero as two particles can not occupied the same space due to repulsion forces and the first coordination sphere is found when &amp;lt;math&amp;gt;r=\sigma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Gases do not have a regular structure and only have one coordination sphere that will rapidly decay to normal density, g(r)=1.&lt;br /&gt;
&lt;br /&gt;
Solids have regular and specific structure over a long range. The peaks indicate the coordination shells for the solid. The first peak represent the nearest neighbours, the second peaks is for the seccond nearest neighbours and so on. There is no possibility to find particles in between as all molecules are regularly packed.&lt;br /&gt;
&lt;br /&gt;
Liquids are more loosely packed than solids therefore do not have exact intervals.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gr of solid.PNG|400px|thumb|Figure 12:first 3 peaks in RDF of solid]]||[[File:Integral of solid.PNG|400px|thumb|Figure 13: running integral of RDF of solid]]&lt;br /&gt;
|}&lt;br /&gt;
Acoording to the plot above, as for solid, the coordination number of the first coordination shell is 12. And the coordination number for the second and third shell is 6 and 24 respectively.&lt;br /&gt;
&lt;br /&gt;
==Dynamical properties and the diffusion coefficient==&lt;br /&gt;
&lt;br /&gt;
===Mean Squared Displacement===&lt;br /&gt;
The densities and temperatures used are the same as last section.&lt;br /&gt;
The graphs below show the simulation of MSD of liquid, soid and gas as well as for a 1 million atoms system.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour small myj.PNG|400px|thumb|Figure 14a: Simulation for gas]]||[[File:Liquid myj.PNG|400px|thumb|Figure 14b: simulation for liquid]]&lt;br /&gt;
||[[File:Solid small myj.PNG|400px|thumb|Figure 14c:simulation for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Vapour large myj.PNG|400px|thumb|Figure 15a: Simulation for gas (much larger system)]]||[[File:Liquid msd myj.PNG|400px|thumb|Figure 15b: simulation for liquid (much larger system)]]&lt;br /&gt;
||[[File:Solid large myj.PNG|400px|thumb|Figure 15c: Simulation for solid (much larger system)]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The graphs vapour and liquid for both small and large scales are nearly the same.&lt;br /&gt;
The graph for solid at a small scale looks similar to the larger system one but with more fluctuations because the stability of a system containing 1 million atoms would be much higher.&lt;br /&gt;
&lt;br /&gt;
Solid shows a completely different shape due to its regular structure and it has a fixed position for each atom (with vibrations).&lt;br /&gt;
&lt;br /&gt;
The value of D can be estimated by the equation showing below:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, &amp;lt;math&amp;gt;\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;=gradient of trend line /timestep.&lt;br /&gt;
&lt;br /&gt;
As for small systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0289}{0.002}=2.408&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{6\times10^{-9}}{0.002}=5\times10^{-7}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems,&lt;br /&gt;
&lt;br /&gt;
vapour: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.0305}{0.002}=2.542&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{0.001}{0.002}=0.083&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{6}\times\frac{5\times10^{-8}}{0.002}=4.17\times10^{-6}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Velocity Autocorrelation Function===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for the evolution of the position of a 1D harmonic oscillator as a function of time is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x(t)=Acos(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;v(t)=\frac{dx(t)}{dt}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t)=\frac {d[Acos(\omega t+\phi)]}{dt}=-\omega A sin(\omega t+\phi)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A sin[\omega(t+ \tau)+\phi=-\omega A sin[\omega(t+\phi)+\omega \tau]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Acoording to the trigonometric formula &amp;lt;math&amp;gt;sin(x+y)=sin(x)cos(y)+cos(x)sin(y)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;v(t+\tau)=-\omega A[sin(\omega t+\phi) cos(\omega \tau)+cos(\omega t +\phi) sin(\omega \tau)]=cos(\omega \tau)\times v(t)-\omega t[cos(\omega t+\phi) sin(\omega \tau)]&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = \frac{\int_{-\infty}^{\infty}v(t)[v(t) cos(\omega \tau)-\omega t[cos(\omega t+\phi)sin(\omega \tau)]]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =\frac{cos(\omega t)\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}-\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) = cos(\omega t) -\frac{\int_{-\infty}^{\infty} -\omega t[cos(\omega t+\phi)sin(\omega \tau)]\mathrm{d}t}{\int_{-\infty}^{\infty} v^2(t)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sine function is an odd function, which means the integral of it from &amp;lt;math&amp;gt;-\infty&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\infty&amp;lt;/math&amp;gt; will be zero. Therefore the second part of the equation shown above should also be zero.&lt;br /&gt;
&lt;br /&gt;
Then the equation can be simplified to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C(\tau) =cos(\omega \tau)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The graph below shows the difference between VACFs of Lennard Jones liquid and solid and harmonic oscillator VACF.&lt;br /&gt;
&lt;br /&gt;
[[File:Capacity myj.PNG|600px|thumb|center|Figure 16: VACFs for liquid, solid and &amp;lt;math&amp;gt;\omega=\frac{1}{2\pi}&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The velocity of a molecule after collision will be independent of its initial velocity&amp;lt;ref name=&amp;quot;1.434461&amp;quot;&amp;gt;Otto J. Eder, &amp;quot;The velocity autocorrelation function and the diffusion coefficient for a dilute hard&lt;br /&gt;
sphere gas&amp;quot;, &#039;&#039;J. Chem. Phys.&#039;&#039;, &#039;&#039;&#039;66&#039;&#039;&#039;, 3866 (1977).{{DOI|10.1063/1.434461}}&amp;lt;/ref&amp;gt;. Both magnitude and direction are expected to change with the influence of the force. The minimum value on the graph corresponds to largest difference between final velocity and initial velocity. Solid has lower value than liquid due to stronger interatomic force. In the case of harmonic oscillstor, the interatomic force is not involved.&lt;br /&gt;
&lt;br /&gt;
The following equation can be used to calculate D:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Trapezium rule is then used to estimate the integrals under VACFs for gas, liquid and solid and the plots of running integral are shown below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas s ri.PNG|400px|thumb|Figure 17a: running integral for gas]]||[[File:Liquid s ri.PNG|400px|thumb|Figure 17b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid s ri.PNG|400px|thumb|Figure 17c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&lt;br /&gt;
|[[File:Gas l ri.PNG|400px|thumb|Figure 18a: running integral for gas]]||[[File:Liquid l ri.PNG|400px|thumb|Figure 18b: running integral for liquid]]&lt;br /&gt;
||[[File:Solid l ri.PNG|400px|thumb|Figure 18c: running integral for solid]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Calculations for values of D for small systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.27325499=3.091&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.293666634=0.098&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.002980073=9.933\times10^{-4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for larger systems:&lt;br /&gt;
&lt;br /&gt;
gas: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 9.805397393=3.268&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
liquid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.270274429=0.090&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
solid: &amp;lt;math&amp;gt;D=\frac{1}{3}\times 0.000136588=4.553\times10^{-5}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The values of D obtained are very closed to the values from last section except from the value for solid in a small scale.&lt;br /&gt;
&lt;br /&gt;
The trapezium rule is not that accurate especially for solid and it can be improved by smaller timestep.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ym2814</name></author>
	</entry>
</feed>