<?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=Jbettenc</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=Jbettenc"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Jbettenc"/>
	<updated>2026-04-08T19:30:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Locating_the_Curie_temperature&amp;diff=822061</id>
		<title>Programming a 2D Ising Model/Locating the Curie temperature</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Locating_the_Curie_temperature&amp;diff=822061"/>
		<updated>2026-03-05T10:35:12Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Fix typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the eighth (and final) section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Programming a 2D Ising Model|Introduction]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should have seen in the previous section that the heat capacity becomes strongly peaked in the vicinity of the critical temperature and that the peak became increasingly sharply peaked as the system size was increased &amp;amp;mdash; in fact, Onsager proved that in an infinite system the heat capacity should diverge at &#039;&#039;T&#039;&#039; = &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039;. In our finite systems, however, not only does the heat capacity not diverge, the Curie temperature changes with system size! This is known as a &#039;&#039;finite size effect&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
It can be shown, however, that the temperature at which the heat capacity has its maximum must scale according to &amp;lt;math&amp;gt;T_{C, L} = \frac{A}{L} + T_{C,\infty}&amp;lt;/math&amp;gt;, where &#039;&#039;T&amp;lt;sub&amp;gt;C,L&amp;lt;/sub&amp;gt;&#039;&#039; is the Curie temperature of an &#039;&#039;L&#039;&#039;&amp;amp;times;&#039;&#039;L&#039;&#039; lattice, &#039;&#039;T&amp;lt;sub&amp;gt;C,&amp;amp;infin;&amp;lt;/sub&amp;gt;&#039;&#039; is the Curie temperature of an infinite lattice, and &#039;&#039;A&#039;&#039; is a constant in which we are not especially interested. This scaling equation comes from expanding in the limit of large &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8a&amp;lt;/big&amp;gt;: Reference data has been generated for longer simulations than would be possible on the college computers in Python. Each file contains six columns: &#039;&#039;T&#039;&#039;, &#039;&#039;E&#039;&#039;, &#039;&#039;E&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, &#039;&#039;M&#039;&#039;, &#039;&#039;M&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, &#039;&#039;C&#039;&#039; (NOTE: these final five quantities are normalised per spin, unlike your Python data), and you can read them with the NumPy &amp;lt;code&amp;gt;loadtxt&amp;lt;/code&amp;gt; function as before. For each lattice size, plot the reference data against your data. For &#039;&#039;one&#039;&#039; lattice size, save a SVG or PNG image of this comparison and add it to your report &amp;amp;mdash; add a legend to the graph to label which is which (check if you need a [https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.legend.html reminder about use of legend]).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Polynomial fitting==&lt;br /&gt;
&lt;br /&gt;
To find the temperature at which the heat capacity and susceptibilities have their maxima, we are going to fit a polynomial to the data in the critical region. NumPy provides the useful [http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html &amp;lt;code&amp;gt;polyfit&amp;lt;/code&amp;gt;] and [http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyval.html#numpy.polyval &amp;lt;code&amp;gt;polyval&amp;lt;/code&amp;gt;] functions for this purpose. The following code is written for the heat capacities - try to also repeat this for the susceptibility! The usage is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data = np.loadtxt(&amp;quot;...&amp;quot;) #assume data is now a 2D array containing two columns, T and C&lt;br /&gt;
T = data[:,0] #get the first column&lt;br /&gt;
C = data[:,1] # get the second column&lt;br /&gt;
&lt;br /&gt;
#first we fit the polynomial to the data&lt;br /&gt;
fit = np.polyfit(T, C, 3) # fit a third order polynomial&lt;br /&gt;
&lt;br /&gt;
#now we generate interpolated values of the fitted polynomial over the range of our function&lt;br /&gt;
T_min = np.min(T)&lt;br /&gt;
T_max = np.max(T)&lt;br /&gt;
T_range = np.linspace(T_min, T_max, 1000) #generate 1000 evenly spaced points between T_min and T_max&lt;br /&gt;
fitted_C_values = np.polyval(fit, T_range) # use the fit object to generate the corresponding values of C&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8b&amp;lt;/big&amp;gt;: Write a script to read the data from a particular file, and plot &#039;&#039;C&#039;&#039; and &#039;&#039;&amp;amp;chi;&#039;&#039; vs &#039;&#039;T&#039;&#039;, as well as a fitted polynomial. Try changing the degree of the polynomial to improve the fit &amp;amp;mdash; in general, it might be difficult to get a good fit! Attach a SVG or PNG image of an example fit to your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Fitting in a particular temperature range===&lt;br /&gt;
&lt;br /&gt;
Rather than fit to all of the data, we might want to fit in only a particular range. NumPy provides a very powerful way to index arrays based on certain conditions. For example, if we want to extract only those data points which are between a particular &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;min&amp;lt;/sub&amp;gt; and &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt;, we can use the following syntax:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data = np.loadtxt(&amp;quot;...&amp;quot;) #assume data is now a 2D array containing two columns, T and C&lt;br /&gt;
T = data[:,0] #get the first column&lt;br /&gt;
C = data[:,1] # get the second column&lt;br /&gt;
&lt;br /&gt;
Tmin = 0.5 #for example&lt;br /&gt;
Tmax = 2.0 #for example&lt;br /&gt;
&lt;br /&gt;
selection = np.logical_and(T &amp;gt; Tmin, T &amp;lt; Tmax) #choose only those rows where both conditions are true&lt;br /&gt;
peak_T_values = T[selection]&lt;br /&gt;
peak_C_values = C[selection]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8c&amp;lt;/big&amp;gt;: Modify your script from the previous section. You should still plot the whole temperature range, but fit the polynomial only to the peak! You should find it easier to get a good fit when restricted to this region.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Finding the peak in C===&lt;br /&gt;
&lt;br /&gt;
Your fitting script should now generate two variables: &amp;lt;code&amp;gt;peak_T_range&amp;lt;/code&amp;gt;, containing 1000 equally spaced temperature values between &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;min&amp;lt;/sub&amp;gt; and &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; (whatever you chose those values to be), and fitted_&#039;&#039;C&#039;&#039;_values, containing the fitted heat capacity at each of those points. Use the NumPy &amp;lt;code&amp;gt;max&amp;lt;/code&amp;gt; function to find the maximum in &#039;&#039;C&#039;&#039;. If you store the maximum value of &#039;&#039;C&#039;&#039; in the variable &amp;lt;code&amp;gt;Cmax&amp;lt;/code&amp;gt;, you can use the following notation to find the corresponding temperature:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cmax = np.max(...)&lt;br /&gt;
Tmax = peak_T_range[fitted_C_values == Cmax]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8d&amp;lt;/big&amp;gt;: Find the temperature at which the maximum in &#039;&#039;C&#039;&#039; occurs for each datafile that you were given or generated with Python. Make a text file containing two columns: the lattice side length (2,4,8, etc.), and the temperature at which &#039;&#039;C&#039;&#039; is a maximum. This is your estimate of &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039; for that side length. Make a plot that uses the scaling relation given above to determine &#039;&#039;T&amp;lt;sub&amp;gt;C,&amp;amp;infin;&amp;lt;/sub&amp;gt;&#039;&#039;. By doing a little research, you should be able to find the theoretical exact Curie temperature for the infinite 2D Ising lattice. How does your value compare to this? Are you surprised by how good/bad the agreement is? Attach a SVG or PNG image of this final graph to your report, and discuss briefly what you think the major sources of error are in your estimate.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the eighth (and final) section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Programming a 2D Ising Model|Introduction]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=822060</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=822060"/>
		<updated>2026-03-02T18:24:15Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace QR code with new Main_Page URL&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:QR_chemwiki_home.svg|right|220px|QR code with ChemWiki home page URL]]&lt;br /&gt;
This is a communal area for documenting teaching and laboratory courses. To [[admin:add|add to any content on these pages]], you will have to log in using your Imperial College account. This page has {{DOI|qspf}}&lt;br /&gt;
== Remote Working ==&lt;br /&gt;
#[[Mod:Rem|Remote access to College computers]]&lt;br /&gt;
#[[Mod:HPC-add|Remote use of Gaussian]]&lt;br /&gt;
#[[Mod:support|Remote support]]&lt;br /&gt;
&lt;br /&gt;
== ORCID Identifiers and Research Data Publication ==&lt;br /&gt;
#[[orcid|Getting an ORCID identifier]] (two stages)&lt;br /&gt;
#[[rdm:synthesis-lab|Publishing NMR instrument data]] (three stages)&lt;br /&gt;
#[[rdm:xray-data|Publishing crystal structure instrument data]]&lt;br /&gt;
&lt;br /&gt;
= Laboratories and Workshops =&lt;br /&gt;
== First Year ==&lt;br /&gt;
*[[it:it_facillities|Email and IT@www.ch.imperial.ac.uk]]: A summary of available  IT resources&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]]&lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[[organic:stereo|Stereochemical models]]&lt;br /&gt;
&lt;br /&gt;
== Second Year ==&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
*Electronic States and Bonding - computational laboratory (see blackboard).&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&amp;lt;!--===Synthetic Modelling Lab {{DOI|10042/a3uws}}===&lt;br /&gt;
*[[mod:latebreak|Late breaking news]].&lt;br /&gt;
*[[mod:org-startup|Startup]]&lt;br /&gt;
**[[Mod:timetable-1C|Timetable]]&lt;br /&gt;
**[[mod:laptop|Using your laptop]]&lt;br /&gt;
*[[mod:organic|1C: Structure modelling, NMR and Chiroptical simulations]]&lt;br /&gt;
*[[mod:toolbox|The computational toolbox for spectroscopic simulation]]&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:avogadro|The Avogadro program]]&lt;br /&gt;
**[[Mod:chem3d|The ChemBio3D program]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[IT:ORCID|ORCID identifier]]&lt;br /&gt;
**[[Mod:toolbox#Submitting_this_file_to_the_HPC_for_geometry_optimization|Submitting jobs to the HPC (high-performance-computing) and research data management]]&lt;br /&gt;
**[[Mod:errors|Error conditions and other  FAQs]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
* [[Mod:ts_exercise|Transition states and reactivity.]]&lt;br /&gt;
* [[ThirdYearMgOExpt-1415|MgO thermal expansion]]&lt;br /&gt;
* [[Third_year_simulation_experiment|Simulation of a simple liquid]]&lt;br /&gt;
* [[Programming_a_2D_Ising_Model|Programming a 2D Ising Model (CMP only)]]&lt;br /&gt;
&lt;br /&gt;
= Material from previous years =&lt;br /&gt;
== First year ==&lt;br /&gt;
*[[Measurement_Science_Lab:_Introduction|Measurement Science Lab (2014)]]&lt;br /&gt;
*[[1da-workshops-2013-14|Introduction to Chemical Programming Workshop (2013)]]&lt;br /&gt;
&lt;br /&gt;
===Chemical Information Lab (2015)===&lt;br /&gt;
*[[it:intro-2011|Introduction]]&lt;br /&gt;
*[[it:lectures-2011|Lectures]]&lt;br /&gt;
*[[it:coursework-2011|Coursework]]&lt;br /&gt;
*[[it:assignment-2011|Assignment for the course]]&lt;br /&gt;
*[[it:software-2011|List of software for CIT]]&lt;br /&gt;
*[[it:searches-2011|Search facilities for CIT]]&lt;br /&gt;
&lt;br /&gt;
== Second year ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.huntresearchgroup.org.uk/teaching/year2a_lab_start.html Inorganic Computational Chemistry Computational Laboratory]&lt;br /&gt;
*[[CP3MD| Molecular Reaction Dynamics]]&lt;br /&gt;
&lt;br /&gt;
=== Modelling Workshop ===&lt;br /&gt;
*[[Coursework]] &lt;br /&gt;
*[[Second Year Modelling Workshop|Instructions]] and [[mod:further_coursework|Further optional coursework]]&lt;br /&gt;
*[[it:conquest|Conquest searches]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--=== Second Year Symmetry Workshops ===&lt;br /&gt;
*[[Symmetry Lab|Lab Exercises]]&lt;br /&gt;
*[[Symmetry Workshop 1|Symmetry Workshop 1]]&lt;br /&gt;
*[[Symmetry Lab Downloads|Downloads and Links]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&lt;br /&gt;
*[[TrendsCatalyticActivity|Understanding trends in catalytic activity for hydrogen evolution]]&lt;br /&gt;
*[[mod:inorganic|Bonding and molecular orbitals in main group compounds]]&lt;br /&gt;
&lt;br /&gt;
===Synthesis and computational lab ===&lt;br /&gt;
*[[Mod:organic|Synthesis and computational lab]]&lt;br /&gt;
&amp;lt;!-- === First year Background ===&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]] &lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[http://www.chem.utas.edu.au/torganal/ Torganal: a program for  Spectroscopic analysis] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[mod:intro|Information needed for the course]]&lt;br /&gt;
&amp;lt;!--*[[mod:lectures|Introductory lecture notes]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--*[[mod:laptop|Using your laptop]]--&amp;gt;&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
&amp;lt;!--*[[mod:Q&amp;amp;A|Questions and Answers]]--&amp;gt;&lt;br /&gt;
*[[mod:latebreak|Late breaking news]]&lt;br /&gt;
&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[Mod:scan|Submitting jobs to the chemistry high-performance-computing resource]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ChemDraw/Chemdoodle Hints ==&lt;br /&gt;
#[[IT:chemdraw|Useful hints for using  ChemDraw/ChemDoodle]]&lt;br /&gt;
&lt;br /&gt;
== Tablet  Project ==&lt;br /&gt;
# [[tablet:tablet|Tablet Pilot  Project]]&lt;br /&gt;
== 3D ==&lt;br /&gt;
# [[mod:3D|3D-printable models]]&lt;br /&gt;
# [[mod:stereo|Lecture Theatre  Stereo]]&lt;br /&gt;
== Online materials for mobile devices ==&lt;br /&gt;
# [[ebooks:howto|How to get eBooks]]&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191620 Pericylic reactions in iTunesU ]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8  App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191825 Conformational analysis in iTunesU]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191342 A library of mechanistic animations in  iTunesU] (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [[IT:panopto|How to compress and disseminate Panopto lecture recordings]]&lt;br /&gt;
&lt;br /&gt;
= PG =&lt;br /&gt;
&amp;lt;!-- # [[pg:data|Data management]] --&amp;gt;&lt;br /&gt;
# [[rdm:intro|Data management]]&lt;br /&gt;
= DOI =&lt;br /&gt;
*[[template:doi]]  This page  has {{DOI|qspf}}&lt;br /&gt;
&lt;br /&gt;
= Accessibility on this site =&lt;br /&gt;
&lt;br /&gt;
* The Department of Chemistry wants as many people as possible to be able to use this website. The site hopes to maintain WCAG 2.1 AA standards, but it is not always possible for all our content to be accessible.&lt;br /&gt;
&lt;br /&gt;
=== Technical information about this website’s accessibility ===&lt;br /&gt;
&lt;br /&gt;
* Imperial College London is committed to making its website accessible in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.&lt;br /&gt;
&lt;br /&gt;
* This website is compliant with the Web Content Accessibility Guidelines version 2.1 AA standard.&lt;br /&gt;
&lt;br /&gt;
=== Reporting accessibility issues ===&lt;br /&gt;
&lt;br /&gt;
* If you need information on this website in a different format or if you have any issues accessing the content then please contact [gmallia at imperial.ac.uk]. I will reply as soon as possible.&lt;br /&gt;
 &lt;br /&gt;
=== Enforcement procedure ===&lt;br /&gt;
 &lt;br /&gt;
* The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). &lt;br /&gt;
If you’re not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).&lt;br /&gt;
&lt;br /&gt;
=== Last updated ===&lt;br /&gt;
&lt;br /&gt;
This statement was prepared in September 2020 (rechecked in May 2021).&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:QR_chemwiki_home.svg&amp;diff=822059</id>
		<title>File:QR chemwiki home.svg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:QR_chemwiki_home.svg&amp;diff=822059"/>
		<updated>2026-03-02T18:12:59Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: QR code encoding the home page URL for ChemWiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
QR code encoding the home page URL for ChemWiki&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822058</id>
		<title>Programming a 2D Ising Model</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822058"/>
		<updated>2026-02-25T18:57:18Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Getting Help */ Small fixes in the schedule&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the Ising Model experiment (aka programming for simple simulations). This is a core experiment for year 3 students on the Chemistry with Molecular Physics degree.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise, you are going to use the Python that you learned in the first year to write a code to perform Monte-Carlo simulations of the 2D [http://en.wikipedia.org/wiki/Ising_model Ising model], a set of spins on a lattice which is used to model ferromagnetic behaviour, and also to analyse the results of the simulation to find the heat capacity of the system and the Curie temperature &amp;amp;mdash; the temperature below which the system is able to maintain a spontaneous magnetisation.&lt;br /&gt;
&lt;br /&gt;
A more extensive introduction to the Ising Model will be given in the next page. This page gives some practical information about how the experiment. &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
At the end of this experiment you must submit a report, writing up your findings. Each section of the experiment has a number of tasks that you should complete, labelled &#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;&#039;&#039;&#039;. If this is a mathematical exercise, your report should contain a short summary of the solution. If it is a graphical exercise, you should include the relevant image. Your report should explain briefly what you did in each stage of the experiment, and what your findings were.&lt;br /&gt;
&lt;br /&gt;
The report should be submitted as a PDF file to Turnitin, created with your favourite word processor or LaTeX, and should contain the annotated source code of the Python scripts that your write during the experiment. For clarity, code included in the report should be written in a monospaced font (e.g. Courier), which in LaTeX can be easily achieved by placing your code inside a &amp;lt;code&amp;gt;\texttt{}&amp;lt;/code&amp;gt; command. &#039;&#039;&#039;The code, except where relevant to discussion, can be placed in an appendix.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As well as including relevant source code in your report, you should also submit a bundle with all your scripts and analysis code as a separate Blackboard submission.&lt;br /&gt;
&lt;br /&gt;
===On the use of AI tools===&lt;br /&gt;
The code you write for this experiment is assessed, and as per the [https://bb.imperial.ac.uk/bbcswebdav/pid-3344481-dt-content-rid-21115105_1/xid-21115105_1 department&#039;s guidelines on the use of AI], it is not acceptable to use generative AI tools to write computer code for this assignment.&lt;br /&gt;
&lt;br /&gt;
Writing computer programs yourself enhances your logical thinking and problem solving skills. Using generative AI tools to write your code makes you dumb. Don&#039;t choose to be dumb, don&#039;t use AI to write code for you.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The Graduate Teaching Assistants demonstrating this experiment are Fionn Carman and Lei Li. Demonstrators will be available in room 232A at the following times:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Demonstrator timetable&lt;br /&gt;
! !! Monday !! Tuesday !! Wednesday !! Thusrsday !! Friday&lt;br /&gt;
|-&lt;br /&gt;
| Morning || 10:00 - Experiment intro&amp;lt;br /&amp;gt; 10:00-13:00 - Li || 10:00-13:00 - Fionn|| || 10:00-12:00 - João || 10:00-13:00 - Fionn&lt;br /&gt;
|-&lt;br /&gt;
| Afternoon || 14:00-17:00 - Li|| 14:00-17:00 - Fionn|| ||  || 14:00-17:00 - Fionn&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you have questions outside these times, please use the Discussion Board on Blackboard.&lt;br /&gt;
&lt;br /&gt;
João and Giuseppe are the members of academic staff responsible for this experiment. You are welcome to address your questions and comments to them.&lt;br /&gt;
&lt;br /&gt;
==Structure of this Experiment==&lt;br /&gt;
&lt;br /&gt;
This experimental manual has been broken up into a number of subsections. Direct links to each of them may be found below. You should attempt them in order, and you should complete all of them to finish the experiment.&lt;br /&gt;
&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model|Introduction to the Ising model]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction to Monte Carlo simulation|Introduction to the Monte Carlo simulation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Accelerating the code|Accelerating the code]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of temperature|The effect of temperature]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of system size|The effect of system size]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Determining the heat capacity|Determining the heat capacity]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Locating the Curie temperature|Locating the Curie temperature]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822057</id>
		<title>Programming a 2D Ising Model</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822057"/>
		<updated>2026-02-25T18:29:57Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Getting Help */ Typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the Ising Model experiment (aka programming for simple simulations). This is a core experiment for year 3 students on the Chemistry with Molecular Physics degree.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise, you are going to use the Python that you learned in the first year to write a code to perform Monte-Carlo simulations of the 2D [http://en.wikipedia.org/wiki/Ising_model Ising model], a set of spins on a lattice which is used to model ferromagnetic behaviour, and also to analyse the results of the simulation to find the heat capacity of the system and the Curie temperature &amp;amp;mdash; the temperature below which the system is able to maintain a spontaneous magnetisation.&lt;br /&gt;
&lt;br /&gt;
A more extensive introduction to the Ising Model will be given in the next page. This page gives some practical information about how the experiment. &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
At the end of this experiment you must submit a report, writing up your findings. Each section of the experiment has a number of tasks that you should complete, labelled &#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;&#039;&#039;&#039;. If this is a mathematical exercise, your report should contain a short summary of the solution. If it is a graphical exercise, you should include the relevant image. Your report should explain briefly what you did in each stage of the experiment, and what your findings were.&lt;br /&gt;
&lt;br /&gt;
The report should be submitted as a PDF file to Turnitin, created with your favourite word processor or LaTeX, and should contain the annotated source code of the Python scripts that your write during the experiment. For clarity, code included in the report should be written in a monospaced font (e.g. Courier), which in LaTeX can be easily achieved by placing your code inside a &amp;lt;code&amp;gt;\texttt{}&amp;lt;/code&amp;gt; command. &#039;&#039;&#039;The code, except where relevant to discussion, can be placed in an appendix.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As well as including relevant source code in your report, you should also submit a bundle with all your scripts and analysis code as a separate Blackboard submission.&lt;br /&gt;
&lt;br /&gt;
===On the use of AI tools===&lt;br /&gt;
The code you write for this experiment is assessed, and as per the [https://bb.imperial.ac.uk/bbcswebdav/pid-3344481-dt-content-rid-21115105_1/xid-21115105_1 department&#039;s guidelines on the use of AI], it is not acceptable to use generative AI tools to write computer code for this assignment.&lt;br /&gt;
&lt;br /&gt;
Writing computer programs yourself enhances your logical thinking and problem solving skills. Using generative AI tools to write your code makes you dumb. Don&#039;t choose to be dumb, don&#039;t use AI to write code for you.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The Graduate Teaching Assistants demonstrating this experiment are Fionn Carman and Lei Li. Demonstrators will be available in room 232A at the following times:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Demonstrator timetable&lt;br /&gt;
! !! Monday !! Tuesday !! Wednesday !! Thusrsday !! Friday&lt;br /&gt;
|-&lt;br /&gt;
| Morning || 10:00 - Experiment intro&amp;lt;br /&amp;gt; 10:00-13:00 - Lei || 10:00-13:00 - Fionn|| || 10:00-13:00 - João || 10:00-13:00 - Fionn&lt;br /&gt;
|-&lt;br /&gt;
| Afternoon || 14:00-17:00 - Lei|| 14:00-17:00 - Fionn|| ||  || 14:00-17:00 - Fionn&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you have questions outside these times, please use the Discussion Board on Blackboard.&lt;br /&gt;
&lt;br /&gt;
João and Giuseppe are the members of academic staff responsible for this experiment. You are welcome to address your questions and comments to them.&lt;br /&gt;
&lt;br /&gt;
==Structure of this Experiment==&lt;br /&gt;
&lt;br /&gt;
This experimental manual has been broken up into a number of subsections. Direct links to each of them may be found below. You should attempt them in order, and you should complete all of them to finish the experiment.&lt;br /&gt;
&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model|Introduction to the Ising model]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction to Monte Carlo simulation|Introduction to the Monte Carlo simulation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Accelerating the code|Accelerating the code]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of temperature|The effect of temperature]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of system size|The effect of system size]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Determining the heat capacity|Determining the heat capacity]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Locating the Curie temperature|Locating the Curie temperature]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822056</id>
		<title>Programming a 2D Ising Model</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822056"/>
		<updated>2026-02-25T18:29:28Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Getting Help */ Update demonstrators rota&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the Ising Model experiment (aka programming for simple simulations). This is a core experiment for year 3 students on the Chemistry with Molecular Physics degree.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise, you are going to use the Python that you learned in the first year to write a code to perform Monte-Carlo simulations of the 2D [http://en.wikipedia.org/wiki/Ising_model Ising model], a set of spins on a lattice which is used to model ferromagnetic behaviour, and also to analyse the results of the simulation to find the heat capacity of the system and the Curie temperature &amp;amp;mdash; the temperature below which the system is able to maintain a spontaneous magnetisation.&lt;br /&gt;
&lt;br /&gt;
A more extensive introduction to the Ising Model will be given in the next page. This page gives some practical information about how the experiment. &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
At the end of this experiment you must submit a report, writing up your findings. Each section of the experiment has a number of tasks that you should complete, labelled &#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;&#039;&#039;&#039;. If this is a mathematical exercise, your report should contain a short summary of the solution. If it is a graphical exercise, you should include the relevant image. Your report should explain briefly what you did in each stage of the experiment, and what your findings were.&lt;br /&gt;
&lt;br /&gt;
The report should be submitted as a PDF file to Turnitin, created with your favourite word processor or LaTeX, and should contain the annotated source code of the Python scripts that your write during the experiment. For clarity, code included in the report should be written in a monospaced font (e.g. Courier), which in LaTeX can be easily achieved by placing your code inside a &amp;lt;code&amp;gt;\texttt{}&amp;lt;/code&amp;gt; command. &#039;&#039;&#039;The code, except where relevant to discussion, can be placed in an appendix.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As well as including relevant source code in your report, you should also submit a bundle with all your scripts and analysis code as a separate Blackboard submission.&lt;br /&gt;
&lt;br /&gt;
===On the use of AI tools===&lt;br /&gt;
The code you write for this experiment is assessed, and as per the [https://bb.imperial.ac.uk/bbcswebdav/pid-3344481-dt-content-rid-21115105_1/xid-21115105_1 department&#039;s guidelines on the use of AI], it is not acceptable to use generative AI tools to write computer code for this assignment.&lt;br /&gt;
&lt;br /&gt;
Writing computer programs yourself enhances your logical thinking and problem solving skills. Using generative AI tools to write your code makes you dumb. Don&#039;t choose to be dumb, don&#039;t use AI to write code for you.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The Graduate Teaching Assistants demonstrating this experiment are Fionn Carman and Lei Li. Demonstrators will be available in room 232A at the following times:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Demonstrator timetable&lt;br /&gt;
! !! Monday !! Tuesday !! Wednesday !! Thusrsday !! Friday&lt;br /&gt;
|-&lt;br /&gt;
| Morning || 10:00 - Experiment intro&amp;lt;br /&amp;gt; 10:00-13:00 - Lei || 10:00-13:00 - Fionn|| || 10:00-13:00 - João || 10:00-13:00 - Fionn&lt;br /&gt;
|-&lt;br /&gt;
| Afternoon || 14:00-17:00 - Li|| 14:00-17:00 - Fionn|| ||  || 14:00-17:00 - Fionn&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you have questions outside these times, please use the Discussion Board on Blackboard.&lt;br /&gt;
&lt;br /&gt;
João and Giuseppe are the members of academic staff responsible for this experiment. You are welcome to address your questions and comments to them.&lt;br /&gt;
&lt;br /&gt;
==Structure of this Experiment==&lt;br /&gt;
&lt;br /&gt;
This experimental manual has been broken up into a number of subsections. Direct links to each of them may be found below. You should attempt them in order, and you should complete all of them to finish the experiment.&lt;br /&gt;
&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model|Introduction to the Ising model]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction to Monte Carlo simulation|Introduction to the Monte Carlo simulation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Accelerating the code|Accelerating the code]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of temperature|The effect of temperature]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of system size|The effect of system size]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Determining the heat capacity|Determining the heat capacity]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Locating the Curie temperature|Locating the Curie temperature]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822047</id>
		<title>Template:Cite journal</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822047"/>
		<updated>2026-02-24T13:52:18Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Fix spacing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}} | missing &#039;&#039;author1&#039;&#039; }}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }}, {{#if: {{{title|}}} | &amp;quot;{{{title}}}&amp;quot;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{journal|}}} | &#039;&#039;{{{journal}}}&#039;&#039;, | missing &#039;&#039;journal&#039;&#039;, }} {{#if: {{{year|}}} | {{{year}}}, | missing &#039;&#039;year&#039;&#039;, }} {{#if: {{{volume|}}} | &#039;&#039;&#039;{{{volume}}}&#039;&#039;&#039; | missing &#039;&#039;volume&#039;&#039; }}{{#if: {{{issue|}}} | ({{{issue}}}) }}, {{#if: {{{pages|}}} |  {{{pages}}} | missing &#039;&#039;pages&#039;&#039; }}{{#if: {{{doi|}}} |, DOI: [http://dx.doi.org/{{{doi}}} {{{doi}}}] }}{{#if: {{{pmid|}}} |, [[PMID]]: [http://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}] }}{{#if: {{{url1|}}} |, [{{{url1}}}] }}.&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite journal&#039;&#039;&#039;&#039;&#039; template is used to reference a journal article. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite journal&lt;br /&gt;
  | author1 =&lt;br /&gt;
  | author2 = &lt;br /&gt;
  | author3 = &lt;br /&gt;
  | title   = &lt;br /&gt;
  | journal = &lt;br /&gt;
  | year    = &lt;br /&gt;
  | month   = &lt;br /&gt;
  | volume  = &lt;br /&gt;
  | issue   = &lt;br /&gt;
  | pages   = &lt;br /&gt;
  | doi     = &lt;br /&gt;
  | pmid    = &lt;br /&gt;
  | url1    =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Cite book]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822046</id>
		<title>Template:Cite book</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822046"/>
		<updated>2026-02-24T13:48:10Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Add edition field&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} | missing &#039;&#039;author1&#039;&#039; }}, {{#if: {{{title|}}} | &#039;&#039;{{{title}}}&#039;&#039;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{publisher|}}} | {{{publisher}}}, }} {{#if: {{{edition|}}} | {{{edition}}} edn., }}{{#if: {{{year|}}} | {{{year}}}| missing &#039;&#039;year&#039;&#039;}}.&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite book&#039;&#039;&#039;&#039;&#039; template is use to reference books.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite book&lt;br /&gt;
  | author1   =&lt;br /&gt;
  | author2   =&lt;br /&gt;
  | author3   =&lt;br /&gt;
  | title     =&lt;br /&gt;
  | publisher =&lt;br /&gt;
  | edition   =&lt;br /&gt;
  | year      =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Se also ==&lt;br /&gt;
* [[Template:Cite journal]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822045</id>
		<title>Template:Cite book</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822045"/>
		<updated>2026-02-24T13:45:22Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Fix template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} | missing &#039;&#039;author1&#039;&#039; }}, {{#if: {{{title|}}} | &#039;&#039;{{{title}}}&#039;&#039;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{publisher|}}} | {{{publisher}}}, }} {{#if: {{{year|}}} | {{{year}}}| missing &#039;&#039;year&#039;&#039;}}.&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite book&#039;&#039;&#039;&#039;&#039; template is use to reference books.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite book&lt;br /&gt;
  | author1   =&lt;br /&gt;
  | author2   =&lt;br /&gt;
  | author3   =&lt;br /&gt;
  | title     =&lt;br /&gt;
  | publisher =&lt;br /&gt;
  | year      =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Se also ==&lt;br /&gt;
* [[Template:Cite journal]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822044</id>
		<title>Template:Cite book</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822044"/>
		<updated>2026-02-24T13:44:33Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Align with RSC.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} | missing &#039;&#039;author1&#039;&#039; }}, {{#if: {{{title|}}} | &#039;&#039;{{{title}}}&#039;&#039;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{publisher|}}} | {{{publisher}}}, }} {{#if: {{{year|}}} | {{{year}}}| missing &#039;&#039;year&#039;&#039;}}).&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite book&#039;&#039;&#039;&#039;&#039; template is use to reference books.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite book&lt;br /&gt;
  | author1   =&lt;br /&gt;
  | author2   =&lt;br /&gt;
  | author3   =&lt;br /&gt;
  | title     =&lt;br /&gt;
  | publisher =&lt;br /&gt;
  | year      =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Se also ==&lt;br /&gt;
* [[Template:Cite journal]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822043</id>
		<title>Template:Cite journal</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822043"/>
		<updated>2026-02-24T13:40:08Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Don&amp;#039;t automatically put full stop at the end of pages.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}} | missing &#039;&#039;author1&#039;&#039; }}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }}, {{#if: {{{title|}}} | &amp;quot;{{{title}}}&amp;quot;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{journal|}}} | &#039;&#039;{{{journal}}}&#039;&#039;, | missing &#039;&#039;journal&#039;&#039;, }} {{#if: {{{year|}}} | {{{year}}}, | missing &#039;&#039;year&#039;&#039;, }} {{#if: {{{volume|}}} | &#039;&#039;&#039;{{{volume}}}&#039;&#039;&#039; | missing &#039;&#039;volume&#039;&#039; }}{{#if: {{{issue|}}} | ({{{issue}}}) }}, {{#if: {{{pages|}}} |  {{{pages}}} | missing &#039;&#039;pages&#039;&#039; }} {{#if: {{{doi|}}} |, DOI: [http://dx.doi.org/{{{doi}}} {{{doi}}}] }} {{#if: {{{pmid|}}} |, [[PMID]]: [http://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}] }} {{#if: {{{url1|}}} |, [{{{url1}}}] }}.&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite journal&#039;&#039;&#039;&#039;&#039; template is used to reference a journal article. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite journal&lt;br /&gt;
  | author1 =&lt;br /&gt;
  | author2 = &lt;br /&gt;
  | author3 = &lt;br /&gt;
  | title   = &lt;br /&gt;
  | journal = &lt;br /&gt;
  | year    = &lt;br /&gt;
  | month   = &lt;br /&gt;
  | volume  = &lt;br /&gt;
  | issue   = &lt;br /&gt;
  | pages   = &lt;br /&gt;
  | doi     = &lt;br /&gt;
  | pmid    = &lt;br /&gt;
  | url1    =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Cite book]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822042</id>
		<title>Template:Cite journal</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822042"/>
		<updated>2026-02-24T13:34:15Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Change template to something like RSC, but with quotes for article title and adding issue if it is provided.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}} | missing &#039;&#039;author1&#039;&#039; }}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }}, {{#if: {{{title|}}} | &amp;quot;{{{title}}}&amp;quot;, | missing &#039;&#039;title&#039;&#039;, }} {{#if: {{{journal|}}} | &#039;&#039;{{{journal}}}&#039;&#039;, | missing &#039;&#039;journal&#039;&#039;, }} {{#if: {{{year|}}} | {{{year}}}, | missing &#039;&#039;year&#039;&#039;, }} {{#if: {{{volume|}}} | &#039;&#039;&#039;{{{volume}}}&#039;&#039;&#039; | missing &#039;&#039;volume&#039;&#039; }}{{#if: {{{issue|}}} | ({{{issue}}}) }}, {{#if: {{{pages|}}} |  {{{pages}}}. | missing &#039;&#039;pages&#039;&#039;. }} {{#if: {{{doi|}}} | DOI: [http://dx.doi.org/{{{doi}}} {{{doi}}}]. }} {{#if: {{{pmid|}}} | [[PMID]]: [http://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}]. }} {{#if: {{{url1|}}} | [{{{url1}}}]. }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite journal&#039;&#039;&#039;&#039;&#039; template is used to reference a journal article. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite journal&lt;br /&gt;
  | author1 =&lt;br /&gt;
  | author2 = &lt;br /&gt;
  | author3 = &lt;br /&gt;
  | title   = &lt;br /&gt;
  | journal = &lt;br /&gt;
  | year    = &lt;br /&gt;
  | month   = &lt;br /&gt;
  | volume  = &lt;br /&gt;
  | issue   = &lt;br /&gt;
  | pages   = &lt;br /&gt;
  | doi     = &lt;br /&gt;
  | pmid    = &lt;br /&gt;
  | url1    =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Cite book]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822040</id>
		<title>Template:Cite journal</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822040"/>
		<updated>2026-02-24T12:54:13Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Fix template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}} | missing &#039;&#039;author1&#039;&#039; }}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} ({{#if: {{{year|}}} | {{{year}}} | missing &#039;&#039;year&#039;&#039; }}). {{#if: {{{title|}}} | &amp;quot;{{{title}}}&amp;quot;. | missing &#039;&#039;title&#039;&#039;. }} {{#if: {{{journal|}}} | &#039;&#039;{{{journal}}} (journal)&#039;&#039; | missing &#039;&#039;journal&#039;&#039; }} {{#if: {{{volume|}}} | &#039;&#039;&#039;{{{volume}}}&#039;&#039;&#039; | missing &#039;&#039;volume&#039;&#039; }}{{#if: {{{issue|}}} | ({{{issue}}}) }}: {{#if: {{{pages|}}} |  {{{pages}}}. | missing &#039;&#039;pages&#039;&#039;. }} {{#if: {{{doi|}}} | doi: [http://dx.doi.org/{{{doi}}} {{{doi}}}]. }} {{#if: {{{pmid|}}} | [[PMID]]: [http://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}]. }} {{#if: {{{url1|}}} | [{{{url1}}}]. }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite journal&#039;&#039;&#039;&#039;&#039; template is used to reference a journal article. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite journal&lt;br /&gt;
  | author1 =&lt;br /&gt;
  | author2 = &lt;br /&gt;
  | author3 = &lt;br /&gt;
  | title   = &lt;br /&gt;
  | journal = &lt;br /&gt;
  | year    = &lt;br /&gt;
  | month   = &lt;br /&gt;
  | volume  = &lt;br /&gt;
  | issue   = &lt;br /&gt;
  | pages   = &lt;br /&gt;
  | doi     = &lt;br /&gt;
  | pmid    = &lt;br /&gt;
  | url1    =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Cite book]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822039</id>
		<title>Programming a 2D Ising Model/Calculating the energy and magnetisation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822039"/>
		<updated>2026-02-17T19:35:38Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Add comment about expecting some tests to fail.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Various scripts have been prepared to assist you with this experiment, and you can obtain them by downloading the files from the Blackboard.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We recommend you open the extracted folder with JupyterLab, which has an integrated terminal where you can run the  simulation scripts.&lt;br /&gt;
&lt;br /&gt;
==Modifying the files==&lt;br /&gt;
&lt;br /&gt;
The file &#039;&#039;&#039;IsingLattice.py&#039;&#039;&#039; contains a Python class called IsingLattice. This class will be the basis for our model of the system, and is restricted to modelling the two dimensional case. It contains a number of stub methods that you will complete as you work through the experiment.&lt;br /&gt;
&lt;br /&gt;
===A note about Python Classes===&lt;br /&gt;
&lt;br /&gt;
The file IsingLattice.py makes use of a Python feature called &#039;&#039;class&#039;&#039;. You should be familiar with the idea that all Python &#039;&#039;objects&#039;&#039; have an associated &#039;&#039;type&#039;&#039; -- you have already encountered objects such as integers, string, lists, and NumPy arrays. Classes allow us to define new types of object. In this case, we define a type called &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
class IsingLattice:&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each class is allowed to have certain attributes and functions (known as methods) associated with it. We can see, for example, that each &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; object has the methods &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; (the method &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt; will be explained shortly). Each of these methods takes a special first argument called self, which is a variable pointing to the current copy of IsingLattice. To use the new IsingLattice object that we have defined, we use code like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import IsingLattice&lt;br /&gt;
&lt;br /&gt;
il = IsingLattice(5, 5) #create an IsingLattice object with 5 row and 5 columns&lt;br /&gt;
&lt;br /&gt;
energy = il.energy() #call the energy() method of our IsingLattice object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When writing code &amp;quot;within&amp;quot; the class definition, all attributes and methods belonging to the class must be accessed using the &amp;quot;self.&amp;quot; notation. You can see an example of this in the &amp;lt;code&amp;gt;montecarlostep()&amp;lt;/code&amp;gt; method:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
energy = self.energy()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line creates a variable called energy which contains whatever value was returned by the method &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; which is part of the &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; class. If you just want to define a local variable instead, like an iterator in a loop, the &amp;lt;code&amp;gt;self.&amp;lt;/code&amp;gt; notation is not required.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def magnetisation(self):&lt;br /&gt;
    # we have to use self.lattice, because the lattice variable is part of the object, not local to this function&lt;br /&gt;
    for i in self.lattice:&lt;br /&gt;
        ...&lt;br /&gt;
        # we use i, not self.i&lt;br /&gt;
        # we don&#039;t need to access i outside this function &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look at the other files that you have been given to see how this IsingLattice object is used.&lt;br /&gt;
&lt;br /&gt;
===The Constructor===&lt;br /&gt;
&lt;br /&gt;
The only method currently filled in is &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt;. This is a special method called a &#039;&#039;constructor&#039;&#039;. Whenever a new IsingLattice object is created, using code like &amp;lt;code&amp;gt;il = IsingLattice(5,5)&amp;lt;/code&amp;gt;, this method is called automatically. It takes two arguments (excluding &amp;quot;self&amp;quot;), which are simply the number of rows and columns that our lattice will have. The attribute &amp;lt;code&amp;gt;self.lattice&amp;lt;/code&amp;gt; is then created, which is a NumPy array with the requested number of rows and columns. The function &amp;lt;code&amp;gt;np.random.choice&amp;lt;/code&amp;gt; is used to create a random collection of spins for our initial configuration. You can see the documentation for the function [https://numpy.org/doc/stable/reference/random/generated/numpy.random.choice.html numpy.random.choice].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2a&amp;lt;/big&amp;gt;: complete the functions &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, which should return the energy of the lattice and the total magnetisation, respectively. In the &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; function you may assume that &#039;&#039;J&#039;&#039;=1.0 at all times (in fact, we are working in &#039;&#039;reduced units&#039;&#039; in which all energies are a multiple of &#039;&#039;J&#039;&#039;, but there will be more information about this in later sections). Do not worry about the efficiency of the code at the moment &amp;amp;mdash; we will address the speed in a later part of the experiment. Paste your code in your report and describe how it works.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Testing the files==&lt;br /&gt;
&lt;br /&gt;
When you have completed the energy() and magnetisation() methods, we need to test that they work correctly.&lt;br /&gt;
We have provided you with a script, &#039;&#039;&#039;ILcheck.py&#039;&#039;&#039;, which will create three IsingLattice objects and check their energies and magnetisations, displaying these on a graph. One configuration corresponds to the energy minimum, one to the energy maximum, and one to an intermediate state.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2b&amp;lt;/big&amp;gt;: Run the ILcheck.py script from the a terminal using the command&#039;&#039;&#039;&amp;lt;pre&amp;gt;python ILcheck.py&amp;lt;/pre&amp;gt;&#039;&#039;&#039;The displayed window has a series of control buttons in the bottom left, one of which will allow you to export the figure as a SVG or PNG image. Save an image of the ILcheck.py output, and include it in your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are also some unit tests available in the &amp;lt;code&amp;gt;test_energy.py&amp;lt;/code&amp;gt; file. These tests are designed to be run by simply running the [https://docs.pytest.org pytest] command in your terminal,&lt;br /&gt;
&amp;lt;pre&amp;gt;pytest&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should make sure your code passes the tests for the &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt; methods at this time. The file contains tests for methods that will only be implemented later on, so some failures are expected for now.&lt;br /&gt;
These sorts of test are useful because they are easier to write and faster to run and can be made to run automatically.&lt;br /&gt;
&lt;br /&gt;
You can also debug and test your program on a Jupyter notebook or IPython console by importing your IsingLattice class, creating one object, and inspecting its properties. If you do this, we recommend that you start your session running the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%load_ext autoreload&lt;br /&gt;
%autoreload 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will ensure that when you try executing your code, you always run the most recent version (please note this isn&#039;t fool proof and if you find problems you may need to restart the kernel)!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=822038</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=822038"/>
		<updated>2026-02-17T19:12:04Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Some cleanup shifting material not used in current curriculum&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:QR_complab.png|right|QR]]&lt;br /&gt;
This is a communal area for documenting teaching and laboratory courses. To [[admin:add|add to any content on these pages]], you will have to log in using your Imperial College account. This page has {{DOI|dh4g}}&lt;br /&gt;
== Remote Working ==&lt;br /&gt;
#[[Mod:Rem|Remote access to College computers]]&lt;br /&gt;
#[[Mod:HPC-add|Remote use of Gaussian]]&lt;br /&gt;
#[[Mod:support|Remote support]]&lt;br /&gt;
&lt;br /&gt;
== ORCID Identifiers and Research Data Publication ==&lt;br /&gt;
#[[orcid|Getting an ORCID identifier]] (two stages)&lt;br /&gt;
#[[rdm:synthesis-lab|Publishing NMR instrument data]] (three stages)&lt;br /&gt;
#[[rdm:xray-data|Publishing crystal structure instrument data]]&lt;br /&gt;
&lt;br /&gt;
= Laboratories and Workshops =&lt;br /&gt;
== First Year ==&lt;br /&gt;
*[[it:it_facillities|Email and IT@www.ch.imperial.ac.uk]]: A summary of available  IT resources&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]]&lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[[organic:stereo|Stereochemical models]]&lt;br /&gt;
&lt;br /&gt;
== Second Year ==&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
*Electronic States and Bonding - computational laboratory (see blackboard).&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&amp;lt;!--===Synthetic Modelling Lab {{DOI|10042/a3uws}}===&lt;br /&gt;
*[[mod:latebreak|Late breaking news]].&lt;br /&gt;
*[[mod:org-startup|Startup]]&lt;br /&gt;
**[[Mod:timetable-1C|Timetable]]&lt;br /&gt;
**[[mod:laptop|Using your laptop]]&lt;br /&gt;
*[[mod:organic|1C: Structure modelling, NMR and Chiroptical simulations]]&lt;br /&gt;
*[[mod:toolbox|The computational toolbox for spectroscopic simulation]]&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:avogadro|The Avogadro program]]&lt;br /&gt;
**[[Mod:chem3d|The ChemBio3D program]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[IT:ORCID|ORCID identifier]]&lt;br /&gt;
**[[Mod:toolbox#Submitting_this_file_to_the_HPC_for_geometry_optimization|Submitting jobs to the HPC (high-performance-computing) and research data management]]&lt;br /&gt;
**[[Mod:errors|Error conditions and other  FAQs]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
* [[Mod:ts_exercise|Transition states and reactivity.]]&lt;br /&gt;
* [[ThirdYearMgOExpt-1415|MgO thermal expansion]]&lt;br /&gt;
* [[Third_year_simulation_experiment|Simulation of a simple liquid]]&lt;br /&gt;
* [[Programming_a_2D_Ising_Model|Programming a 2D Ising Model (CMP only)]]&lt;br /&gt;
&lt;br /&gt;
= Material from previous years =&lt;br /&gt;
== First year ==&lt;br /&gt;
*[[Measurement_Science_Lab:_Introduction|Measurement Science Lab (2014)]]&lt;br /&gt;
*[[1da-workshops-2013-14|Introduction to Chemical Programming Workshop (2013)]]&lt;br /&gt;
&lt;br /&gt;
===Chemical Information Lab (2015)===&lt;br /&gt;
*[[it:intro-2011|Introduction]]&lt;br /&gt;
*[[it:lectures-2011|Lectures]]&lt;br /&gt;
*[[it:coursework-2011|Coursework]]&lt;br /&gt;
*[[it:assignment-2011|Assignment for the course]]&lt;br /&gt;
*[[it:software-2011|List of software for CIT]]&lt;br /&gt;
*[[it:searches-2011|Search facilities for CIT]]&lt;br /&gt;
&lt;br /&gt;
== Second year ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.huntresearchgroup.org.uk/teaching/year2a_lab_start.html Inorganic Computational Chemistry Computational Laboratory]&lt;br /&gt;
*[[CP3MD| Molecular Reaction Dynamics]]&lt;br /&gt;
&lt;br /&gt;
=== Modelling Workshop ===&lt;br /&gt;
*[[Coursework]] &lt;br /&gt;
*[[Second Year Modelling Workshop|Instructions]] and [[mod:further_coursework|Further optional coursework]]&lt;br /&gt;
*[[it:conquest|Conquest searches]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--=== Second Year Symmetry Workshops ===&lt;br /&gt;
*[[Symmetry Lab|Lab Exercises]]&lt;br /&gt;
*[[Symmetry Workshop 1|Symmetry Workshop 1]]&lt;br /&gt;
*[[Symmetry Lab Downloads|Downloads and Links]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&lt;br /&gt;
*[[TrendsCatalyticActivity|Understanding trends in catalytic activity for hydrogen evolution]]&lt;br /&gt;
*[[mod:inorganic|Bonding and molecular orbitals in main group compounds]]&lt;br /&gt;
&lt;br /&gt;
===Synthesis and computational lab ===&lt;br /&gt;
*[[Mod:organic|Synthesis and computational lab]]&lt;br /&gt;
&amp;lt;!-- === First year Background ===&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]] &lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[http://www.chem.utas.edu.au/torganal/ Torganal: a program for  Spectroscopic analysis] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[mod:intro|Information needed for the course]]&lt;br /&gt;
&amp;lt;!--*[[mod:lectures|Introductory lecture notes]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--*[[mod:laptop|Using your laptop]]--&amp;gt;&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
&amp;lt;!--*[[mod:Q&amp;amp;A|Questions and Answers]]--&amp;gt;&lt;br /&gt;
*[[mod:latebreak|Late breaking news]]&lt;br /&gt;
&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[Mod:scan|Submitting jobs to the chemistry high-performance-computing resource]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ChemDraw/Chemdoodle Hints ==&lt;br /&gt;
#[[IT:chemdraw|Useful hints for using  ChemDraw/ChemDoodle]]&lt;br /&gt;
&lt;br /&gt;
== Tablet  Project ==&lt;br /&gt;
# [[tablet:tablet|Tablet Pilot  Project]]&lt;br /&gt;
== 3D ==&lt;br /&gt;
# [[mod:3D|3D-printable models]]&lt;br /&gt;
# [[mod:stereo|Lecture Theatre  Stereo]]&lt;br /&gt;
== Online materials for mobile devices ==&lt;br /&gt;
# [[ebooks:howto|How to get eBooks]]&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191620 Pericylic reactions in iTunesU ]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8  App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191825 Conformational analysis in iTunesU]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191342 A library of mechanistic animations in  iTunesU] (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [[IT:panopto|How to compress and disseminate Panopto lecture recordings]]&lt;br /&gt;
&lt;br /&gt;
= PG =&lt;br /&gt;
&amp;lt;!-- # [[pg:data|Data management]] --&amp;gt;&lt;br /&gt;
# [[rdm:intro|Data management]]&lt;br /&gt;
= DOI =&lt;br /&gt;
*[[template:doi]]  This page  has {{DOI|dh4g}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Accessibility on this site =&lt;br /&gt;
&lt;br /&gt;
* The Department of Chemistry wants as many people as possible to be able to use this website. The site hopes to maintain WCAG 2.1 AA standards, but it is not always possible for all our content to be accessible.&lt;br /&gt;
&lt;br /&gt;
=== Technical information about this website’s accessibility ===&lt;br /&gt;
&lt;br /&gt;
* Imperial College London is committed to making its website accessible in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.&lt;br /&gt;
&lt;br /&gt;
* This website is compliant with the Web Content Accessibility Guidelines version 2.1 AA standard.&lt;br /&gt;
&lt;br /&gt;
=== Reporting accessibility issues ===&lt;br /&gt;
&lt;br /&gt;
* If you need information on this website in a different format or if you have any issues accessing the content then please contact [gmallia at imperial.ac.uk]. I will reply as soon as possible.&lt;br /&gt;
 &lt;br /&gt;
=== Enforcement procedure ===&lt;br /&gt;
 &lt;br /&gt;
* The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). &lt;br /&gt;
If you’re not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).&lt;br /&gt;
&lt;br /&gt;
=== Last updated ===&lt;br /&gt;
&lt;br /&gt;
This statement was prepared in September 2020 (rechecked in May 2021).&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model&amp;diff=822037</id>
		<title>Programming a 2D Ising Model/Introduction to the Ising model</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model&amp;diff=822037"/>
		<updated>2026-02-17T18:43:21Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace &amp;lt;math&amp;gt; for inline expressions that can be written inline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the first section of the Ising model experiment. You can return to the [[Programming_a_2D_Ising_Model|introduction page]], or jump ahead to the next section, [[Third year CMP compulsory experiment/Calculating the energy and magnetisation|Calculating the energy and magnetisation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==The model==&lt;br /&gt;
The Ising model is a simple physical model proposed in the 1920s to understand the behaviour of ferromagnets. In most materials, the magnetic dipoles of the atoms have no preferred orientation, and the bulk material has no net magnetic moment. In certain materials, however, there is preferential alignment of the magnetic dipoles along certain directions. These materials, such as iron, exhibit an overall magnetic moment, and are called ferromagnetic.&lt;br /&gt;
&lt;br /&gt;
The phenomenon is based on competition between two physical effects &amp;amp;mdash; energy minimisation and entropy maximisation. On the one hand, parallel alignment of magnetic moments is energetically favourable. On the other hand, aligning the system in this way reduces the entropy.&lt;br /&gt;
&lt;br /&gt;
In the Ising model, we consider a collection of spins, &#039;&#039;s&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&#039;&#039;, each of which can either have the value &amp;quot;up&amp;quot; (+1) or &amp;quot;down&amp;quot; (-1), arranged on a lattice. In one dimension, this takes the form of a &amp;quot;chain&amp;quot; of adjacent spins, &#039;&#039;s&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; to &#039;&#039;s&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&#039;&#039;. In two dimensions we have a grid of cells, each of which contains one spin. In three dimensions, the system is a cuboid, and so on. The arrangements for 1, 2 and 3 dimensions are illustrated in &#039;&#039;&#039;figure 1&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearCMPExpt-IsingSketch.png|300px|thumb|right|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Illustration of an Ising lattice in one (N=5), two (N=5&amp;amp;times;5), and three (N=5&amp;amp;times;5&amp;amp;times;5) dimensions. Red cells indicate the &amp;quot;up&amp;quot; spin&amp;quot;, and blue cells indicate the &amp;quot;down&amp;quot; spin.]]&lt;br /&gt;
&lt;br /&gt;
The rules of the model are simple:&lt;br /&gt;
&lt;br /&gt;
* When no magnetic field is applied, the only energetic contribution comes from the interaction between spins in &#039;&#039;adjacent&#039;&#039; lattice cells&lt;br /&gt;
* The total interaction energy is defined as &amp;lt;math&amp;gt;- \frac{1}{2} J \sum_i^N \sum_{j\  \in\  \mathrm{neighbours}\left(i\right)} s_i s_j&amp;lt;/math&amp;gt;, where &#039;&#039;J&#039;&#039; is a constant which controls the strength of interaction and the notation &#039;&#039;j&#039;&#039;&amp;amp;nbsp;&amp;amp;in;&amp;amp;nbsp;neighbours(&#039;&#039;i&#039;&#039;) indicates that spin &#039;&#039;j&#039;&#039; must lie in a lattice cell adjacent to spin &#039;&#039;i&#039;&#039;. The factor of one half is included to make sure that we do not count each spin-spin interaction twice.&lt;br /&gt;
* Periodic boundary conditions are applied. In other words, the &amp;quot;final&amp;quot; spin in a particular direction is considered to be adjacent to the &amp;quot;first&amp;quot; spin in that direction. In &#039;&#039;&#039;figure 2&#039;&#039;&#039;, for example, cell 1 has neighbour interactions with cells 2, 3, 4, and 7, while cell 9 interacts with cells 3, 6, 7, and 8.&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearCMPExpt-IsingNumberedCell.png|300px|thumb|right|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: Illustration of a 2D Ising lattice, with numbered cells to indicate the neighbour interactions.]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 1a&amp;lt;/big&amp;gt;: Show that the lowest possible energy for the Ising model (with &#039;&#039;J&#039;&#039;&amp;amp;gt;0) is &#039;&#039;E&#039;&#039;&amp;amp;nbsp;=&amp;amp;nbsp;-&#039;&#039;DNJ&#039;&#039;, where &#039;&#039;D&#039;&#039; is the number of dimensions and &#039;&#039;N&#039;&#039; is the total number of spins. What is the multiplicity of this state? Calculate its entropy.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Phase Transitions==&lt;br /&gt;
&lt;br /&gt;
The Ising model is interesting because it is one of the simplest physical models to display a phase transition (so long as we are in two dimensions or more). The temperature of the system controls the balance between the energetic driving force, which wants the system to adopt the lowest energy configuration that you imagined in the previous section, and the entropic driving force, which seeks to maximise the number of configurations available to the system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 1b&amp;lt;/big&amp;gt;: Imagine that the system is in the lowest energy configuration. To move to a different state, one of the spins must spontaneously change direction (&amp;quot;flip&amp;quot;). What is the change in energy if this happens (&#039;&#039;D&#039;&#039;=3, &#039;&#039;N&#039;&#039;=1000)? How much entropy does the system gain by doing so?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
At low temperatures, little thermal energy is available to overcome such energy barriers, and we expect the system to adopt the lowest energy (the energetic driving force will dominate). Under these conditions, we expect a large number of parallel spins, and we can characterise this by considering the total &#039;&#039;magnetisation&#039;&#039; of the system: &amp;lt;math&amp;gt;M = \sum_i s_i&amp;lt;/math&amp;gt;. At higher temperatures, however, enough thermal energy will be available that spins can flip relatively freely. Under these conditions, the entropic driving force should dominate. The transition temperature between the two regimes is called the &#039;&#039;Curie temperature&#039;&#039;, &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039;. Below &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039;, we observe the highly ordered magnetised phase, while above &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039; a disordered, demagnetised, phase emerges.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 1c&amp;lt;/big&amp;gt;: Calculate the magnetisation of the 1D and 2D lattices in figure 1. What magnetisation would you expect to observe for an Ising lattice with &#039;&#039;D&#039;&#039;=3, &#039;&#039;N&#039;&#039;=1000 at absolute zero?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We are interested, therefore, in determining the magnetisation &#039;&#039;M&#039;&#039;, and energy &#039;&#039;E&#039;&#039;, of the system as functions of temperature &#039;&#039;T&#039;&#039;. We can write statistical mechanical equations for these quantities:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left\langle M\right\rangle_T = \frac{1}{Z}\sum_\alpha M\left(\alpha\right) \exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left\langle E\right\rangle_T = \frac{1}{Z}\sum_\alpha E\left(\alpha\right) \exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;&amp;amp;alpha;&#039;&#039; is used as a shorthand to represent all spins in the system, and &#039;&#039;Z&#039;&#039; is the partition function,&lt;br /&gt;
&amp;lt;math&amp;gt;Z = \sum_\alpha \exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\} &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It was discovered relatively quickly after the model was first proposed that the partition function in the one dimensional case can be solved analytically (though doing so is beyond the scope of this experiment):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Z\left(T, N\right) = \left[2\cosh\left(\frac{J}{k_BT}\right)\right]^N&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Much later, [http://en.wikipedia.org/wiki/Lars_Onsager Lars Onsager] established that the two dimensional partition function can also be found analytically, though the mathematics is significantly more involved and the resulting expression is correspondingly much more complicated. In dimensions greater than two, no analytical solution is known.&lt;br /&gt;
&lt;br /&gt;
Luckily for us, the problem can instead be tackled by numerical methods, and it is this that will be the focus of the experiment. We will discuss how the equations for &#039;&#039;M&#039;&#039; and &#039;&#039;E&#039;&#039; can be solved, but first we must set up a Python script to model the lattice.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the first section of the Ising model experiment. You can return to the [[Programming_a_2D_Ising_Model|introduction page]], or jump ahead to the next section, [[Third year CMP compulsory experiment/Calculating the energy and magnetisation|Calculating the energy and magnetisation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Locating_the_Curie_temperature&amp;diff=822036</id>
		<title>Programming a 2D Ising Model/Locating the Curie temperature</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Locating_the_Curie_temperature&amp;diff=822036"/>
		<updated>2026-02-17T16:59:00Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace &amp;lt;math&amp;gt; for inline expressions that can be written inline, and highlight variable names in code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the eighth (and final) section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Programming a 2D Ising Model|Introduction]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should have seen in the previous section that the heat capacity becomes strongly peaked in the vicinity of the critical temperature and that the peak became increasingly sharply peaked as the system size was increased &amp;amp;mdash; in fact, Onsager proved that in an infinite system the heat capacity should diverge at &#039;&#039;T&#039;&#039; = &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039;. In our finite systems, however, not only does the heat capacity not diverge, the Curie temperature changes with system size! This is known as a &#039;&#039;finite size effect&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
It can be shown, however, that the temperature at which the heat capacity has its maximum must scale according to &amp;lt;math&amp;gt;T_{C, L} = \frac{A}{L} + T_{C,\infty}&amp;lt;/math&amp;gt;, where &#039;&#039;T&amp;lt;sub&amp;gt;C,L&amp;lt;/sub&amp;gt;&#039;&#039; is the Curie temperature of an &#039;&#039;L&#039;&#039;&amp;amp;times;&#039;&#039;L&#039;&#039; lattice, &#039;&#039;T&amp;lt;sub&amp;gt;C,&amp;amp;infin;&amp;lt;/sub&amp;gt;&#039;&#039; is the Curie temperature of an infinite lattice, and &#039;&#039;A&#039;&#039;&amp;gt; is a constant in which we are not especially interested. This scaling equation comes from expanding in the limit of large &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8a&amp;lt;/big&amp;gt;: Reference data has been generated for longer simulations than would be possible on the college computers in Python. Each file contains six columns: &#039;&#039;T&#039;&#039;, &#039;&#039;E&#039;&#039;, &#039;&#039;E&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, &#039;&#039;M&#039;&#039;, &#039;&#039;M&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, &#039;&#039;C&#039;&#039; (NOTE: these final five quantities are normalised per spin, unlike your Python data), and you can read them with the NumPy &amp;lt;code&amp;gt;loadtxt&amp;lt;/code&amp;gt; function as before. For each lattice size, plot the reference data against your data. For &#039;&#039;one&#039;&#039; lattice size, save a SVG or PNG image of this comparison and add it to your report &amp;amp;mdash; add a legend to the graph to label which is which (check if you need a [https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.legend.html reminder about use of legend]).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Polynomial fitting==&lt;br /&gt;
&lt;br /&gt;
To find the temperature at which the heat capacity and susceptibilities have their maxima, we are going to fit a polynomial to the data in the critical region. NumPy provides the useful [http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html &amp;lt;code&amp;gt;polyfit&amp;lt;/code&amp;gt;] and [http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyval.html#numpy.polyval &amp;lt;code&amp;gt;polyval&amp;lt;/code&amp;gt;] functions for this purpose. The following code is written for the heat capacities - try to also repeat this for the susceptibility! The usage is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data = np.loadtxt(&amp;quot;...&amp;quot;) #assume data is now a 2D array containing two columns, T and C&lt;br /&gt;
T = data[:,0] #get the first column&lt;br /&gt;
C = data[:,1] # get the second column&lt;br /&gt;
&lt;br /&gt;
#first we fit the polynomial to the data&lt;br /&gt;
fit = np.polyfit(T, C, 3) # fit a third order polynomial&lt;br /&gt;
&lt;br /&gt;
#now we generate interpolated values of the fitted polynomial over the range of our function&lt;br /&gt;
T_min = np.min(T)&lt;br /&gt;
T_max = np.max(T)&lt;br /&gt;
T_range = np.linspace(T_min, T_max, 1000) #generate 1000 evenly spaced points between T_min and T_max&lt;br /&gt;
fitted_C_values = np.polyval(fit, T_range) # use the fit object to generate the corresponding values of C&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8b&amp;lt;/big&amp;gt;: Write a script to read the data from a particular file, and plot &#039;&#039;C&#039;&#039; and &#039;&#039;&amp;amp;chi;&#039;&#039; vs &#039;&#039;T&#039;&#039;, as well as a fitted polynomial. Try changing the degree of the polynomial to improve the fit &amp;amp;mdash; in general, it might be difficult to get a good fit! Attach a SVG or PNG image of an example fit to your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Fitting in a particular temperature range===&lt;br /&gt;
&lt;br /&gt;
Rather than fit to all of the data, we might want to fit in only a particular range. NumPy provides a very powerful way to index arrays based on certain conditions. For example, if we want to extract only those data points which are between a particular &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;min&amp;lt;/sub&amp;gt; and &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt;, we can use the following syntax:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data = np.loadtxt(&amp;quot;...&amp;quot;) #assume data is now a 2D array containing two columns, T and C&lt;br /&gt;
T = data[:,0] #get the first column&lt;br /&gt;
C = data[:,1] # get the second column&lt;br /&gt;
&lt;br /&gt;
Tmin = 0.5 #for example&lt;br /&gt;
Tmax = 2.0 #for example&lt;br /&gt;
&lt;br /&gt;
selection = np.logical_and(T &amp;gt; Tmin, T &amp;lt; Tmax) #choose only those rows where both conditions are true&lt;br /&gt;
peak_T_values = T[selection]&lt;br /&gt;
peak_C_values = C[selection]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8c&amp;lt;/big&amp;gt;: Modify your script from the previous section. You should still plot the whole temperature range, but fit the polynomial only to the peak! You should find it easier to get a good fit when restricted to this region.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Finding the peak in C===&lt;br /&gt;
&lt;br /&gt;
Your fitting script should now generate two variables: &amp;lt;code&amp;gt;peak_T_range&amp;lt;/code&amp;gt;, containing 1000 equally spaced temperature values between &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;min&amp;lt;/sub&amp;gt; and &#039;&#039;T&#039;&#039;&amp;lt;sub&amp;gt;max&amp;lt;/sub&amp;gt; (whatever you chose those values to be), and fitted_&#039;&#039;C&#039;&#039;_values, containing the fitted heat capacity at each of those points. Use the NumPy &amp;lt;code&amp;gt;max&amp;lt;/code&amp;gt; function to find the maximum in &#039;&#039;C&#039;&#039;. If you store the maximum value of &#039;&#039;C&#039;&#039; in the variable &amp;lt;code&amp;gt;Cmax&amp;lt;/code&amp;gt;, you can use the following notation to find the corresponding temperature:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cmax = np.max(...)&lt;br /&gt;
Tmax = peak_T_range[fitted_C_values == Cmax]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8d&amp;lt;/big&amp;gt;: Find the temperature at which the maximum in &#039;&#039;C&#039;&#039; occurs for each datafile that you were given or generated with Python. Make a text file containing two columns: the lattice side length (2,4,8, etc.), and the temperature at which &#039;&#039;C&#039;&#039; is a maximum. This is your estimate of &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039; for that side length. Make a plot that uses the scaling relation given above to determine &#039;&#039;T&amp;lt;sub&amp;gt;C,&amp;amp;infin;&amp;lt;/sub&amp;gt;&#039;&#039;. By doing a little research, you should be able to find the theoretical exact Curie temperature for the infinite 2D Ising lattice. How does your value compare to this? Are you surprised by how good/bad the agreement is? Attach a SVG or PNG image of this final graph to your report, and discuss briefly what you think the major sources of error are in your estimate.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the eighth (and final) section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Programming a 2D Ising Model|Introduction]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Determining_the_heat_capacity&amp;diff=822035</id>
		<title>Programming a 2D Ising Model/Determining the heat capacity</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Determining_the_heat_capacity&amp;diff=822035"/>
		<updated>2026-02-17T16:43:23Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace &amp;lt;math&amp;gt; for inline expressions that can be written inline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the seventh section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/The effect of system size|The effect of system size]], or jump ahead to the next section, [[Programming a 2D Ising Model/Locating the Curie temperature|Locating the Curie temperature]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Calculating the heat capacity==&lt;br /&gt;
&lt;br /&gt;
As we have seen, increasing the temperature above &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039; induces a phase transition &amp;amp;mdash; the magnetisation of the system rapidly drops, but it can be hard to use this information to pinpoint the Curie temperature itself. As well as demonstrating the closed form solution to the partition function that we mentioned in the introduction, Lars Onsager also demonstrated that the heat capacity of the 2D Ising model should become very strongly peaked at the phase transition temperature (in fact, when &#039;&#039;T&#039;&#039; = &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039; exactly, &#039;&#039;C&#039;&#039; diverges).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 7a&amp;lt;/big&amp;gt;: By definition, &amp;lt;math&amp;gt;C = \frac{\partial \left\langle E\right\rangle}{\partial T}&amp;lt;/math&amp;gt;. From this, show that &amp;lt;math&amp;gt;C = \frac{\mathrm{Var}[E]}{k_B T^2}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\mathrm{Var}[E]&amp;lt;/math&amp;gt; is the variance in &amp;lt;math&amp;gt;E&amp;lt;/math&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using this relation, and the data that you generated in the previous sections, you can now determine the heat capacity of your lattice as a function of temperature and system size. in a similar way, we can also define another quantity called the magnetic susceptibility, &#039;&#039;&amp;amp;chi;&#039;&#039;, which depends on the average properties of the order parameter of the system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\chi = \beta(\left\langle M^2\right\rangle - \left\langle M\right\rangle^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which will behave in a similar way to the heat capacity. Here &amp;lt;math&amp;gt;\beta = \frac{1}{k_BT}&amp;lt;/math&amp;gt; is the inverse of the thermodynamic temperature, often used in statistical thermodynamics. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 7b&amp;lt;/big&amp;gt;: Write a Python script to make a plot showing the heat capacity and susceptibility versus temperature for each of your lattice sizes from the previous section. You may need to do some research to recall the connection between the variance of a variable, Var[&#039;&#039;X&#039;&#039;], the mean of its square  &amp;amp;lang;&#039;&#039;X&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;rang;, and its squared mean &amp;amp;lang;&#039;&#039;X&#039;&#039;&amp;amp;rang;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. You may find that the data around the peak is very noisy &amp;amp;mdash; this is normal, and is a result of being in the critical region. As before, use the plot controls to save a SVG or PNG image of your plot and attach this to the report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the seventh section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/The effect of system size|The effect of system size]], or jump ahead to the next section, [[Programming a 2D Ising Model/Locating the Curie temperature|Locating the Curie temperature]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/The_effect_of_temperature&amp;diff=822034</id>
		<title>Programming a 2D Ising Model/The effect of temperature</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/The_effect_of_temperature&amp;diff=822034"/>
		<updated>2026-02-17T16:36:30Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace &amp;lt;math&amp;gt; for inline expressions that can be written inline, and highlight variable names in code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the fifth section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Accelerating the code|Accelerating the code]], or jump ahead to the next section, [[Programming a 2D Ising Model/The effect of system size|The effect of system size]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We now have enough code to start to investigate the phase behaviour of our model. In the first instance, we are going to make plots of the average energy and magnetisation of the system as a function of temperature, to get an idea of where the change between energetic and entropic domination takes place, but we first have to make a small change to the code that averages the energy and magnetisation.&lt;br /&gt;
&lt;br /&gt;
==Correcting the Averaging Code==&lt;br /&gt;
As you saw in the previous part of the experiment, when we begin from a random configuration, it takes a few Monte Carlo cycles to reach the equilibrium state of the system at a particular temperature. This manifests itself as a relatively sharp drop in the energy of the system in the first few hundred or thousand steps, before the energy starts to fluctuate around a constant value. If we want our average properties to be correct, we should only average in the region where the &#039;&#039;average&#039;&#039; energy and magnetisation are constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5a&amp;lt;/big&amp;gt;: The script ILfinalframe.py runs for a given number of cycles at a given temperature, then plots a depiction of the &#039;&#039;final&#039;&#039; lattice state as well as graphs of the energy and magnetisation as a function of cycle number. This is much quicker than animating every frame! Experiment with a few different temperatures and lattice sizes. Approximately how many cycles (remember, a cycle is &#039;&#039;N&#039;&#039;&amp;lt;sub&amp;gt;spins&amp;lt;/sub&amp;gt; steps) are needed for the system to go from its random starting position to the equilibrium state? Modify your &amp;lt;code&amp;gt;__init__()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;montecarlostep()&amp;lt;/code&amp;gt; methods so that the first &#039;&#039;N&#039;&#039; cycles of the simulation are ignored when calculating the averages. Be careful of off-by-one errors. You should state in your report what period you chose to ignore, and include graphs from ILfinalframe.py to illustrate your motivation in choosing this number.&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Running over a range of temperatures==&lt;br /&gt;
&lt;br /&gt;
The script ILtemperaturerange.py performs simulations of a given length over a range of temperatures. The temperature range is determined by the parameters given to the &amp;lt;code&amp;gt;np.arange&amp;lt;/code&amp;gt; function near the top of the file. Starting from a uniformly aligned lattice, a simulation of length &amp;lt;code&amp;gt;n_steps&amp;lt;/code&amp;gt; will be performed at temperature &amp;lt;code&amp;gt;T_cold&amp;lt;/code&amp;gt;, and the average energy and magnetisation will be recorded. A new simulation of length &amp;lt;code&amp;gt;n_steps&amp;lt;/code&amp;gt; will then be performed at temperature &amp;lt;code&amp;gt;T_cold + dT&amp;lt;/code&amp;gt;, and so on until all temperatures in the range have been simulated. This results in a NumPy array of five columns: the temperature, then the four statistical quantities: &amp;lt;code&amp;gt;ave_energies&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ave_sqenergies&amp;lt;/code&amp;gt; (squared energies), &amp;lt;code&amp;gt;ave_magnetisations&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ave_sqmagnetisations&amp;lt;/code&amp;gt; (squared magnetisations).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5b&amp;lt;/big&amp;gt;: Use ILtemperaturerange.py to plot the average energy and magnetisation for each temperature, &#039;&#039;with error bars&#039;&#039;, for an 8 &amp;amp;times; 8 lattice. Use multiple repeats to calculate these error bars. Use your intuition and results from the script ILfinalframe.py to estimate how many cycles each simulation should be. The temperature range 0.25 to 5.0 is sufficient. Use as many temperature points as you feel necessary to illustrate the behaviour, but do not use a temperature spacing larger than 0.5. The NumPy function &amp;lt;code&amp;gt;savetxt()&amp;lt;/code&amp;gt; stores your array of output data on disk &amp;amp;mdash; you will need it later. Save the file as &#039;&#039;8x8.dat&#039;&#039; so that you know which lattice size it came from.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the fifth section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Accelerating the code|Accelerating the code]], or jump ahead to the next section, [[Programming a 2D Ising Model/The effect of system size|The effect of system size]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Introduction_to_Monte_Carlo_simulation&amp;diff=822033</id>
		<title>Programming a 2D Ising Model/Introduction to Monte Carlo simulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Introduction_to_Monte_Carlo_simulation&amp;diff=822033"/>
		<updated>2026-02-17T16:27:21Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Replace &amp;lt;math&amp;gt; for inline expressions that can be written inline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the third section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]], or jump ahead to the next section, [[Programming a 2D Ising Model/Accelerating the code|Accelerating the code]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
==Average Energy and Magnetisation==&lt;br /&gt;
&lt;br /&gt;
Consider again the expressions for the average energy and magnetisation that we gave in the introduction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left\langle M\right\rangle_T = \frac{1}{Z}\sum_\alpha M\left(\alpha\right) \exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left\langle E\right\rangle_T = \frac{1}{Z}\sum_\alpha E\left(\alpha\right) \exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Imagine we want to evaluate these at a particular temperature, in a system of 100 spins.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 3a&amp;lt;/big&amp;gt;: How many configurations are available to a system with 100 spins? To evaluate these expressions, we have to calculate the energy and magnetisation for each of these configurations, then perform the sum. Let&#039;s be very, very, generous, and say that we can analyse 1&amp;amp;times;10&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; configurations per second with our computer. How long will it take to evaluate a single value of &amp;amp;lang;&#039;&#039;M&#039;&#039;&amp;amp;rang;&amp;lt;sub&amp;gt;&#039;&#039;T&#039;&#039;&amp;lt;/sub&amp;gt;?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Clearly, we need to try a cleverer approach.&lt;br /&gt;
&lt;br /&gt;
For the overwhelming majority of the possible configurations, the Boltzmann factor, &amp;lt;math&amp;gt;\exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\}&amp;lt;/math&amp;gt;, will be very small, and that state will contribute very little to the average value. We can save an enormous amount of time, and make this problem tractable, if we only consider the states whose Boltzmann factor is not so vanishingly small. This technique is called &#039;&#039;importance sampling&#039;&#039; &amp;amp;mdash; instead of sampling every point in phase space, we sample only those that the system is likely to occupy.&lt;br /&gt;
&lt;br /&gt;
==Importance Sampling==&lt;br /&gt;
&lt;br /&gt;
This is easily stated, of course, but how can we know which states contribute a lot to the average without actually calculating the energy? So far, we have been imagining generating random states of the system; that is to say, we have been choosing &#039;&#039;&amp;amp;alpha;&#039;&#039; from a uniform distribution in which no arrangement of spins is any more likely to be chosen than any other. If we instead had a method which generated states randomly from the probability distribution &amp;lt;math&amp;gt;\exp \left\{-\frac{E\left(\alpha\right)}{k_BT}\right\}&amp;lt;/math&amp;gt;, then our problem would be solved. The method which allows us to do this was developed in the 1950s, and is called the [https://doi.org/10.1063/1.1699114 Metropolis Monte Carlo (MMC)] method, or more often simply &amp;quot;Monte Carlo simulation&amp;quot;. This was one of the major breakthroughs of the early days of computational science, and in the year 2000, the IEEE named among the [https://doi.org/10.1109/MCISE.2000.814652 &amp;quot;Top 10 Algorithms of the 20th Century&amp;quot;].&lt;br /&gt;
&lt;br /&gt;
The algorithm is as follows:&lt;br /&gt;
&lt;br /&gt;
# Start from a given configuration of spins, &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;, with energy &#039;&#039;E&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;.&lt;br /&gt;
# Choose a single spin &#039;&#039;&#039;at random&#039;&#039;&#039;, and &amp;quot;flip&amp;quot; it, to generate a new configuration &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;.&lt;br /&gt;
# Calculate the energy of this new configuration, &#039;&#039;E&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;.&lt;br /&gt;
# Calculate the energy difference between the states, &#039;&#039;&amp;amp;Delta;E = E&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; - E&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;.&lt;br /&gt;
## If the &#039;&#039;&amp;amp;Delta;E &amp;amp;le; 0&#039;&#039; (the spin flipping decreased the energy), then we &#039;&#039;&#039;accept&#039;&#039;&#039; the new configuration.&lt;br /&gt;
##* We set &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = &amp;amp;alpha;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;, and &#039;&#039;E&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = E&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;, and then &#039;&#039;&#039;go to step 5&#039;&#039;&#039;.&lt;br /&gt;
## If &#039;&#039;&amp;amp;Delta;E &amp;amp;gt; 0&#039;&#039;, the spin flipping increased the energy. By considering the probability of observing the starting and final states, &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;, it can be shown that the probability for the transition between the two to occur is &amp;lt;math&amp;gt;\exp \left\{-\frac{\Delta E}{k_BT}\right\}&amp;lt;/math&amp;gt;. To ensure that we only accept this kind of spin flip with the correct probability, we use the following procedure:&lt;br /&gt;
### Choose a random number, &#039;&#039;R&#039;&#039;, in the interval [0,1).&lt;br /&gt;
### If &amp;lt;math&amp;gt;R \leq \exp \left\{-\frac{\Delta E}{k_BT}\right\}&amp;lt;/math&amp;gt;, we &#039;&#039;&#039;accept&#039;&#039;&#039; the new configuration.&lt;br /&gt;
###* We set &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = &amp;amp;alpha;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;, and &#039;&#039;E&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = E&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039;, and then &#039;&#039;&#039;go to step 5&#039;&#039;&#039;.&lt;br /&gt;
### If &amp;lt;math&amp;gt;R &amp;gt; \exp \left\{-\frac{\Delta E}{k_BT}\right\}&amp;lt;/math&amp;gt;, we &#039;&#039;&#039;reject&#039;&#039;&#039; the new configuration.&lt;br /&gt;
###* &#039;&#039;&amp;amp;alpha;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;E&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039; are left unchanged. &#039;&#039;&#039;Go to step 5&#039;&#039;&#039;.&lt;br /&gt;
# Update the running averages of the energy and magnetisation.&lt;br /&gt;
# Monte Carlo &amp;quot;step&amp;quot; complete, &#039;&#039;&#039;return to step 2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Step 4 is the key to the method. By accepting moves which increase the energy only with a certain probability, we ensure that the sequence of states that we generate is correctly distributed.  A transition which carries a very large energy penalty, &#039;&#039;&amp;amp;Delta;E&#039;&#039; is extremely unlikely to be selected. The use of random numbers in this step is the reason that the method acquired the name &amp;quot;Monte Carlo&amp;quot;, after the casinos located there!&lt;br /&gt;
&lt;br /&gt;
Note, unlike molecular dynamics, each step only moves a single atom. In Monte Carlo simulation, there is the notion of a cycle which is &#039;&#039;N&#039;&#039;&amp;lt;sub&amp;gt;spins&amp;lt;/sub&amp;gt;-steps, so that each spin on average has an attempted flip per cycle.&lt;br /&gt;
&lt;br /&gt;
If you are interested in the mathematical details of why this procedure generates a sequence of states distributed in the correct way, consult the Monte Carlo chapter of [https://library-search.imperial.ac.uk/permalink/f/o1297h/TN_cdi_askewsholts_vlebooks_9780080519982 &amp;quot;Understanding Molecular Simulation&amp;quot;], by Frenkel and Smit, but a discussion of this is not required for the experiment. Chapter 7 of [https://library-search.imperial.ac.uk/permalink/44IMP_INST/mek6kh/alma997227534401591 &amp;quot;Statistical Mechanics: Theory and Molecular Simulation&amp;quot;] by Tuckerman also gives a good description.&lt;br /&gt;
&lt;br /&gt;
==Modifying IsingLattice.py==&lt;br /&gt;
&lt;br /&gt;
Our IsingLattice object contains a stub function, &#039;&#039;&#039;&amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt;&#039;&#039;&#039;, which takes a single argument &amp;amp;mdash; the temperature at which we want to do the cycle. There are also attributes used to calculate the average energy and magnetisation and respective variances: &amp;lt;code&amp;gt;self.E_tally&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;self.E2_tally&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;self.M_tally&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;self.M2_tally&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;self.n_steps&amp;lt;/code&amp;gt;. You should use these values to keep a running sum of all the energies, squared energies, magnetisations, and squared magnetisations that your system has sampled, as well as the number of steps that have been performed. Finally, there is also a function &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt;, that takes no arguments and should return the average energy, squared energy, magnetisation, squared magnetisation and current step, &#039;&#039;&#039;in that order&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 3b&amp;lt;/big&amp;gt;: Implement a single step of the above algorithm in the &amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt; function. This function should return the energy of your lattice and the magnetisation at the end of the cycle. Complete the &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; function. This should return the following quantities whenever it is called: &amp;amp;lang;&#039;&#039;E&#039;&#039;&amp;amp;rang;, &amp;amp;lang;&#039;&#039;E&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;rang;, &amp;amp;lang;&#039;&#039;M&#039;&#039;&amp;amp;rang;, &amp;amp;lang;&#039;&#039;M&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;rang;, and &#039;&#039;N&#039;&#039;&amp;lt;sub&amp;gt;steps&amp;lt;/sub&amp;gt;, the number of Monte Carlo steps that have elapsed. Put your code for these functions in the report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note on units:&#039;&#039; In our simulation we will be using an unitless scaled energy &amp;lt;math&amp;gt;\tilde{E}=\frac{E}{J}&amp;lt;/math&amp;gt;, and a unitless scaled temperature &amp;lt;math&amp;gt;\tilde{T}=\frac{k_B T}{J}&amp;lt;/math&amp;gt;, where &#039;&#039;J&#039;&#039; is the interaction energy between spins discussed previously. The use of these scaled quantities in practice means that in the code we can set &#039;&#039;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&#039;&#039; to numerically equal to 1. Going forward we will drop the &amp;amp;tilde; from the notation of energy and temperature.&lt;br /&gt;
&lt;br /&gt;
You have been provided with a script, &#039;&#039;&#039;ILanim.py&#039;&#039;&#039;, which will use your &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; object to run a Monte Carlo simulation and display the output on the screen in real time. By default, this simulation will run an 8&amp;amp;times;8 lattice at &#039;&#039;T&#039;&#039;=1.0, which is below the critical temperature. You will see a representation of the lattice, and graphs of the energy and magnetisation &#039;&#039;&#039;per spin&#039;&#039;&#039;. When you close the window, the script will use your &#039;&#039;&#039;&amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt;&#039;&#039;&#039; function to print the average energy and magnetisation from the simulation. Note, you should run this script from the command line.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 3c&amp;lt;/big&amp;gt;: If &#039;&#039;T&#039;&#039; &amp;amp;lt; &#039;&#039;T&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;&#039;&#039;, do you expect a spontaneous magnetisation (i.e. do you expect &amp;amp;lang;&#039;&#039;M&#039;&#039;&amp;amp;rang; &amp;amp;ne; 0)? When the state of the simulation appears to stop changing (when you have reached an equilibrium state), use the controls to export the output to an SVG or PNG file and attach this to your report. You should also include the output from your statistics() function.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the third section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]], or jump ahead to the next section, [[Programming a 2D Ising Model/Accelerating the code|Accelerating the code]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822032</id>
		<title>Programming a 2D Ising Model/Calculating the energy and magnetisation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822032"/>
		<updated>2026-02-17T15:54:50Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* The Constructor */ Use italics instead of &amp;lt;math&amp;gt; when referring to variables in line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Various scripts have been prepared to assist you with this experiment, and you can obtain them by downloading the files from the Blackboard.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We recommend you open the extracted folder with JupyterLab, which has an integrated terminal where you can run the  simulation scripts.&lt;br /&gt;
&lt;br /&gt;
==Modifying the files==&lt;br /&gt;
&lt;br /&gt;
The file &#039;&#039;&#039;IsingLattice.py&#039;&#039;&#039; contains a Python class called IsingLattice. This class will be the basis for our model of the system, and is restricted to modelling the two dimensional case. It contains a number of stub methods that you will complete as you work through the experiment.&lt;br /&gt;
&lt;br /&gt;
===A note about Python Classes===&lt;br /&gt;
&lt;br /&gt;
The file IsingLattice.py makes use of a Python feature called &#039;&#039;class&#039;&#039;. You should be familiar with the idea that all Python &#039;&#039;objects&#039;&#039; have an associated &#039;&#039;type&#039;&#039; -- you have already encountered objects such as integers, string, lists, and NumPy arrays. Classes allow us to define new types of object. In this case, we define a type called &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
class IsingLattice:&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each class is allowed to have certain attributes and functions (known as methods) associated with it. We can see, for example, that each &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; object has the methods &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; (the method &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt; will be explained shortly). Each of these methods takes a special first argument called self, which is a variable pointing to the current copy of IsingLattice. To use the new IsingLattice object that we have defined, we use code like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import IsingLattice&lt;br /&gt;
&lt;br /&gt;
il = IsingLattice(5, 5) #create an IsingLattice object with 5 row and 5 columns&lt;br /&gt;
&lt;br /&gt;
energy = il.energy() #call the energy() method of our IsingLattice object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When writing code &amp;quot;within&amp;quot; the class definition, all attributes and methods belonging to the class must be accessed using the &amp;quot;self.&amp;quot; notation. You can see an example of this in the &amp;lt;code&amp;gt;montecarlostep()&amp;lt;/code&amp;gt; method:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
energy = self.energy()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line creates a variable called energy which contains whatever value was returned by the method &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; which is part of the &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; class. If you just want to define a local variable instead, like an iterator in a loop, the &amp;lt;code&amp;gt;self.&amp;lt;/code&amp;gt; notation is not required.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def magnetisation(self):&lt;br /&gt;
    # we have to use self.lattice, because the lattice variable is part of the object, not local to this function&lt;br /&gt;
    for i in self.lattice:&lt;br /&gt;
        ...&lt;br /&gt;
        # we use i, not self.i&lt;br /&gt;
        # we don&#039;t need to access i outside this function &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look at the other files that you have been given to see how this IsingLattice object is used.&lt;br /&gt;
&lt;br /&gt;
===The Constructor===&lt;br /&gt;
&lt;br /&gt;
The only method currently filled in is &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt;. This is a special method called a &#039;&#039;constructor&#039;&#039;. Whenever a new IsingLattice object is created, using code like &amp;lt;code&amp;gt;il = IsingLattice(5,5)&amp;lt;/code&amp;gt;, this method is called automatically. It takes two arguments (excluding &amp;quot;self&amp;quot;), which are simply the number of rows and columns that our lattice will have. The attribute &amp;lt;code&amp;gt;self.lattice&amp;lt;/code&amp;gt; is then created, which is a NumPy array with the requested number of rows and columns. The function &amp;lt;code&amp;gt;np.random.choice&amp;lt;/code&amp;gt; is used to create a random collection of spins for our initial configuration. You can see the documentation for the function [https://numpy.org/doc/stable/reference/random/generated/numpy.random.choice.html numpy.random.choice].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2a&amp;lt;/big&amp;gt;: complete the functions &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, which should return the energy of the lattice and the total magnetisation, respectively. In the &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; function you may assume that &#039;&#039;J&#039;&#039;=1.0 at all times (in fact, we are working in &#039;&#039;reduced units&#039;&#039; in which all energies are a multiple of &#039;&#039;J&#039;&#039;, but there will be more information about this in later sections). Do not worry about the efficiency of the code at the moment &amp;amp;mdash; we will address the speed in a later part of the experiment. Paste your code in your report and describe how it works.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Testing the files==&lt;br /&gt;
&lt;br /&gt;
When you have completed the energy() and magnetisation() methods, we need to test that they work correctly.&lt;br /&gt;
We have provided you with a script, &#039;&#039;&#039;ILcheck.py&#039;&#039;&#039;, which will create three IsingLattice objects and check their energies and magnetisations, displaying these on a graph. One configuration corresponds to the energy minimum, one to the energy maximum, and one to an intermediate state.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2b&amp;lt;/big&amp;gt;: Run the ILcheck.py script from the a terminal using the command&#039;&#039;&#039;&amp;lt;pre&amp;gt;python ILcheck.py&amp;lt;/pre&amp;gt;&#039;&#039;&#039;The displayed window has a series of control buttons in the bottom left, one of which will allow you to export the figure as a SVG or PNG image. Save an image of the ILcheck.py output, and include it in your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are also some unit tests available in the &amp;lt;code&amp;gt;test_energy.py&amp;lt;/code&amp;gt; file. These tests are designed to be run by simply running the [https://docs.pytest.org pytest] command in your terminal,&lt;br /&gt;
&amp;lt;pre&amp;gt;pytest&amp;lt;/pre&amp;gt;&lt;br /&gt;
These sorts of test are useful because they are easier to write and faster to run and can be run automatically.&lt;br /&gt;
&lt;br /&gt;
You can also debug and test your program on a Jupyter notebook or IPython console by importing your IsingLattice class, creating one object, and inspecting its properties. If you do this, we recommend that you start your session running the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%load_ext autoreload&lt;br /&gt;
%autoreload 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will ensure that when you try executing your code, you always run the most recent version (please note this isn&#039;t fool proof and if you find problems you may need to restart the kernel)!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822031</id>
		<title>Programming a 2D Ising Model</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model&amp;diff=822031"/>
		<updated>2026-02-17T15:49:02Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Assessment */ Remove spacing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the Ising Model experiment (aka programming for simple simulations). This is a core experiment for year 3 students on the Chemistry with Molecular Physics degree.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise, you are going to use the Python that you learned in the first year to write a code to perform Monte-Carlo simulations of the 2D [http://en.wikipedia.org/wiki/Ising_model Ising model], a set of spins on a lattice which is used to model ferromagnetic behaviour, and also to analyse the results of the simulation to find the heat capacity of the system and the Curie temperature &amp;amp;mdash; the temperature below which the system is able to maintain a spontaneous magnetisation.&lt;br /&gt;
&lt;br /&gt;
A more extensive introduction to the Ising Model will be given in the next page. This page gives some practical information about how the experiment. &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
At the end of this experiment you must submit a report, writing up your findings. Each section of the experiment has a number of tasks that you should complete, labelled &#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;&#039;&#039;&#039;. If this is a mathematical exercise, your report should contain a short summary of the solution. If it is a graphical exercise, you should include the relevant image. Your report should explain briefly what you did in each stage of the experiment, and what your findings were.&lt;br /&gt;
&lt;br /&gt;
The report should be submitted as a PDF file to Turnitin, created with your favourite word processor or LaTeX, and should contain the annotated source code of the Python scripts that your write during the experiment. For clarity, code included in the report should be written in a monospaced font (e.g. Courier), which in LaTeX can be easily achieved by placing your code inside a &amp;lt;code&amp;gt;\texttt{}&amp;lt;/code&amp;gt; command. &#039;&#039;&#039;The code, except where relevant to discussion, can be placed in an appendix.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As well as including relevant source code in your report, you should also submit a bundle with all your scripts and analysis code as a separate Blackboard submission.&lt;br /&gt;
&lt;br /&gt;
===On the use of AI tools===&lt;br /&gt;
The code you write for this experiment is assessed, and as per the [https://bb.imperial.ac.uk/bbcswebdav/pid-3344481-dt-content-rid-21115105_1/xid-21115105_1 department&#039;s guidelines on the use of AI], it is not acceptable to use generative AI tools to write computer code for this assignment.&lt;br /&gt;
&lt;br /&gt;
Writing computer programs yourself enhances your logical thinking and problem solving skills. Using generative AI tools to write your code makes you dumb. Don&#039;t choose to be dumb, don&#039;t use AI to write code for you.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The Graduate Teaching Assistants demonstrating this experiment are Fionn Carman and Lei Li. Demonstrators will be available in room 232A at the following times:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Demonstrator timetable&lt;br /&gt;
! !! Monday !! Tuesday !! Wednesday !! Thusrsday !! Friday&lt;br /&gt;
|-&lt;br /&gt;
| Morning || 10:00 - Experiment intro&amp;lt;br /&amp;gt; 10:00-13:00 - Fionn and Aidan || 10:00-13:00 - Ayse and Aidan|| || 10:00-13:00 - Fionn || 10:00-13:00 - Ayse and Aidan&lt;br /&gt;
|-&lt;br /&gt;
| Afternoon || 14:00-17:00 - Fionn|| 14:00-17:00 - Ayse  and Aidan|| || 14:00-16:00 - Fionn and Aidan || 14:00-17:00 - Ayse&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you have questions outside these times, please use the Discussion Board on Blackboard.&lt;br /&gt;
&lt;br /&gt;
João and Giuseppe are the members of academic staff responsible for this experiment. You are welcome to address your questions and comments to them.&lt;br /&gt;
&lt;br /&gt;
==Structure of this Experiment==&lt;br /&gt;
&lt;br /&gt;
This experimental manual has been broken up into a number of subsections. Direct links to each of them may be found below. You should attempt them in order, and you should complete all of them to finish the experiment.&lt;br /&gt;
&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction_to_the_Ising_model|Introduction to the Ising model]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Calculating the energy and magnetisation|Calculating the energy and magnetisation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Introduction to Monte Carlo simulation|Introduction to the Monte Carlo simulation]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Accelerating the code|Accelerating the code]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of temperature|The effect of temperature]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/The effect of system size|The effect of system size]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Determining the heat capacity|Determining the heat capacity]]&lt;br /&gt;
# [[Programming_a_2D_Ising_Model/Locating the Curie temperature|Locating the Curie temperature]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822030</id>
		<title>Programming a 2D Ising Model/Calculating the energy and magnetisation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822030"/>
		<updated>2026-02-17T15:42:33Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Remove space&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Various scripts have been prepared to assist you with this experiment, and you can obtain them by downloading the files from the Blackboard.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We recommend you open the extracted folder with JupyterLab, which has an integrated terminal where you can run the  simulation scripts.&lt;br /&gt;
&lt;br /&gt;
==Modifying the files==&lt;br /&gt;
&lt;br /&gt;
The file &#039;&#039;&#039;IsingLattice.py&#039;&#039;&#039; contains a Python class called IsingLattice. This class will be the basis for our model of the system, and is restricted to modelling the two dimensional case. It contains a number of stub methods that you will complete as you work through the experiment.&lt;br /&gt;
&lt;br /&gt;
===A note about Python Classes===&lt;br /&gt;
&lt;br /&gt;
The file IsingLattice.py makes use of a Python feature called &#039;&#039;class&#039;&#039;. You should be familiar with the idea that all Python &#039;&#039;objects&#039;&#039; have an associated &#039;&#039;type&#039;&#039; -- you have already encountered objects such as integers, string, lists, and NumPy arrays. Classes allow us to define new types of object. In this case, we define a type called &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
class IsingLattice:&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each class is allowed to have certain attributes and functions (known as methods) associated with it. We can see, for example, that each &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; object has the methods &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; (the method &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt; will be explained shortly). Each of these methods takes a special first argument called self, which is a variable pointing to the current copy of IsingLattice. To use the new IsingLattice object that we have defined, we use code like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import IsingLattice&lt;br /&gt;
&lt;br /&gt;
il = IsingLattice(5, 5) #create an IsingLattice object with 5 row and 5 columns&lt;br /&gt;
&lt;br /&gt;
energy = il.energy() #call the energy() method of our IsingLattice object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When writing code &amp;quot;within&amp;quot; the class definition, all attributes and methods belonging to the class must be accessed using the &amp;quot;self.&amp;quot; notation. You can see an example of this in the &amp;lt;code&amp;gt;montecarlostep()&amp;lt;/code&amp;gt; method:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
energy = self.energy()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line creates a variable called energy which contains whatever value was returned by the method &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; which is part of the &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; class. If you just want to define a local variable instead, like an iterator in a loop, the &amp;lt;code&amp;gt;self.&amp;lt;/code&amp;gt; notation is not required.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def magnetisation(self):&lt;br /&gt;
    # we have to use self.lattice, because the lattice variable is part of the object, not local to this function&lt;br /&gt;
    for i in self.lattice:&lt;br /&gt;
        ...&lt;br /&gt;
        # we use i, not self.i&lt;br /&gt;
        # we don&#039;t need to access i outside this function &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look at the other files that you have been given to see how this IsingLattice object is used.&lt;br /&gt;
&lt;br /&gt;
===The Constructor===&lt;br /&gt;
&lt;br /&gt;
The only method currently filled in is &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt;. This is a special method called a &#039;&#039;constructor&#039;&#039;. Whenever a new IsingLattice object is created, using code like &amp;lt;code&amp;gt;il = IsingLattice(5,5)&amp;lt;/code&amp;gt;, this method is called automatically. It takes two arguments (excluding &amp;quot;self&amp;quot;), which are simply the number of rows and columns that our lattice will have. The attribute &amp;lt;code&amp;gt;self.lattice&amp;lt;/code&amp;gt; is then created, which is a NumPy array with the requested number of rows and columns. The function &amp;lt;code&amp;gt;np.random.choice&amp;lt;/code&amp;gt; is used to create a random collection of spins for our initial configuration. You can see the documentation for the function [https://numpy.org/doc/stable/reference/random/generated/numpy.random.choice.html numpy.random.choice].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2a&amp;lt;/big&amp;gt;: complete the functions &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, which should return the energy of the lattice and the total magnetisation, respectively. In the &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; function you may assume that &amp;lt;math&amp;gt;J=1.0&amp;lt;/math&amp;gt; at all times (in fact, we are working in &#039;&#039;reduced units&#039;&#039; in which all energies are a multiple of &amp;lt;math&amp;gt;J&amp;lt;/math&amp;gt;, but there will be more information about this in later sections). Do not worry about the efficiency of the code at the moment &amp;amp;mdash; we will address the speed in a later part of the experiment. Paste your code in your report and describe how it works.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Testing the files==&lt;br /&gt;
&lt;br /&gt;
When you have completed the energy() and magnetisation() methods, we need to test that they work correctly.&lt;br /&gt;
We have provided you with a script, &#039;&#039;&#039;ILcheck.py&#039;&#039;&#039;, which will create three IsingLattice objects and check their energies and magnetisations, displaying these on a graph. One configuration corresponds to the energy minimum, one to the energy maximum, and one to an intermediate state.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2b&amp;lt;/big&amp;gt;: Run the ILcheck.py script from the a terminal using the command&#039;&#039;&#039;&amp;lt;pre&amp;gt;python ILcheck.py&amp;lt;/pre&amp;gt;&#039;&#039;&#039;The displayed window has a series of control buttons in the bottom left, one of which will allow you to export the figure as a SVG or PNG image. Save an image of the ILcheck.py output, and include it in your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are also some unit tests available in the &amp;lt;code&amp;gt;test_energy.py&amp;lt;/code&amp;gt; file. These tests are designed to be run by simply running the [https://docs.pytest.org pytest] command in your terminal,&lt;br /&gt;
&amp;lt;pre&amp;gt;pytest&amp;lt;/pre&amp;gt;&lt;br /&gt;
These sorts of test are useful because they are easier to write and faster to run and can be run automatically.&lt;br /&gt;
&lt;br /&gt;
You can also debug and test your program on a Jupyter notebook or IPython console by importing your IsingLattice class, creating one object, and inspecting its properties. If you do this, we recommend that you start your session running the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%load_ext autoreload&lt;br /&gt;
%autoreload 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will ensure that when you try executing your code, you always run the most recent version (please note this isn&#039;t fool proof and if you find problems you may need to restart the kernel)!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822029</id>
		<title>Programming a 2D Ising Model/Calculating the energy and magnetisation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/Calculating_the_energy_and_magnetisation&amp;diff=822029"/>
		<updated>2026-02-17T15:41:01Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Improve the flow of the page, putting more enphasys on the use of ILcheck.py&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Various scripts have been prepared to assist you with this experiment, and you can obtain them by downloading the files from the Blackboard.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We recommend you open the extracted folder with JupyterLab, which has an integrated terminal where you can run the  simulation scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Modifying the files==&lt;br /&gt;
&lt;br /&gt;
The file &#039;&#039;&#039;IsingLattice.py&#039;&#039;&#039; contains a Python class called IsingLattice. This class will be the basis for our model of the system, and is restricted to modelling the two dimensional case. It contains a number of stub methods that you will complete as you work through the experiment.&lt;br /&gt;
&lt;br /&gt;
===A note about Python Classes===&lt;br /&gt;
&lt;br /&gt;
The file IsingLattice.py makes use of a Python feature called &#039;&#039;class&#039;&#039;. You should be familiar with the idea that all Python &#039;&#039;objects&#039;&#039; have an associated &#039;&#039;type&#039;&#039; -- you have already encountered objects such as integers, string, lists, and NumPy arrays. Classes allow us to define new types of object. In this case, we define a type called &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
class IsingLattice:&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each class is allowed to have certain attributes and functions (known as methods) associated with it. We can see, for example, that each &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; object has the methods &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;montecarlostep(T)&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;statistics()&amp;lt;/code&amp;gt; (the method &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt; will be explained shortly). Each of these methods takes a special first argument called self, which is a variable pointing to the current copy of IsingLattice. To use the new IsingLattice object that we have defined, we use code like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import IsingLattice&lt;br /&gt;
&lt;br /&gt;
il = IsingLattice(5, 5) #create an IsingLattice object with 5 row and 5 columns&lt;br /&gt;
&lt;br /&gt;
energy = il.energy() #call the energy() method of our IsingLattice object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When writing code &amp;quot;within&amp;quot; the class definition, all attributes and methods belonging to the class must be accessed using the &amp;quot;self.&amp;quot; notation. You can see an example of this in the &amp;lt;code&amp;gt;montecarlostep()&amp;lt;/code&amp;gt; method:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
energy = self.energy()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line creates a variable called energy which contains whatever value was returned by the method &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; which is part of the &amp;lt;code&amp;gt;IsingLattice&amp;lt;/code&amp;gt; class. If you just want to define a local variable instead, like an iterator in a loop, the &amp;lt;code&amp;gt;self.&amp;lt;/code&amp;gt; notation is not required.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def magnetisation(self):&lt;br /&gt;
    # we have to use self.lattice, because the lattice variable is part of the object, not local to this function&lt;br /&gt;
    for i in self.lattice:&lt;br /&gt;
        ...&lt;br /&gt;
        # we use i, not self.i&lt;br /&gt;
        # we don&#039;t need to access i outside this function &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look at the other files that you have been given to see how this IsingLattice object is used.&lt;br /&gt;
&lt;br /&gt;
===The Constructor===&lt;br /&gt;
&lt;br /&gt;
The only method currently filled in is &amp;lt;code&amp;gt;__init__&amp;lt;/code&amp;gt;. This is a special method called a &#039;&#039;constructor&#039;&#039;. Whenever a new IsingLattice object is created, using code like &amp;lt;code&amp;gt;il = IsingLattice(5,5)&amp;lt;/code&amp;gt;, this method is called automatically. It takes two arguments (excluding &amp;quot;self&amp;quot;), which are simply the number of rows and columns that our lattice will have. The attribute &amp;lt;code&amp;gt;self.lattice&amp;lt;/code&amp;gt; is then created, which is a NumPy array with the requested number of rows and columns. The function &amp;lt;code&amp;gt;np.random.choice&amp;lt;/code&amp;gt; is used to create a random collection of spins for our initial configuration. You can see the documentation for the function [https://numpy.org/doc/stable/reference/random/generated/numpy.random.choice.html numpy.random.choice].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2a&amp;lt;/big&amp;gt;: complete the functions &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;magnetisation()&amp;lt;/code&amp;gt;, which should return the energy of the lattice and the total magnetisation, respectively. In the &amp;lt;code&amp;gt;energy()&amp;lt;/code&amp;gt; function you may assume that &amp;lt;math&amp;gt;J=1.0&amp;lt;/math&amp;gt; at all times (in fact, we are working in &#039;&#039;reduced units&#039;&#039; in which all energies are a multiple of &amp;lt;math&amp;gt;J&amp;lt;/math&amp;gt;, but there will be more information about this in later sections). Do not worry about the efficiency of the code at the moment &amp;amp;mdash; we will address the speed in a later part of the experiment. Paste your code in your report and describe how it works.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Testing the files==&lt;br /&gt;
&lt;br /&gt;
When you have completed the energy() and magnetisation() methods, we need to test that they work correctly.&lt;br /&gt;
We have provided you with a script, &#039;&#039;&#039;ILcheck.py&#039;&#039;&#039;, which will create three IsingLattice objects and check their energies and magnetisations, displaying these on a graph. One configuration corresponds to the energy minimum, one to the energy maximum, and one to an intermediate state.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 2b&amp;lt;/big&amp;gt;: Run the ILcheck.py script from the a terminal using the command&#039;&#039;&#039;&amp;lt;pre&amp;gt;python ILcheck.py&amp;lt;/pre&amp;gt;&#039;&#039;&#039;The displayed window has a series of control buttons in the bottom left, one of which will allow you to export the figure as a SVG or PNG image. Save an image of the ILcheck.py output, and include it in your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are also some unit tests available in the &amp;lt;code&amp;gt;test_energy.py&amp;lt;/code&amp;gt; file. These tests are designed to be run by simply running the [https://docs.pytest.org pytest] command in your terminal,&lt;br /&gt;
&amp;lt;pre&amp;gt;pytest&amp;lt;/pre&amp;gt;&lt;br /&gt;
These sorts of test are useful because they are easier to write and faster to run and can be run automatically.&lt;br /&gt;
&lt;br /&gt;
You can also debug and test your program on a Jupyter notebook or IPython console by importing your IsingLattice class, creating one object, and inspecting its properties. If you do this, we recommend that you start your session running the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%load_ext autoreload&lt;br /&gt;
%autoreload 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will ensure that when you try executing your code, you always run the most recent version (please note this isn&#039;t fool proof and if you find problems you may need to restart the kernel)!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;color:blue; &amp;quot;&amp;gt;This is the second section of the Ising model experiment. You can return to the previous page, [[Programming a 2D Ising Model/Introduction to the Ising model|Introduction to the Ising model]], or jump ahead to the next section, [[Programming a 2D Ising Model/Introduction to Monte Carlo simulation|Introduction to Monte Carlo simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=ThirdYearMgOExpt-1415&amp;diff=822028</id>
		<title>ThirdYearMgOExpt-1415</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=ThirdYearMgOExpt-1415&amp;diff=822028"/>
		<updated>2026-02-15T17:29:15Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Related literature */ Show bibliography as proper references&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;blockquote&amp;gt;&lt;br /&gt;
= Thermal Expansion of MgO =&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;This is the welcome page for the computational experiment about the thermal expansion of MgO, part of the third year computational chemistry lab.&lt;br /&gt;
&lt;br /&gt;
The computational experiment will be from 10:00 to 17:00 on Monday, Tuesday, Thursday and Friday. During these 4 days demonstrators will be available to answer all your questions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There is an introductory lecture to the lab at 10:00 on the Start Date of your session. You will received and email with more details.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The deadline is at 12:00 noon on Wed of the second week following the week of the experiment.&lt;br /&gt;
&lt;br /&gt;
Work submitted late will be penalised according to the [https://www.imperial.ac.uk/media/imperial-college/administration-and-support-services/registry/academic-governance/public/academic-policy/marking-and-moderation/Late-submission-Policy.pdf Late Submission Policy].&lt;br /&gt;
&lt;br /&gt;
There is a link set up on [http://bb.imperial.ac.uk Blackboard] for submitting the report in PDF and the Jupyter notebooks as a .zip folder in 3rd Year Chemistry Laboratories / Y3C Third Year Computational Laboratory/.&lt;br /&gt;
&lt;br /&gt;
In each exercise there are a number questions and sub-questions. The final report will be expected to contain answers to these questions.&lt;br /&gt;
&lt;br /&gt;
Questions related to this computational experiment can be directed to the demonstrators, Dr Giuseppe Mallia and Prof. Nicholas Harrison.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The properties of materials (solids, liquids, gasses) are a statistical average over the many different energy states of the molecules making up the material. &lt;br /&gt;
&lt;br /&gt;
The vibrational free energy of H&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; can be computed analytically by summing over the harmonic vibrations of the molecule. &lt;br /&gt;
&lt;br /&gt;
This cannot be done by hand for a real material containing many atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim of this experiment is to predict how a material expands, when heated up. A simple model,&lt;br /&gt;
&lt;br /&gt;
based on interatomic potentials, will be adopted to describe the interactions in a MgO crystal. &lt;br /&gt;
&lt;br /&gt;
You will compare two different approximations to study the thermal expansion of MgO. In the former&lt;br /&gt;
&lt;br /&gt;
approximation, you will calculate the vibrational energy levels, which will then be used to compute the free energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the latter approximation, you will use a technique called molecular dynamics that&lt;br /&gt;
&lt;br /&gt;
will essentially reproduce vibrations as motions of the atoms.&lt;br /&gt;
&lt;br /&gt;
The simulations will be performed by using the interatomic potential program gulp though a&lt;br /&gt;
&lt;br /&gt;
jupyter-notebook.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
You will use Microsoft Azure Lab Windows virtual machine, where everything is installed. &lt;br /&gt;
&lt;br /&gt;
Below there are some steps that are necessary only in case of local installation (check with demonstrators). Move to next session.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For Windows users&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Alternatively, in order to run this computational experiment, you can install anaconda on your Windows computer.&lt;br /&gt;
&lt;br /&gt;
- Download the zip file from blackboard.&lt;br /&gt;
&lt;br /&gt;
- Please avoid to save the zip file in a folder tree, where a folder has a name with one or more space (&amp;quot; &amp;quot;).&lt;br /&gt;
&lt;br /&gt;
- Extract the files.&lt;br /&gt;
&lt;br /&gt;
- Run Anaconda&lt;br /&gt;
&lt;br /&gt;
- Run Jupyter Notebook &lt;br /&gt;
&lt;br /&gt;
- Run the main.ipynb&lt;br /&gt;
&lt;br /&gt;
- Follow the instructions in the notebook.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For Mac users (please get in touch with a demonstrator) - the installation depends on your Mac version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and type the command below:&lt;br /&gt;
&lt;br /&gt;
2. sudo /bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)&amp;quot;  &lt;br /&gt;
(https://brew.sh/)&lt;br /&gt;
&lt;br /&gt;
3. brew install gcc (https://formulae.brew.sh/formula/gcc#default)&lt;br /&gt;
&lt;br /&gt;
4.1 conda create --name MgOexp python=3.7.2&lt;br /&gt;
&lt;br /&gt;
4.2 conda activate MgOexp&lt;br /&gt;
&lt;br /&gt;
4.3 jupyter-notebook&lt;br /&gt;
&lt;br /&gt;
== Previous years related contents ==&lt;br /&gt;
&lt;br /&gt;
- Maths and Physics for Chemist&lt;br /&gt;
&lt;br /&gt;
- Thermodynamics&lt;br /&gt;
&lt;br /&gt;
- Statistical thermodynamics&lt;br /&gt;
&lt;br /&gt;
- Python&lt;br /&gt;
&lt;br /&gt;
Good skills on python is not a requirement. All the scripts are written in a way where you only need to write an input value (e.g. Temperature = 300 K). However, feel free to edit and play with the scripts.&lt;br /&gt;
&lt;br /&gt;
== New contents ==&lt;br /&gt;
&lt;br /&gt;
- Phonons and reciprocal space&lt;br /&gt;
&lt;br /&gt;
- Quasi-Harmonic approximation&lt;br /&gt;
&lt;br /&gt;
- Molecular dynamics&lt;br /&gt;
&lt;br /&gt;
== Submission ==&lt;br /&gt;
&lt;br /&gt;
The report will be submitted as a PDF document via Turnit in Blackboard.&lt;br /&gt;
&lt;br /&gt;
Additionally, all the files (including the lab notebooks) will be also submitted via Blackboard as a .zip folder. &lt;br /&gt;
&lt;br /&gt;
=== Write up ===&lt;br /&gt;
&lt;br /&gt;
The report structure will consist of three sections:&lt;br /&gt;
* Introduction/Summary (Half-page)&lt;br /&gt;
* Questions &amp;amp; answers (No page limit)&lt;br /&gt;
* Conclusions (Half-page)&lt;br /&gt;
&lt;br /&gt;
Tips to write a report:&lt;br /&gt;
* The golden rule: Aim for clarity&lt;br /&gt;
** Structured statements that flow in a logical manner.&lt;br /&gt;
** Good use of diagrams and appropriate level of theory.&lt;br /&gt;
** Careful choice of content.&lt;br /&gt;
&lt;br /&gt;
* Keep your language clear and simple.&lt;br /&gt;
* Label all tables and figures. Labels should be self-contained, which means that tables and figures should be interpretable by themself.&lt;br /&gt;
* Appropriate referencing of figures and tables.&lt;br /&gt;
* Cite previous works (with an accepted citation style) whenever is appropriate.&lt;br /&gt;
&lt;br /&gt;
Introduction/Summary:&lt;br /&gt;
* The purpose of the Introduction/Summary is to put the reader in the context of the experiment and to explain how the experiment was carried in the lab. It may contain a brief review of previous research, why the research was undertaken, an explanation of the techniques and why they are used and why it is important in a broader context.&lt;br /&gt;
&lt;br /&gt;
Questions &amp;amp; Answers:&lt;br /&gt;
* There are a number of questions in the lab script that has to be answered in this section of the report. &lt;br /&gt;
* Depending on the nature of the question, it might be appropriate to use figures or tables to give a proper answer. &lt;br /&gt;
* It is highly encourage to rationalise the answers. &lt;br /&gt;
&lt;br /&gt;
Conclusions:&lt;br /&gt;
* The Conclusions gives a general description of the results and findings and it should be related back to the Introduction. If appropriate, suggest improvements or additional experiments.&lt;br /&gt;
&lt;br /&gt;
=== Suggested Time Frame ===&lt;br /&gt;
&lt;br /&gt;
Try to finish all the calculations by Thursday. All the calculations takes seconds, however, it takes time to analyse the results and understand all the new concepts that you will learn in this lab.&lt;br /&gt;
&lt;br /&gt;
=== Mark Scheme ===&lt;br /&gt;
&lt;br /&gt;
The break-down for the marks for this lab are as follows:&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
|Introduction/Summary&lt;br /&gt;
|20%&lt;br /&gt;
|-&lt;br /&gt;
|Questions &amp;amp; Answers&lt;br /&gt;
|60%&lt;br /&gt;
|-&lt;br /&gt;
|Conclusions&lt;br /&gt;
|20%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Plagiarism ===&lt;br /&gt;
&lt;br /&gt;
Submissions are checked for plagiarism. External images may be used if correctly cited, but it&#039;s always better to create your own.&lt;br /&gt;
&lt;br /&gt;
== Demonstrators ==&lt;br /&gt;
&lt;br /&gt;
The demonstrators will be available via Microsoft team channel. &lt;br /&gt;
Feel free to contact them.&lt;br /&gt;
&lt;br /&gt;
== Related literature ==&lt;br /&gt;
&lt;br /&gt;
{{Cite journal | author1=Roald Hoffmann | title=How Chemistry and Physics Meet in the Solid State | journal=Angew. Chem., Int. Ed. Engl. | year=1987 | volume=26 | issue=9 | pages=846-878 | doi=10.1002/anie.198708461}}&lt;br /&gt;
&lt;br /&gt;
{{Cite journal | author1=Martin T. Dove | title=Introduction to the theory of lattice dynamics | journal=Collection SFN | year=2011 | volume=12 | pages=123-159 | doi=10.1051/sfn/201112007}}&lt;br /&gt;
&lt;br /&gt;
{{Cite book | author1=Martin T. Dove | title=Introduction to Lattice Dynamics | publisher=Cambridge University Press | year=1993}} {{DOI|10.1017/CBO9780511619885}} (access available [https://library-search.imperial.ac.uk/permalink/44IMP_INST/fv0fdm/cdi_nii_cinii_1130000797936518656 through the library])&lt;br /&gt;
&lt;br /&gt;
== Alternative instructions for Microsoft Azure Labs Linux virtual machine ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Read this section only if recommended by the demonstrators.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The following steps are based on ssh connection to a Linux virtual machine.&lt;br /&gt;
&lt;br /&gt;
1. Click on the link in the email with subject &amp;quot;Register for Lab - IC_Chemistry_yr3_UK&amp;quot; or &amp;quot;&amp;quot;Register for Lab - IC_Chemistry_Linux_UK&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Start the virtual machine.&lt;br /&gt;
&lt;br /&gt;
3. Click on the vertical three dots (bottom right of the virtual machine box) and rest the password.&lt;br /&gt;
&lt;br /&gt;
4. Click on the computer icon at the left of the three vertical dot.&lt;br /&gt;
&lt;br /&gt;
5. Copy the content of the box that will appear&lt;br /&gt;
&lt;br /&gt;
   For instance: &lt;br /&gt;
   ssh -p 12345 chemistry@ml-lab-123456789.uksouth.cloudapp.azure.com&lt;br /&gt;
&lt;br /&gt;
6. Modify the previous line by adding &amp;quot;-X&amp;quot; after ssh and  &amp;quot;-L 8888:localhost:8888&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   For instance:&lt;br /&gt;
   ssh -X -p 12345 chemistry@ml-lab-123456789.uksouth.cloudapp.azure.com -L 8888:localhost:8888&lt;br /&gt;
&lt;br /&gt;
7. On Windows open the prompt command and type the ssh line; &lt;br /&gt;
on Mac/Linux open a terminal and type the ssh line.&lt;br /&gt;
&lt;br /&gt;
8. Type &amp;quot;yes&amp;quot; to answer the following question:&lt;br /&gt;
   Are you sure you want to continue connecting (yes/no/[fingerprint])?&lt;br /&gt;
&lt;br /&gt;
9. Type your password, when prompted (the password will not be displayed for security reason)&lt;br /&gt;
once done, press &amp;quot;Enter&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
10. After that a prompt similar to the following one will appear&lt;br /&gt;
   &lt;br /&gt;
    chemistry@ML-RefVm-123456:~$&lt;br /&gt;
&lt;br /&gt;
type the following and press &amp;quot;Enter&amp;quot;&lt;br /&gt;
    conda activate&lt;br /&gt;
the prompt will change into:&lt;br /&gt;
    (base) chemistry@ML-RefVm-670265:~$&lt;br /&gt;
&lt;br /&gt;
11. Type the following and press &amp;quot;Enter&amp;quot;&lt;br /&gt;
    jupyter-notebook --no-browser&lt;br /&gt;
&lt;br /&gt;
A message similar to the following one will be printed:&lt;br /&gt;
    To access the notebook, open this file in a browser:&lt;br /&gt;
        file:///home/chemistry/.local/share/jupyter/runtime/nbserver-4021-open.html&lt;br /&gt;
    Or copy and paste one of these URLs:&lt;br /&gt;
        http://localhost:8888/?token=123456789123456789123456789123456789123456789123&lt;br /&gt;
     or http://127.0.0.1:8888/?token=123456789123456789123456789123456789123456789123&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Open a tab in your browser and type last line printed above&lt;br /&gt;
a jupyter-notebook page will be opened.&lt;br /&gt;
&lt;br /&gt;
13. Go in the folder &amp;quot;yr3&amp;quot;, then &amp;quot;MgO-lab-master&amp;quot;, then click on &amp;quot;main.ipynb&amp;quot;&lt;br /&gt;
to start your computational experiment&lt;br /&gt;
&lt;br /&gt;
14. Select &amp;quot;Python [conda env:py37_default]&amp;quot; if prompted to choose a kernel.&lt;br /&gt;
&lt;br /&gt;
15. To transfer the file use https://winscp.net/eng/docs/free_ftp_client_for_windows or scp on Mac/Linux.&lt;br /&gt;
&lt;br /&gt;
== Additional instructions for the manual installation of the gulp program and the setup of ASE on your personal computer ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Read this section only if recommended by the demonstrators.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The experiment uses [http://gulp.curtin.edu.au/gulp/ Gulp] for all the calculations. Jupyter Notebook and python is used as interface between the user and Gulp.&lt;br /&gt;
&lt;br /&gt;
To install the lab in Windows:&lt;br /&gt;
&lt;br /&gt;
1. If you do have anaconda installed you can go to point 3.&lt;br /&gt;
&lt;br /&gt;
2. Download and install [https://www.anaconda.com/download/ Anaconda]&lt;br /&gt;
&lt;br /&gt;
3. Download the [https://anaconda.org/conda-forge/ase ASE] package.&lt;br /&gt;
&lt;br /&gt;
4. Download GULP from the [http://gulp.curtin.edu.au/gulp/request.cfm?rel=download website]. Download version 4.3 which has the executable for Windows ready to download.&lt;br /&gt;
&lt;br /&gt;
5. Copy Gulp to c:\gulp-4.3.&lt;br /&gt;
&lt;br /&gt;
6. Sets a system environment variable for GULP_LIB to C:\gulp-4.3\Libraries and add to C:\gulp-4.3\Exe to the PATH system variable. [https://www.java.com/en/download/help/path.xml How do I set or change the PATH system variable?]&lt;br /&gt;
&lt;br /&gt;
7. Copy the ionic.lib file that you will find in the library folder you downloaded to the $GULP_LIB folder&lt;br /&gt;
&lt;br /&gt;
To install the lab in Linux/Unix:&lt;br /&gt;
&lt;br /&gt;
1. If you do have conda installed you can go to point 6.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal and create a new conda environment: conda create -n TE_MgO &lt;br /&gt;
&lt;br /&gt;
3. Activate the environment: conda activate TE_MgO&lt;br /&gt;
&lt;br /&gt;
4. Install ASE: conda install -c conda-forge ase=3.19.1&lt;br /&gt;
&lt;br /&gt;
5. Install Jupyter: conda install -c anaconda notebook&lt;br /&gt;
&lt;br /&gt;
6. Download GULP from the [http://gulp.curtin.edu.au/gulp/request.cfm?rel=download website]. The version 5.0 only has the source files. Download this one if you feel comfortable with compiling it by yourself. Otherwise, download version 4.3 which has the executable ready to download.&lt;br /&gt;
&lt;br /&gt;
7. Set $GULP_LIB and $ASE_GULP_COMMAND in your ~/.bashrc or ~/.bash_profile (see this [https://wiki.fysik.dtu.dk/ase/ase/calculators/gulp.html page] for more information)&lt;br /&gt;
&lt;br /&gt;
8. Copy the ionic.lib file that you will find in the library folder you downloaded to the $GULP_LIB folder&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822027</id>
		<title>Template:Cite book</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_book&amp;diff=822027"/>
		<updated>2026-02-15T17:27:08Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Do not generate links and show example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} | missing &#039;&#039;author1&#039;&#039; }} ({{#if: {{{year|}}} | {{{year}}} | missing &#039;&#039;year&#039;&#039; }}). {{#if: {{{title|}}} | &#039;&#039;{{{title}}}&#039;&#039;. | missing &#039;&#039;title&#039;&#039;. }} {{#if: {{{publisher|}}} | {{{publisher}}}. }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite book&#039;&#039;&#039;&#039;&#039; template is use to reference books.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite book&lt;br /&gt;
  | author1   =&lt;br /&gt;
  | author2   =&lt;br /&gt;
  | author3   =&lt;br /&gt;
  | title     =&lt;br /&gt;
  | publisher =&lt;br /&gt;
  | year      =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Se also ==&lt;br /&gt;
* [[Template:Cite journal]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=ThirdYearMgOExpt-1415&amp;diff=822026</id>
		<title>ThirdYearMgOExpt-1415</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=ThirdYearMgOExpt-1415&amp;diff=822026"/>
		<updated>2026-02-15T17:06:03Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Related literature */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;blockquote&amp;gt;&lt;br /&gt;
= Thermal Expansion of MgO =&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;This is the welcome page for the computational experiment about the thermal expansion of MgO, part of the third year computational chemistry lab.&lt;br /&gt;
&lt;br /&gt;
The computational experiment will be from 10:00 to 17:00 on Monday, Tuesday, Thursday and Friday. During these 4 days demonstrators will be available to answer all your questions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;There is an introductory lecture to the lab at 10:00 on the Start Date of your session. You will received and email with more details.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The deadline is at 12:00 noon on Wed of the second week following the week of the experiment.&lt;br /&gt;
&lt;br /&gt;
Work submitted late will be penalised according to the [https://www.imperial.ac.uk/media/imperial-college/administration-and-support-services/registry/academic-governance/public/academic-policy/marking-and-moderation/Late-submission-Policy.pdf Late Submission Policy].&lt;br /&gt;
&lt;br /&gt;
There is a link set up on [http://bb.imperial.ac.uk Blackboard] for submitting the report in PDF and the Jupyter notebooks as a .zip folder in 3rd Year Chemistry Laboratories / Y3C Third Year Computational Laboratory/.&lt;br /&gt;
&lt;br /&gt;
In each exercise there are a number questions and sub-questions. The final report will be expected to contain answers to these questions.&lt;br /&gt;
&lt;br /&gt;
Questions related to this computational experiment can be directed to the demonstrators, Dr Giuseppe Mallia and Prof. Nicholas Harrison.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The properties of materials (solids, liquids, gasses) are a statistical average over the many different energy states of the molecules making up the material. &lt;br /&gt;
&lt;br /&gt;
The vibrational free energy of H&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; can be computed analytically by summing over the harmonic vibrations of the molecule. &lt;br /&gt;
&lt;br /&gt;
This cannot be done by hand for a real material containing many atoms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim of this experiment is to predict how a material expands, when heated up. A simple model,&lt;br /&gt;
&lt;br /&gt;
based on interatomic potentials, will be adopted to describe the interactions in a MgO crystal. &lt;br /&gt;
&lt;br /&gt;
You will compare two different approximations to study the thermal expansion of MgO. In the former&lt;br /&gt;
&lt;br /&gt;
approximation, you will calculate the vibrational energy levels, which will then be used to compute the free energy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the latter approximation, you will use a technique called molecular dynamics that&lt;br /&gt;
&lt;br /&gt;
will essentially reproduce vibrations as motions of the atoms.&lt;br /&gt;
&lt;br /&gt;
The simulations will be performed by using the interatomic potential program gulp though a&lt;br /&gt;
&lt;br /&gt;
jupyter-notebook.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&lt;br /&gt;
You will use Microsoft Azure Lab Windows virtual machine, where everything is installed. &lt;br /&gt;
&lt;br /&gt;
Below there are some steps that are necessary only in case of local installation (check with demonstrators). Move to next session.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For Windows users&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Alternatively, in order to run this computational experiment, you can install anaconda on your Windows computer.&lt;br /&gt;
&lt;br /&gt;
- Download the zip file from blackboard.&lt;br /&gt;
&lt;br /&gt;
- Please avoid to save the zip file in a folder tree, where a folder has a name with one or more space (&amp;quot; &amp;quot;).&lt;br /&gt;
&lt;br /&gt;
- Extract the files.&lt;br /&gt;
&lt;br /&gt;
- Run Anaconda&lt;br /&gt;
&lt;br /&gt;
- Run Jupyter Notebook &lt;br /&gt;
&lt;br /&gt;
- Run the main.ipynb&lt;br /&gt;
&lt;br /&gt;
- Follow the instructions in the notebook.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For Mac users (please get in touch with a demonstrator) - the installation depends on your Mac version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and type the command below:&lt;br /&gt;
&lt;br /&gt;
2. sudo /bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)&amp;quot;  &lt;br /&gt;
(https://brew.sh/)&lt;br /&gt;
&lt;br /&gt;
3. brew install gcc (https://formulae.brew.sh/formula/gcc#default)&lt;br /&gt;
&lt;br /&gt;
4.1 conda create --name MgOexp python=3.7.2&lt;br /&gt;
&lt;br /&gt;
4.2 conda activate MgOexp&lt;br /&gt;
&lt;br /&gt;
4.3 jupyter-notebook&lt;br /&gt;
&lt;br /&gt;
== Previous years related contents ==&lt;br /&gt;
&lt;br /&gt;
- Maths and Physics for Chemist&lt;br /&gt;
&lt;br /&gt;
- Thermodynamics&lt;br /&gt;
&lt;br /&gt;
- Statistical thermodynamics&lt;br /&gt;
&lt;br /&gt;
- Python&lt;br /&gt;
&lt;br /&gt;
Good skills on python is not a requirement. All the scripts are written in a way where you only need to write an input value (e.g. Temperature = 300 K). However, feel free to edit and play with the scripts.&lt;br /&gt;
&lt;br /&gt;
== New contents ==&lt;br /&gt;
&lt;br /&gt;
- Phonons and reciprocal space&lt;br /&gt;
&lt;br /&gt;
- Quasi-Harmonic approximation&lt;br /&gt;
&lt;br /&gt;
- Molecular dynamics&lt;br /&gt;
&lt;br /&gt;
== Submission ==&lt;br /&gt;
&lt;br /&gt;
The report will be submitted as a PDF document via Turnit in Blackboard.&lt;br /&gt;
&lt;br /&gt;
Additionally, all the files (including the lab notebooks) will be also submitted via Blackboard as a .zip folder. &lt;br /&gt;
&lt;br /&gt;
=== Write up ===&lt;br /&gt;
&lt;br /&gt;
The report structure will consist of three sections:&lt;br /&gt;
* Introduction/Summary (Half-page)&lt;br /&gt;
* Questions &amp;amp; answers (No page limit)&lt;br /&gt;
* Conclusions (Half-page)&lt;br /&gt;
&lt;br /&gt;
Tips to write a report:&lt;br /&gt;
* The golden rule: Aim for clarity&lt;br /&gt;
** Structured statements that flow in a logical manner.&lt;br /&gt;
** Good use of diagrams and appropriate level of theory.&lt;br /&gt;
** Careful choice of content.&lt;br /&gt;
&lt;br /&gt;
* Keep your language clear and simple.&lt;br /&gt;
* Label all tables and figures. Labels should be self-contained, which means that tables and figures should be interpretable by themself.&lt;br /&gt;
* Appropriate referencing of figures and tables.&lt;br /&gt;
* Cite previous works (with an accepted citation style) whenever is appropriate.&lt;br /&gt;
&lt;br /&gt;
Introduction/Summary:&lt;br /&gt;
* The purpose of the Introduction/Summary is to put the reader in the context of the experiment and to explain how the experiment was carried in the lab. It may contain a brief review of previous research, why the research was undertaken, an explanation of the techniques and why they are used and why it is important in a broader context.&lt;br /&gt;
&lt;br /&gt;
Questions &amp;amp; Answers:&lt;br /&gt;
* There are a number of questions in the lab script that has to be answered in this section of the report. &lt;br /&gt;
* Depending on the nature of the question, it might be appropriate to use figures or tables to give a proper answer. &lt;br /&gt;
* It is highly encourage to rationalise the answers. &lt;br /&gt;
&lt;br /&gt;
Conclusions:&lt;br /&gt;
* The Conclusions gives a general description of the results and findings and it should be related back to the Introduction. If appropriate, suggest improvements or additional experiments.&lt;br /&gt;
&lt;br /&gt;
=== Suggested Time Frame ===&lt;br /&gt;
&lt;br /&gt;
Try to finish all the calculations by Thursday. All the calculations takes seconds, however, it takes time to analyse the results and understand all the new concepts that you will learn in this lab.&lt;br /&gt;
&lt;br /&gt;
=== Mark Scheme ===&lt;br /&gt;
&lt;br /&gt;
The break-down for the marks for this lab are as follows:&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
|Introduction/Summary&lt;br /&gt;
|20%&lt;br /&gt;
|-&lt;br /&gt;
|Questions &amp;amp; Answers&lt;br /&gt;
|60%&lt;br /&gt;
|-&lt;br /&gt;
|Conclusions&lt;br /&gt;
|20%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Plagiarism ===&lt;br /&gt;
&lt;br /&gt;
Submissions are checked for plagiarism. External images may be used if correctly cited, but it&#039;s always better to create your own.&lt;br /&gt;
&lt;br /&gt;
== Demonstrators ==&lt;br /&gt;
&lt;br /&gt;
The demonstrators will be available via Microsoft team channel. &lt;br /&gt;
Feel free to contact them.&lt;br /&gt;
&lt;br /&gt;
== Related literature ==&lt;br /&gt;
&lt;br /&gt;
{{Cite journal | author1=M.T.Dove | title=Introduction to the theory of lattice dynamics | journal=Collection SFN | year=2011 | volume=12 | pages=123-159 | doi=10.1051/sfn/201112007}}&lt;br /&gt;
&lt;br /&gt;
[https://onlinelibrary.wiley.com/doi/epdf/10.1002/anie.198708461 How Chemistry and Physics meet in the Solid State by Roald Hoffman]&lt;br /&gt;
&lt;br /&gt;
[https://www.neutron-sciences.org/articles/sfn/pdf/2011/01/sfn201112007.pdf Introduction to the theory of Lattice Dynamics]&lt;br /&gt;
&lt;br /&gt;
Introduction to Lattice Dynamics. Dove, Martin T. (ebook available in the library)&lt;br /&gt;
&lt;br /&gt;
== Alternative instructions for Microsoft Azure Labs Linux virtual machine ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Read this section only if recommended by the demonstrators.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The following steps are based on ssh connection to a Linux virtual machine.&lt;br /&gt;
&lt;br /&gt;
1. Click on the link in the email with subject &amp;quot;Register for Lab - IC_Chemistry_yr3_UK&amp;quot; or &amp;quot;&amp;quot;Register for Lab - IC_Chemistry_Linux_UK&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Start the virtual machine.&lt;br /&gt;
&lt;br /&gt;
3. Click on the vertical three dots (bottom right of the virtual machine box) and rest the password.&lt;br /&gt;
&lt;br /&gt;
4. Click on the computer icon at the left of the three vertical dot.&lt;br /&gt;
&lt;br /&gt;
5. Copy the content of the box that will appear&lt;br /&gt;
&lt;br /&gt;
   For instance: &lt;br /&gt;
   ssh -p 12345 chemistry@ml-lab-123456789.uksouth.cloudapp.azure.com&lt;br /&gt;
&lt;br /&gt;
6. Modify the previous line by adding &amp;quot;-X&amp;quot; after ssh and  &amp;quot;-L 8888:localhost:8888&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   For instance:&lt;br /&gt;
   ssh -X -p 12345 chemistry@ml-lab-123456789.uksouth.cloudapp.azure.com -L 8888:localhost:8888&lt;br /&gt;
&lt;br /&gt;
7. On Windows open the prompt command and type the ssh line; &lt;br /&gt;
on Mac/Linux open a terminal and type the ssh line.&lt;br /&gt;
&lt;br /&gt;
8. Type &amp;quot;yes&amp;quot; to answer the following question:&lt;br /&gt;
   Are you sure you want to continue connecting (yes/no/[fingerprint])?&lt;br /&gt;
&lt;br /&gt;
9. Type your password, when prompted (the password will not be displayed for security reason)&lt;br /&gt;
once done, press &amp;quot;Enter&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
10. After that a prompt similar to the following one will appear&lt;br /&gt;
   &lt;br /&gt;
    chemistry@ML-RefVm-123456:~$&lt;br /&gt;
&lt;br /&gt;
type the following and press &amp;quot;Enter&amp;quot;&lt;br /&gt;
    conda activate&lt;br /&gt;
the prompt will change into:&lt;br /&gt;
    (base) chemistry@ML-RefVm-670265:~$&lt;br /&gt;
&lt;br /&gt;
11. Type the following and press &amp;quot;Enter&amp;quot;&lt;br /&gt;
    jupyter-notebook --no-browser&lt;br /&gt;
&lt;br /&gt;
A message similar to the following one will be printed:&lt;br /&gt;
    To access the notebook, open this file in a browser:&lt;br /&gt;
        file:///home/chemistry/.local/share/jupyter/runtime/nbserver-4021-open.html&lt;br /&gt;
    Or copy and paste one of these URLs:&lt;br /&gt;
        http://localhost:8888/?token=123456789123456789123456789123456789123456789123&lt;br /&gt;
     or http://127.0.0.1:8888/?token=123456789123456789123456789123456789123456789123&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Open a tab in your browser and type last line printed above&lt;br /&gt;
a jupyter-notebook page will be opened.&lt;br /&gt;
&lt;br /&gt;
13. Go in the folder &amp;quot;yr3&amp;quot;, then &amp;quot;MgO-lab-master&amp;quot;, then click on &amp;quot;main.ipynb&amp;quot;&lt;br /&gt;
to start your computational experiment&lt;br /&gt;
&lt;br /&gt;
14. Select &amp;quot;Python [conda env:py37_default]&amp;quot; if prompted to choose a kernel.&lt;br /&gt;
&lt;br /&gt;
15. To transfer the file use https://winscp.net/eng/docs/free_ftp_client_for_windows or scp on Mac/Linux.&lt;br /&gt;
&lt;br /&gt;
== Additional instructions for the manual installation of the gulp program and the setup of ASE on your personal computer ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Read this section only if recommended by the demonstrators.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The experiment uses [http://gulp.curtin.edu.au/gulp/ Gulp] for all the calculations. Jupyter Notebook and python is used as interface between the user and Gulp.&lt;br /&gt;
&lt;br /&gt;
To install the lab in Windows:&lt;br /&gt;
&lt;br /&gt;
1. If you do have anaconda installed you can go to point 3.&lt;br /&gt;
&lt;br /&gt;
2. Download and install [https://www.anaconda.com/download/ Anaconda]&lt;br /&gt;
&lt;br /&gt;
3. Download the [https://anaconda.org/conda-forge/ase ASE] package.&lt;br /&gt;
&lt;br /&gt;
4. Download GULP from the [http://gulp.curtin.edu.au/gulp/request.cfm?rel=download website]. Download version 4.3 which has the executable for Windows ready to download.&lt;br /&gt;
&lt;br /&gt;
5. Copy Gulp to c:\gulp-4.3.&lt;br /&gt;
&lt;br /&gt;
6. Sets a system environment variable for GULP_LIB to C:\gulp-4.3\Libraries and add to C:\gulp-4.3\Exe to the PATH system variable. [https://www.java.com/en/download/help/path.xml How do I set or change the PATH system variable?]&lt;br /&gt;
&lt;br /&gt;
7. Copy the ionic.lib file that you will find in the library folder you downloaded to the $GULP_LIB folder&lt;br /&gt;
&lt;br /&gt;
To install the lab in Linux/Unix:&lt;br /&gt;
&lt;br /&gt;
1. If you do have conda installed you can go to point 6.&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal and create a new conda environment: conda create -n TE_MgO &lt;br /&gt;
&lt;br /&gt;
3. Activate the environment: conda activate TE_MgO&lt;br /&gt;
&lt;br /&gt;
4. Install ASE: conda install -c conda-forge ase=3.19.1&lt;br /&gt;
&lt;br /&gt;
5. Install Jupyter: conda install -c anaconda notebook&lt;br /&gt;
&lt;br /&gt;
6. Download GULP from the [http://gulp.curtin.edu.au/gulp/request.cfm?rel=download website]. The version 5.0 only has the source files. Download this one if you feel comfortable with compiling it by yourself. Otherwise, download version 4.3 which has the executable ready to download.&lt;br /&gt;
&lt;br /&gt;
7. Set $GULP_LIB and $ASE_GULP_COMMAND in your ~/.bashrc or ~/.bash_profile (see this [https://wiki.fysik.dtu.dk/ase/ase/calculators/gulp.html page] for more information)&lt;br /&gt;
&lt;br /&gt;
8. Copy the ionic.lib file that you will find in the library folder you downloaded to the $GULP_LIB folder&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822025</id>
		<title>Template:Cite journal</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Template:Cite_journal&amp;diff=822025"/>
		<updated>2026-02-15T17:05:06Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Do not create links for authors, title, journal and year&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if: {{{author1|}}} | {{{author1}}} | missing &#039;&#039;author1&#039;&#039; }}{{#if: {{{author2|}}} |, {{{author2}}}{{#if: {{{author3|}}} |, {{{author3}}}{{#if: {{{author4|}}} |, {{{author4}}}{{#if: {{{author5|}}} |, {{{author5}}}{{#if: {{{author6|}}} |, {{{author6}}}{{#if: {{{author7|}}} |, {{{author7}}}{{#if: {{{author8|}}} |, {{{author8}}}{{#if: {{{author9|}}} |, {{{author9}}}{{#if: {{{author10|}}} |, {{{author10}}}{{#if: {{{author11|}}} |, {{{author11}}} }} }} }} }} }} }} }} }} }} }} ({{#if: {{{year|}}} | {{{year}}} | missing &#039;&#039;year&#039;&#039; }}). {{#if: {{{title|}}} | &amp;quot;{{{title}}}&amp;quot;. | missing &#039;&#039;title&#039;&#039;. }} {{#if: {{{journal|}}} | &#039;&#039;{{{journal}}} (journal)|{{{journal}}}&#039;&#039; | missing &#039;&#039;journal&#039;&#039; }} {{#if: {{{volume|}}} | &#039;&#039;&#039;{{{volume}}}&#039;&#039;&#039; | missing &#039;&#039;volume&#039;&#039; }}{{#if: {{{issue|}}} | ({{{issue}}}) }}: {{#if: {{{pages|}}} |  {{{pages}}}. | missing &#039;&#039;pages&#039;&#039;. }} {{#if: {{{doi|}}} | doi: [http://dx.doi.org/{{{doi}}} {{{doi}}}]. }} {{#if: {{{pmid|}}} | [[PMID]]: [http://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}]. }} {{#if: {{{url1|}}} | [{{{url1}}}]. }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;&#039;&#039;Cite journal&#039;&#039;&#039;&#039;&#039; template is used to reference a journal article. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Cite journal&lt;br /&gt;
  | author1 =&lt;br /&gt;
  | author2 = &lt;br /&gt;
  | author3 = &lt;br /&gt;
  | title   = &lt;br /&gt;
  | journal = &lt;br /&gt;
  | year    = &lt;br /&gt;
  | month   = &lt;br /&gt;
  | volume  = &lt;br /&gt;
  | issue   = &lt;br /&gt;
  | pages   = &lt;br /&gt;
  | doi     = &lt;br /&gt;
  | pmid    = &lt;br /&gt;
  | url1    =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Cite book]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:CH3Cl_freq.log&amp;diff=822022</id>
		<title>File:CH3Cl freq.log</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:CH3Cl_freq.log&amp;diff=822022"/>
		<updated>2025-11-28T12:54:15Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc uploaded a new version of File:CH3Cl freq.log&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Log of a Gaussian frequency calculation at HF/3-21g level of theory for chloro-methane.&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822021</id>
		<title>File:HOD.freq.molden</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822021"/>
		<updated>2025-11-28T12:42:46Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc uploaded a new version of File:HOD.freq.molden&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Molden file resulting from a frequency calculation on HDO with Hartree-Fock and a minimal basis set&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822020</id>
		<title>File:HOD.freq.molden</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822020"/>
		<updated>2025-11-28T12:38:09Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc reverted File:HOD.freq.molden to an old version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Molden file resulting from a frequency calculation on HDO with Hartree-Fock and a minimal basis set&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822019</id>
		<title>File:HOD.freq.molden</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:HOD.freq.molden&amp;diff=822019"/>
		<updated>2025-11-28T12:34:47Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc uploaded a new version of File:HOD.freq.molden&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Molden file resulting from a frequency calculation on HDO with Hartree-Fock and a minimal basis set&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:H2O.freq.molden&amp;diff=822018</id>
		<title>File:H2O.freq.molden</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:H2O.freq.molden&amp;diff=822018"/>
		<updated>2025-11-28T12:31:20Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc uploaded a new version of File:H2O.freq.molden&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Molden file with H2O vibrational frequencies and normal modes obtained from a Hartree-Fock calculation with a minimum basis set.&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:dont_panic&amp;diff=822017</id>
		<title>Mod:dont panic</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:dont_panic&amp;diff=822017"/>
		<updated>2025-11-28T11:42:42Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:dont panic to Mod:dont panic without leaving a redirect: Revert&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also: [[Mod:org-startup|1C comp-lab startup]],[[Mod:timetable-1C|Timetable]],[[mod:laptop|Laptop use]], [[mod:programs|Programs]], [[mod:organic|Module 1C Script]], [[Mod:toolbox|Module 1C Toolbox]], [[Mod:writeup|Writing up]], [[Mod:dont_panic|Don&#039;t panic]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:A_beginners_guide.jpg|center|800px]]&lt;br /&gt;
[[Image:dont_panic.jpg|center|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So you&#039;ve done your calculations as instructed, and got your optimised structures with a whole lot of properties to boot. What else is expected of you? What does analysis exactly mean, anyway? Don&#039;t panic! Here you&#039;ll find most of what you need to know to survive Module 1 and beyond.&lt;br /&gt;
&lt;br /&gt;
==Analysis==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;How much analysis is expected from us?&amp;quot;, I hear you ask. The answer is: AS MUCH AS 60% OF YOUR MARK! Getting the lowest in energy conformers is quite a challenge which will test your chemical knowledge and patience to the limit, but it wouldn&#039;t do you much good if you can&#039;t extract chemical information from the exercise. There are several types of information which can be discussed from the calculated structures of compounds or transition states in organic chemistry. The most common ones are listed below:&lt;br /&gt;
&lt;br /&gt;
*Energies&lt;br /&gt;
*Bond angles and dihedral angles&lt;br /&gt;
*Molecular orbitals&lt;br /&gt;
*Bond strength, bond lengths and vibrational frequencies&lt;br /&gt;
&lt;br /&gt;
====Energies====&lt;br /&gt;
&lt;br /&gt;
Energies show how stable your structure is and when it comes to energy, the lower the better. Watch out when you compare energies of different structures, unless the number and types of atoms involved are the same, the comparison isn&#039;t valid. Under equilibrium, species of different energies will follow the same relationship as that between Gibbs free energy and equilibrium constant.&lt;br /&gt;
&lt;br /&gt;
Comparing absolute energies between different computational methods is impossible, as they are calculated as the sum of different factors. However, the difference in energy between isomeric transition states calculated by different methods has often been compared with experimentally measured selectivity to judge the accuracy of computational methods.&lt;br /&gt;
&lt;br /&gt;
====Bond angles and dihedral angles====&lt;br /&gt;
&lt;br /&gt;
These values are very useful in intepreting the breakdown components of energy from Molecular Mechanics calculation. They&#039;re still useful in quantum mechanics, although there won&#039;t be any tangible result you can directly relate them to. A strained structure is a strained structure regardless of how you calculate it.&lt;br /&gt;
&lt;br /&gt;
====Bond strength, bond lengths and vibrational frequencies====&lt;br /&gt;
&lt;br /&gt;
A bond is defined and displayed differently by Molecular Mechanics and quantum mechanics techniques. Be mindful as what you see in the visualisation doesn&#039;t necessarily be what your calculation results mean. The strength of a bond, and to some extent its multiplicity, is best judged by examining the bond length and its vibrational frequencies.&lt;br /&gt;
&lt;br /&gt;
====Molecular orbitals====&lt;br /&gt;
&lt;br /&gt;
MOs are only accessible via quantum mechanics. In organic chemistry, we&#039;re mostly concerned with the frontier orbitals. Examining their position, shape and symmetry often gives clues about the nature of the MOs (bonding vs antibonding, σ-π interaction, etc.), and more importantly the reactivity and selectivity of the molecule in reactions.&lt;br /&gt;
&lt;br /&gt;
==Data presentation==&lt;br /&gt;
&lt;br /&gt;
So you aren&#039;t as good at writing wikis as the geeks who live in a garage, who shower once a month and are on a permanent supplement course of caffeine. Neither are we!&lt;br /&gt;
&lt;br /&gt;
There is no doctor-ordered style for your report and marks won&#039;t be given for visual effects or creative designs of your wiki pages. Instead, we want clear, concise communication from you so that we can fully appreciate your work. One golden rule must be remembered: IF WE CAN&#039;T SEE IT (CLEARLY), WE CAN&#039;T MARK IT. The same goes for your analysis. If your visual aid helps the readers understand your points, by all means include it.&lt;br /&gt;
&lt;br /&gt;
Another issue, which is most relevant with the mini projects, is the context of your work. Tell us why and how. More importantly, tell us EXACTLY WHAT QUESTION ARE YOU TRYING TO ANSWER WITH YOUR CALCULATION, other than for getting marks, of course.&lt;br /&gt;
&lt;br /&gt;
Occasionally, we&#039;ll contact you during the marking for your original files if we find some of your results interesting, or if we feel there wasn&#039;t enough information in your wiki page. Remember to keep your files, and name them in a way that the future you won&#039;t struggle to comprehend.&lt;br /&gt;
&lt;br /&gt;
==Methods of calculation==&lt;br /&gt;
&lt;br /&gt;
====Molecular  Mechanics====&lt;br /&gt;
&lt;br /&gt;
An excellent description of molecular mechanics has already been included at [[Mod:mechanics|this page]]. Here we&#039;ll simply summarise that it&#039;s basically balls and sophisticated springs. It&#039;s fast, cheap to compute but has to rely on carefully developed force field information (the anharmonic oscillator parameters). Thus, molecular mechanics can only handle structures it has been taught to handle and those unfortunately don&#039;t include organometallic compounds.&lt;br /&gt;
&lt;br /&gt;
Of particular note, bonds are treated as springs and have to be specified in the starting structure. As a results, molecular mechanics performs poorly when it comes to electronic interactions, or bond forming-breaking processes. In these cases, molecular mechanics is often employed to clean up the structure, before a more appropriate method is applied.&lt;br /&gt;
&lt;br /&gt;
====Semi-empirical methods====&lt;br /&gt;
&lt;br /&gt;
To cut computational cost in quantum mechanics, approximations were made to simplify the Schrödinger equation. Semi-empricial molecular orbitals methods were born. They&#039;re still fast, albeit at the cost of accuracy, compared to &#039;&#039;ab initio&#039;&#039; methods. Semi-quantitative description of electronic distribution, molecular structure, MOs and energies can be quickly derived using these methods. They&#039;re also capable of calculations for organometallic compounds.&lt;br /&gt;
&lt;br /&gt;
Being quantum mechanic techniques, they can model electronic effect, orbital interactions or hydrogen bondings, bond formation/breaking, and transition states (all the things Molecular Mechanics can&#039;t do!).&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;Ab initio&#039;&#039; calculations====&lt;br /&gt;
&lt;br /&gt;
These fully-fledged quantum mechanic techniques are the current last words, if not the only words, in computational chemistry. They can also handle every chemical structure you can come up with, given an infinite amount of time. The price is that you&#039;ll need a supercomputer with &#039;brain the size of a planet&#039;, and the geeks, who write wikis for breakfast, to run it. Users are protected by a web-based or a console-based submission system. Submitted jobs will join queue and occasionally get trapped in an endless loop when you will have to contact the aforementioned IT experts to intervene.&lt;br /&gt;
&lt;br /&gt;
One can optimise structure (can be quite time consumming, depending on how many electrons you have in your structure), calculate energy (enthalpy, entropy) in gas and liquid phases. Recent advances allow fairly accurate prediction of NMR chemical shifts, CD spetrum and optical rotation, as well as IR vibrational frequencies. Bewarned: optical rotation and IR vibrational frequencies calculations are time consumming and shouldn&#039;t be carried out unless there&#039;s good justification (the submission deadline on Friday is infinitesimally close compared to infinity!).&lt;br /&gt;
&lt;br /&gt;
==Starting structure==&lt;br /&gt;
&lt;br /&gt;
Just as in life, your starting point affects your destination in molecular modelling. A poor starting structure will give you a poorly optimised end-product. Your software doesn&#039;t come with an AI (yet!) and so your chemical intuition will have to suffice. Crystal structures, if found, are good places to start as they are at least real minima in solid phase. Most of your calculations, however, will be in gas phase or in solvents.&lt;br /&gt;
&lt;br /&gt;
==Thermodynamics vs kinetics==&lt;br /&gt;
&lt;br /&gt;
Reactions under equilibrium are under thermodynamic control and the more stable product will be formed predominantly, hence the term &#039;thermodynamic product&#039;. When the reaction is irreversible (very slow reverse reaction), the distribution of products, i.e. the selectivity, is dictated by the relative energies of the corresponding transition states, which also means the relative rates of different pathways (Arrhenius equation), and not that of the products. The major product in this case is called &#039;kinetic product&#039;.&lt;br /&gt;
&lt;br /&gt;
The arbitrary end-point to a reaction also gives rise to a grey area in which the reaction mixture is approaching but has not yet reached equilibrium the “control” is effectively a mixture. One can use this knowledge to manipulate the outcome of the reaction. All reactions are initially under kinetic control, when no product means no reverse reaction.&lt;br /&gt;
&lt;br /&gt;
&#039;Thermodynamic product&#039; and &#039;kinetic product&#039; refers to the energy of different species (products and transition states), and therefore, are not mutually exclusive. It is NOT possible to define the kinetic product with knowledge of the thermodynamic product and vice versa. In many reactions, both of these are the same.&lt;br /&gt;
&lt;br /&gt;
==Other things==&lt;br /&gt;
&lt;br /&gt;
If you have questions about anything not covered on this page, talk to us. In fact, talk to us in any case. Mini project, especially, shouldn&#039;t even be attempted before some interaction with us. Computational chemistry can get extremely complicated very quickly and a chat with us would prevent you from realising you&#039;ve bitten up more than you can chew the night before submission. This of course in theory can&#039;t happen because you&#039;ve been following our advice to start your mini project as early as Monday of the second week.&lt;br /&gt;
&lt;br /&gt;
See also: [[Mod:org-startup|Synthesis comp-lab startup]],[[Mod:timetable-1C|Timetable]],[[mod:laptop|Laptop use]], [[mod:programs|Programs]],[[mod:organic|Module 1-C]],[[Mod:writeup|Writing up]], [[Mod:dont_panic|Don&#039;t panic]].&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Oh_SH6_orbitals&amp;diff=822013</id>
		<title>Oh SH6 orbitals</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Oh_SH6_orbitals&amp;diff=822013"/>
		<updated>2025-10-29T19:43:37Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Right-click on the applet to control options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;SH6&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;SH6 valence molecular orbitals&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;800&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
axes on&lt;br /&gt;
mo titleFormat &amp;quot;Energy=%E%U|?Symmetry=%S|?Occupancy=%O&amp;quot;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;SH6.molden&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;SH6&amp;lt;/target&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo delete&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;No MO&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 1&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 1&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 2&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 2&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 3&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 3&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 4&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 4&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 5&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 5&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 6&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 6&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 7&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 7&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 8&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 8&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 9&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 9&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 10&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 10&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
&amp;lt;/jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:SH6.molden | Download file]] to view orbitals with [http://avogadro.cc Avogadro] or [http://jmol.sourceforge.net Jmol].&lt;br /&gt;
&lt;br /&gt;
[[D4h_H4_fragment_orbitals| H&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; fragment orbitals]] &amp;lt;&amp;gt; [[Oh_H6_fragment_orbitals| H&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; fragment orbitals]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Oh_H6_fragment_orbitals&amp;diff=822012</id>
		<title>Oh H6 fragment orbitals</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Oh_H6_fragment_orbitals&amp;diff=822012"/>
		<updated>2025-10-29T19:41:11Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Right-click on the applet to control options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;H6_fragment&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;fragment orbitals&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;800&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
axes on&lt;br /&gt;
label on&lt;br /&gt;
label &amp;quot;%[element]%[atomno]&amp;quot;&lt;br /&gt;
mo titleFormat &amp;quot;Energy=%E%U|?Symmetry=%S|?Occupancy=%O&amp;quot;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;H6.molden&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;H6_fragment&amp;lt;/target&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo delete&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;No MO&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 1&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 1&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 2&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 2&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 3&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 3&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 4&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 4&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 5&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 5&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 6&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 6&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
&amp;lt;/jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:H6.molden | Download file]] to view orbitals with [http://avogadro.cc Avogadro] or [http://jmol.sourceforge.net Jmol].&lt;br /&gt;
&lt;br /&gt;
[[D4h_H4_fragment_orbitals| H4 fragment orbitals]].&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=D4h_H4_fragment_orbitals&amp;diff=822011</id>
		<title>D4h H4 fragment orbitals</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=D4h_H4_fragment_orbitals&amp;diff=822011"/>
		<updated>2025-10-29T19:32:23Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Right-click on the applet to control options.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;H4_fragment&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;fragment orbitals&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;800&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
label &amp;quot;%[element]%[atomno]&amp;quot;&lt;br /&gt;
axes on&lt;br /&gt;
mo titleFormat &amp;quot;Energy=%E%U|?Symmetry=%S|?Occupancy=%O&amp;quot;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;H4.molden&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;H4_fragment&amp;lt;/target&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo delete&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;No MO&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 1&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 1&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 2&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 2&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 3&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 3&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
  &amp;lt;item&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;&lt;br /&gt;
    mo 4&lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;br /&gt;
   &amp;lt;text&amp;gt;MO 4&amp;lt;/text&amp;gt;&lt;br /&gt;
  &amp;lt;/item&amp;gt;&lt;br /&gt;
&amp;lt;/jmolMenu&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:H4.molden | Download file]] to view orbitals with [http://avogadro.cc Avogadro] or [http://jmol.sourceforge.net Jmol].&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=821994</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=821994"/>
		<updated>2025-09-17T13:51:21Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* First year */ Declutter bu removing section header&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:QR_complab.png|right|QR]]&lt;br /&gt;
This is a communal area for documenting teaching and laboratory courses. To [[admin:add|add to any content on these pages]], you will have to log in using your Imperial College account. This page has {{DOI|dh4g}}&lt;br /&gt;
== Remote Working ==&lt;br /&gt;
#[[Mod:Rem|Remote access to College computers]]&lt;br /&gt;
#[[Mod:HPC-add|Remote use of Gaussian]]&lt;br /&gt;
#[[Mod:support|Remote support]]&lt;br /&gt;
&lt;br /&gt;
== ORCID Identifiers and Research Data Publication ==&lt;br /&gt;
#[[orcid|Getting an ORCID identifier]] (two stages)&lt;br /&gt;
#[[rdm:synthesis-lab|Publishing NMR instrument data]] (three stages)&lt;br /&gt;
#[[rdm:xray-data|Publishing crystal structure instrument data]]&lt;br /&gt;
&lt;br /&gt;
= Laboratories and Workshops =&lt;br /&gt;
== First Year ==&lt;br /&gt;
=== [[it:it_facillities|Email and IT@www.ch.imperial.ac.uk]]: A summary of available  IT resources ===&lt;br /&gt;
&lt;br /&gt;
===First Year Chemical Information  Lab 2015 ===&lt;br /&gt;
*[[it:intro-2011|Introduction]]&lt;br /&gt;
*[[it:lectures-2011|Lectures]]&lt;br /&gt;
*[[it:coursework-2011|Coursework]]&lt;br /&gt;
*[[it:assignment-2011|Assignment for the course]]&lt;br /&gt;
*[[it:software-2011|List of software for CIT]]&lt;br /&gt;
*[[it:searches-2011|Search facilities for CIT]]&lt;br /&gt;
*[[Measurement_Science_Lab:_Introduction|Measurement Science Lab Course]]&lt;br /&gt;
===[[organic:conventions|Conventions in organic chemistry]]===&lt;br /&gt;
===[[organic:arrow|Reactive Intermediates in organic chemistry]]===&lt;br /&gt;
===[[organic:stereo|Stereochemical models]] ===&lt;br /&gt;
== Second Year ==&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
*Electronic States and Bonding - computational laboratory (see blackboard).&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&amp;lt;!--===Synthetic Modelling Lab {{DOI|10042/a3uws}}===&lt;br /&gt;
*[[mod:latebreak|Late breaking news]].&lt;br /&gt;
*[[mod:org-startup|Startup]]&lt;br /&gt;
**[[Mod:timetable-1C|Timetable]]&lt;br /&gt;
**[[mod:laptop|Using your laptop]]&lt;br /&gt;
*[[mod:organic|1C: Structure modelling, NMR and Chiroptical simulations]]&lt;br /&gt;
*[[mod:toolbox|The computational toolbox for spectroscopic simulation]]&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:avogadro|The Avogadro program]]&lt;br /&gt;
**[[Mod:chem3d|The ChemBio3D program]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[IT:ORCID|ORCID identifier]]&lt;br /&gt;
**[[Mod:toolbox#Submitting_this_file_to_the_HPC_for_geometry_optimization|Submitting jobs to the HPC (high-performance-computing) and research data management]]&lt;br /&gt;
**[[Mod:errors|Error conditions and other  FAQs]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
* [[Mod:ts_exercise|Transition states and reactivity.]]&lt;br /&gt;
* [[ThirdYearMgOExpt-1415|MgO thermal expansion]]&lt;br /&gt;
* [[Third_year_simulation_experiment|Simulation of a simple liquid]]&lt;br /&gt;
* [[Programming_a_2D_Ising_Model|Programming a 2D Ising Model (CMP only)]]&lt;br /&gt;
&lt;br /&gt;
= Material from previous years =&lt;br /&gt;
== First year ==&lt;br /&gt;
*[[1da-workshops-2013-14|Introduction to Chemical Programming Workshop (2013)]]&lt;br /&gt;
&lt;br /&gt;
== Second year ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.huntresearchgroup.org.uk/teaching/year2a_lab_start.html Inorganic Computational Chemistry Computational Laboratory]&lt;br /&gt;
*[[CP3MD| Molecular Reaction Dynamics]]&lt;br /&gt;
&lt;br /&gt;
=== Modelling Workshop ===&lt;br /&gt;
*[[Coursework]] &lt;br /&gt;
*[[Second Year Modelling Workshop|Instructions]] and [[mod:further_coursework|Further optional coursework]]&lt;br /&gt;
*[[it:conquest|Conquest searches]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--=== Second Year Symmetry Workshops ===&lt;br /&gt;
*[[Symmetry Lab|Lab Exercises]]&lt;br /&gt;
*[[Symmetry Workshop 1|Symmetry Workshop 1]]&lt;br /&gt;
*[[Symmetry Lab Downloads|Downloads and Links]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&lt;br /&gt;
*[[TrendsCatalyticActivity|Understanding trends in catalytic activity for hydrogen evolution]]&lt;br /&gt;
*[[mod:inorganic|Bonding and molecular orbitals in main group compounds]]&lt;br /&gt;
&lt;br /&gt;
===Synthesis and computational lab ===&lt;br /&gt;
*[[Mod:organic|Synthesis and computational lab]]&lt;br /&gt;
&amp;lt;!-- === First year Background ===&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]] &lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[http://www.chem.utas.edu.au/torganal/ Torganal: a program for  Spectroscopic analysis] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[mod:intro|Information needed for the course]]&lt;br /&gt;
&amp;lt;!--*[[mod:lectures|Introductory lecture notes]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--*[[mod:laptop|Using your laptop]]--&amp;gt;&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
&amp;lt;!--*[[mod:Q&amp;amp;A|Questions and Answers]]--&amp;gt;&lt;br /&gt;
*[[mod:latebreak|Late breaking news]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[Mod:scan|Submitting jobs to the chemistry high-performance-computing resource]]&lt;br /&gt;
&lt;br /&gt;
== ChemDraw/Chemdoodle Hints ==&lt;br /&gt;
#[[IT:chemdraw|Useful hints for using  ChemDraw/ChemDoodle]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tablet  Project ==&lt;br /&gt;
# [[tablet:tablet|Tablet Pilot  Project]]&lt;br /&gt;
== 3D ==&lt;br /&gt;
# [[mod:3D|3D-printable models]]&lt;br /&gt;
# [[mod:stereo|Lecture Theatre  Stereo]]&lt;br /&gt;
== Online materials for mobile devices ==&lt;br /&gt;
# [[ebooks:howto|How to get eBooks]]&lt;br /&gt;
# [https://play.google.com/store/apps/details?id=com.blackboard.android&amp;amp;hl=en Blackboard mobile learn for  Android]&lt;br /&gt;
# [https://itunes.apple.com/us/app/blackboard-mobile-learn/id376413870?mt=8 Blackboard mobile learn for  iOS]&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191620 Pericylic reactions in iTunesU ]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8  App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191825 Conformational analysis in iTunesU]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191342 A library of mechanistic animations in  iTunesU] (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [[IT:panopto|How to compress and disseminate Panopto lecture recordings]]&lt;br /&gt;
&lt;br /&gt;
= PG =&lt;br /&gt;
&amp;lt;!-- # [[pg:data|Data management]] --&amp;gt;&lt;br /&gt;
# [[rdm:intro|Data management]]&lt;br /&gt;
= DOI =&lt;br /&gt;
*[[template:doi]]  This page  has {{DOI|dh4g}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Accessibility on this site =&lt;br /&gt;
&lt;br /&gt;
* The Department of Chemistry wants as many people as possible to be able to use this website. The site hopes to maintain WCAG 2.1 AA standards, but it is not always possible for all our content to be accessible.&lt;br /&gt;
&lt;br /&gt;
=== Technical information about this website’s accessibility ===&lt;br /&gt;
&lt;br /&gt;
* Imperial College London is committed to making its website accessible in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.&lt;br /&gt;
&lt;br /&gt;
* This website is compliant with the Web Content Accessibility Guidelines version 2.1 AA standard.&lt;br /&gt;
&lt;br /&gt;
=== Reporting accessibility issues ===&lt;br /&gt;
&lt;br /&gt;
* If you need information on this website in a different format or if you have any issues accessing the content then please contact [gmallia at imperial.ac.uk]. I will reply as soon as possible.&lt;br /&gt;
 &lt;br /&gt;
=== Enforcement procedure ===&lt;br /&gt;
 &lt;br /&gt;
* The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). &lt;br /&gt;
If you’re not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).&lt;br /&gt;
&lt;br /&gt;
=== Last updated ===&lt;br /&gt;
&lt;br /&gt;
This statement was prepared in September 2020 (rechecked in May 2021).&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:inorganic&amp;diff=821993</id>
		<title>Mod:inorganic</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:inorganic&amp;diff=821993"/>
		<updated>2025-09-17T13:48:56Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: /* Basic instructions on how to build a wiki page */  Use internal wiki link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also: [[Mod:timetable|Timetable]],[[mod:laptop|Laptop use]],[[Mod:lectures|Intro lecture]], [[mod:programs|Programs]], [[mod:organic|Module 1]], [[Mod:inorganic|Module 2]], [[Mod:phys3|Module 3]],[[Mod:writeup|Writing up]]&lt;br /&gt;
== Bonding and Molecular Orbitals in Main Group Compounds ==&lt;br /&gt;
&lt;br /&gt;
[http://www.huntresearchgroup.org.uk/teaching/year3_lab_start.html Inorganic Experiments]&lt;br /&gt;
these experiments are run by Dr Hunt, please follow the link to her teaching web-site&lt;br /&gt;
&lt;br /&gt;
== Basic instructions on how to build a wiki page ==&lt;br /&gt;
[[Title=Mod:inorganic_wiki_page_instructions|How to build a wiki page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
See also: [[Mod:timetable|Timetable]],[[mod:laptop|Laptop use]],[[Mod:lectures|Intro lecture]], [[mod:programs|Programs]], [[mod:organic|Module 1]], [[Mod:inorganic|Module 2]], [[Mod:phys3|Module 3]],[[Mod:writeup|Writing up]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:phys3&amp;diff=821992</id>
		<title>Mod:phys3</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:phys3&amp;diff=821992"/>
		<updated>2025-09-17T13:45:25Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:phys3 to Mod:phys3 without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also: [[Mod:intro|General info]], &amp;lt;!--[[Mod:lectures|Intro lecture]],--&amp;gt; [[mod:programs|Programs]], &amp;lt;!--[[mod:organic|Module 1]], [[Mod:inorganic|Module 2]], [[Mod:phys3|Module 3]],--&amp;gt; [http://www.gaussian.com/g_tech/gv5ref/gv5ref_toc.htm Gaussian Online User Manual] |  [http://faculty.ycp.edu/~jforesma/educ/visual/index.html Visualization Tutorials]&lt;br /&gt;
= Module 3 =&lt;br /&gt;
&lt;br /&gt;
In this set of computational experiments, you will characterise transition structures on potential energy surfaces for the Cope rearrangement and Diels Alder cycloaddition reactions.&lt;br /&gt;
&lt;br /&gt;
There are two parts:&lt;br /&gt;
&lt;br /&gt;
a) tutorial material: how to use the programs and methods,&lt;br /&gt;
&lt;br /&gt;
b) more challenging examples, with guidelines but fewer explicit instructions.&lt;br /&gt;
&amp;lt;!-- c) something open-ended, given as suggestions in outline, with some initial literature references. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- left part c) for now, incase there&#039;s too much material --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;#0000FF&amp;quot;&amp;gt;&#039;&#039;As a guideline, you should aim to complete part (a) in the first week of the experiment. Do not rush the tutorial material: once you have a good understanding of the computational techniques and how to work with the codes, you will find the remaining parts more straightforward and be better able to solve any problems you encounter. Try to write up sections on your wiki in outline as you go. Include the tutorial material in your write-up. If you are having problems, talk them through with a demonstrator or staff at the first opportunity.&#039;&#039;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the second year physical chemistry laboratory, you may have carried out dynamics calculations using model potential energy surfaces to explore transition states. In that computational experiment, the total energy could quickly be calculated for different geometries of a triatomic system using an analytical function of the atomic coordinates (for more information, see  for example [http://books.google.com/books?id=T8IZ1aa_FRkC&amp;amp;pg=RA1-PA36&amp;amp;lpg=RA1-PA36&amp;amp;dq=%22lake+eyring%22&amp;amp;source=web&amp;amp;ots=OXY00lSZ7D&amp;amp;sig=Ld_MTNwNjUDNGzB_5w1IxaMBMPU&amp;amp;hl=en&amp;amp;sa=X&amp;amp;oi=book_result&amp;amp;resnum=7&amp;amp;ct=result here] and [http://www.rsc.org/ejarchive/DC/1979/DC9796700007.pdf here]).&lt;br /&gt;
&lt;br /&gt;
In this experiment, you will be studying transition structures in larger molecules. There are no longer fitted formulae for the energy, and the molecular mechanics / force field methods that work well for structure determination cannot be used (in general) as they do not describe bonds being made and broken, and changes in bonding type / electron distribution. Instead, we use molecular orbital-based methods, numerically solving the Schrodinger equation, and locating transition structures based on the local shape of a potential energy surface. As well as showing what transition structures look like, reaction paths and barrier heights can also be calculated.&lt;br /&gt;
&lt;br /&gt;
Information that you might find useful in your wiki writeup is given in the [[Mod:Cheatsheet|cheatsheet]].&lt;br /&gt;
&lt;br /&gt;
==The Cope Rearrangement Tutorial==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- from http://www.nsccs.ac.uk/GaussianWorkshop2007/practical2/cope1.html by Sarah Wilsey, with permission--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;#0000FF&amp;quot;&amp;gt;&#039;&#039;This part of the module is described as a &#039;tutorial&#039; because it&#039;s an introduction to various computational techniques for locating transition structures on potential energy surfaces. It&#039;s different to the [[mod:gv_basic |GaussView Tutorial]] you can work through: it&#039;s an exercise where you&#039;re given specific instructions, then see if you can follow them, and also determine whether there are problems or better ways of carrying the exercise out. Please include this part in your write-up. Marks will be given for correct answers, the documentation showing how you got these, discussion, and how you went about solving any problems you encountered.&#039;&#039;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will use the Cope rearrangement of 1,5-hexadiene as an example of how to study a chemical reactivity problem.&lt;br /&gt;
&lt;br /&gt;
Your objectives are to locate the low-energy minima and transition structures on the C&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;H&amp;lt;sub&amp;gt;10&amp;lt;/sub&amp;gt; potential energy surface, to determine the preferred reaction mechanism.&lt;br /&gt;
&lt;br /&gt;
[[Image:pic1.jpg|right|thumb|Cope rearrangement]]&lt;br /&gt;
&lt;br /&gt;
This [3,3]-sigmatropic shift rearrangement has been the subject of numerous experimental and computational studies (e.g. Houk et al. {{DOI|10.1021/ja00101a078}}), and for a long time its mechanism (concerted, stepwise or dissociative) was the subject of some controversy. Nowadays it is generally accepted that the reaction occurs in a concerted fashion via either a &amp;quot;chair&amp;quot; or a &amp;quot;boat&amp;quot; transition structure, with the &amp;quot;boat&amp;quot; transition structure lying several kcal/mol higher in energy. The B3LYP/6-31G* level of theory has been shown to give activation energies and enthalpies in remarkably good agreement with experiment. In this tutorial we will show how these can be calculated using Gaussian.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic2a.jpg]]&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic2b.jpg]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Chair Transition State&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Boat Transition State&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimizing the Reactants and Products===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; In this section you will learn how to optimize a structure, symmetrize it to find its point group, calculate and visualize vibrational frequencies and correct potential energies in order to compare them with experimental values. It is assumed that you are already familiar with using the builder in GaussView. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(a) Using GaussView, draw a molecule of 1,5-hexadiene with an &amp;quot;anti&amp;quot; linkage (approximately a.p.p conformation) for the central four C atoms . Clean the structure using the &#039;&#039;&#039;Clean&#039;&#039;&#039; function under the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu.&lt;br /&gt;
&lt;br /&gt;
Now we will optimize the structure at the &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; level of theory. Select &#039;&#039;&#039;Gaussian&#039;&#039;&#039; under the &#039;&#039;&#039;Calculate&#039;&#039;&#039; menu, click on the &#039;&#039;&#039;Job Type&#039;&#039;&#039; tab and choose &#039;&#039;&#039;Optimization&#039;&#039;&#039;. The default method should already be Hartree Fock and the default basis set is 3-21G, so there should be no need to change these. You can check this by clicking on the &#039;&#039;&#039;Method&#039;&#039;&#039; tab. Submit the job by clicking on the &#039;&#039;&#039;Submit&#039;&#039;&#039; button at the bottom of the window and give the job a meaningful name (e.g. react_anti). &lt;br /&gt;
&lt;br /&gt;
When the job has finished, you will be asked if you want to open a file. Select &#039;&#039;&#039;Yes&#039;&#039;&#039; and choose the checkpoint (chk) file with the name of the job you have just run (e.g. react_anti.chk). This checkpoint file is a binary file that stores data calculated by Gaussian. The name of the chk file should have been assigned by default.  Once the file has been opened, click on the &#039;&#039;&#039;Summary&#039;&#039;&#039; button under the &#039;&#039;&#039;Results&#039;&#039;&#039; menu and make a note of the energy.&lt;br /&gt;
&amp;lt;!-- html markup for blue courier font &amp;lt;span class=&amp;quot;style6&amp;quot;&amp;gt; is silently ignored - change manually to bold --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Does your final structure have symmetry? Select &#039;&#039;&#039;Symmetrize&#039;&#039;&#039; under the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu (note that sometimes it is necessary to relax the search criteria under the &#039;&#039;&#039;Point Group&#039;&#039;&#039; menu). Make a note of the point group.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning:&#039;&#039;&#039; Clicking &#039;&#039;&#039;Symmetrize&#039;&#039;&#039; will change the geometry of your structure and cause a lot of the data to be discarded (including the energy data in the summary window). Instead, simply make a note of the point group that appears in the centre left of the &#039;&#039;&#039;Point Group Symmetry&#039;&#039;&#039; window. If it doesn&#039;t appear, incrementally relax the tolerance (centre of window) until it does. [[User:Tam10|Tam10]] ([[User talk:Tam10|talk]]) 16:27, 14 October 2015 (BST)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(b) Now draw another molecule of 1,5-hexadiene with a &amp;quot;gauche&amp;quot; linkage for the central four C atoms. Would you expect this structure to have a lower or a higher energy than the anti structure you have just optimized? Optimize the structure at the &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; level of theory and compare your final energy with that obtained in (a). Again, check if the molecule has symmetry and make a note of the point group.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(c) Normally, calculated activation energies and enthalpies use the lowest energy conformation of a reactant molecule as a reference. What would you have expected the lowest energy conformer of 1,5-hexadiene to be? Explain your reasoning, draw this structure and optimize it (if you have not already). A table containing the low energy conformers of 1,5-hexadiene and their point groups is shown in [[Mod:phys3#Appendix 1|Appendix 1]]. Draw gauche3 from the appendix and optimize it (again, if you have not already) and explain why this is the lowest conformer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(d) Compare the structures that you have optimized in a) and b) with those in the table and see if you can identify your structure.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(e) Draw the C&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; &#039;&#039;anti2&#039;&#039; conformation of 1,5-hexadiene (unless you have already located it). Optimize it at the &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; level of theory and make sure it has C&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; symmetry. Compare your final energy to the one given in the table. &lt;br /&gt;
&amp;lt;!-- [If you fail to locate the C&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; anti2 conformer, you can download the structure from [&#039;&#039;&#039;react_anti2.gjf&#039;&#039;&#039; here].]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(f) When you are happy that your structure is the same as the one in the table, reoptimize it at the &#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039; level (6-31G* is equivalent to 6-31G(d) by selecting &#039;&#039;&#039;DFT&#039;&#039;&#039; under the &#039;&#039;&#039;Method&#039;&#039;&#039; menu and &#039;&#039;&#039;B3LYP&#039;&#039;&#039; from the box with the functionals on the right-hand side. Now select &#039;&#039;&#039;Link 0&#039;&#039;&#039; and change the name of the chk file to the name of the DFT optimization that you are about to run. Note that it is always advisable to do this when re-using or modifying existing structures to ensure that the original chk file is not overwritten. Run the job and make a note of the energy. Now compare the final structures from the &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; calculation with that at the higher level of theory. How much does the overall geometry change?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; It is meaningless to compare the energy of different levels of theory. [[User:Tam10|Tam10]] ([[User talk:Tam10|talk]]) 16:10, 14 October 2015 (BST)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(g) The final energies given in the output file represent the energy of the molecule on the bare potential energy surface. To be able to compare these energies with experimentally measured quantities, they need to include some additional terms, which requires a frequency calculation to be carried out. The frequency calculation can also be used to characterize the critical point, i.e. to confirm that it is a minimum in this case: that all vibrational frequencies are real and positive.&lt;br /&gt;
&lt;br /&gt;
Starting from your optimized B3LYP/6-31G* structure, run a frequency calculation at the same level of theory. You can do this by selecting &#039;&#039;&#039;Frequency&#039;&#039;&#039; under the &#039;&#039;&#039;Job Type&#039;&#039;&#039; tab. Ensure that the method is still correctly specified under the &#039;&#039;&#039;Method&#039;&#039;&#039; tab (&#039;&#039;caution: on Windows, sometimes &#039;scrf=(solvent=water,check)&#039; is incorrectly added!&#039;&#039;) and then change the name of the chk file under the &#039;&#039;&#039;Link 0&#039;&#039;&#039; tab to the name of the frequency job that you are about to run. Run the job. Once the job has finished, open the log file this time. Select &#039;&#039;&#039;Vibrations&#039;&#039;&#039; under the &#039;&#039;&#039;Results&#039;&#039;&#039; menu. A list of all the vibrational frequencies modes should appear. Check that there are no imaginary frequencies, only real ones. You can visualize some of these vibrations under this menu and simulate the infrared spectrum.&lt;br /&gt;
&amp;lt;!--  [see: [http://educ.gaussian.com/visual/Vibs/html/VibsGaussview.htm Viewing Vibrational Frequencies in GaussView]].&lt;br /&gt;
... link dead 25th September 2008--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, select &#039;&#039;&#039;View File&#039;&#039;&#039; under the &#039;&#039;&#039;Results&#039;&#039;&#039; menu and open the output file in the visualizer. Scroll down to the section beginning &#039;&#039;&#039;Thermochemistry&#039;&#039;&#039;. Under the vibrational temperatures a list of energies should be printed. Make a note of (i) the sum of electronic and zero-point energies, (ii) the sum of electronic and thermal energies, (iii) the sum of electronic and thermal enthalpies, and (iv) the sum of electronic and thermal free energies. The first of these is the potential energy at 0 K including the zero-point vibrational energy (E = E&amp;lt;sub&amp;gt;elec&amp;lt;/sub&amp;gt; + ZPE), the second is the energy at 298.15 K and 1 atm of pressure which includes contributions from the translational, rotational, and vibrational energy modes at this temperature (E = E + E&amp;lt;sub&amp;gt;vib&amp;lt;/sub&amp;gt; + E&amp;lt;sub&amp;gt;rot&amp;lt;/sub&amp;gt; + E&amp;lt;sub&amp;gt;trans&amp;lt;/sub&amp;gt;), the third contains an additional correction for RT (H = E + RT) which is particularly important when looking at dissociation reactions, and the last includes the entropic contribution to the free energy (G = H - TS). It is important to make sure that you select the correct energy/enthalpy term to compare to your experimental values. Note that these corrections can also be calculated at other temperatures using the &#039;&#039;&#039;Temperature&#039;&#039;&#039; option in Gaussian, If you have time, try to re-calculate these quantities at 0 K as shown in the [[mod:gv_advanced | Advanced GaussView Tutorial]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimizing the &amp;quot;Chair&amp;quot; and &amp;quot;Boat&amp;quot; Transition Structures ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; In this section you will learn how to set up a transition structure optimization (i) by computing the force constants at the beginning of the calculation, (ii) using the redundant coordinate editor, and (iii) using QST2. You will also visualize the reaction coordinate and run the IRC (Intrinisic Reaction Coordinate) and calculate the activation energies for the Cope rearrangement via the &amp;quot;chair&amp;quot; and &amp;quot;boat&amp;quot; transition structures. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;chair&amp;quot; and &amp;quot;boat&amp;quot; transition structures for the Cope rearrangement are shown in [[Mod:phys3#Appendix 2|Appendix 2]]. Both consist of two C&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;H&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; allyl fragments positioned approximately 2.2 Å apart, one with C&amp;lt;sub&amp;gt;2h&amp;lt;/sub&amp;gt; symmetry and the other with C&amp;lt;sub&amp;gt;2v&amp;lt;/sub&amp;gt; symmetry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(a) Draw an allyl fragment (CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;CHCH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) and optimize it using the &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; level of theory. Your structure should look like one half of the transition structures shown below.&lt;br /&gt;
&lt;br /&gt;
Now open a new GaussView window by going to the &#039;&#039;&#039;File&#039;&#039;&#039; menu and selecting &#039;&#039;&#039;New&#039;&#039;&#039; and then &#039;&#039;&#039;Create MolGroup&#039;&#039;&#039;. Copy the optimized allyl structure from the first calculation by selecting &#039;&#039;&#039;Copy&#039;&#039;&#039; under the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu, and then paste it twice into the new window by selecting &#039;&#039;&#039;Paste&#039;&#039;&#039; and then &#039;&#039;&#039;Append Molecule&#039;&#039;&#039;. Now orient the two fragments so that they look roughly like the chair transition state below by using the &#039;&#039;&#039;Shift Alt keys + Left Mouse button&#039;&#039;&#039; to translate one fragment with respect to the other and the &#039;&#039;&#039;Alt key + Left Mouse button&#039;&#039;&#039; to rotate it. The distance between the terminal ends of the allyl fragments should be approximately 2.2 Å apart. Save this structure to a Gaussian input file with a meaningful name (e.g. chair_ts_guess).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If you&#039;re having trouble getting the bond lengths close enough to each other, an exact match can be achieved with &#039;&#039;&#039;Symmetrize&#039;&#039;&#039;. Get as close as you can to the structure, then open the &#039;&#039;&#039;Point Group&#039;&#039;&#039; window in the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu. Relax the tolerance until the appropriate symmetry is displayed on the left and click &#039;&#039;&#039;Symmetrize&#039;&#039;&#039;. You should now be able to match the bond lengths. [[User:Tam10|Tam10]] ([[User talk:Tam10|talk]]) 16:37, 14 October 2015 (BST)&lt;br /&gt;
&lt;br /&gt;
We are now going to optimize this transition state manually in two different ways. Transition state optimizations are more difficult than minimizations because the calculation needs to know where the negative direction of curvature (i.e. the reaction coordinate) is. If you have a reasonable guess for your transition structure geometry, then normally the easiest way to produce this information is to compute the force constant matrix (also known as the Hessian) in the first step of the optimization which will then be updated as the optimization proceeds. This is what we will try to do in the next section. However, if the guess structure for the transition structure is far from the exact structure, then this approach may not work as the curvature of the surface may be significantly different at points far removed from the transition structure. In some cases, a better transition structure can be generated by freezing the reaction coordinate (using &#039;&#039;&#039;Opt=ModRedundant&#039;&#039;&#039; and minimizing the rest of the molecule. Once the molecule is fully relaxed, the reaction coordinate can then be unfrozen and the transition state optimization is started again. One advantage of doing this, is that it may not be necessary to compute the whole Hessian once this has been done, and just differentiating along the reaction coordinate might give a good enough guess for the initial force constant matrix. This can save a considerable amount of time in cases where the force constant calculation is expensive.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(b) Use Hartree Fock and the default basis set 3-21G for parts (b) to (f). &lt;br /&gt;
&lt;br /&gt;
Create a new MolGroup (&#039;&#039;&#039;File → New → Create MolGroup&#039;&#039;&#039;) and copy and paste your guess structure into the window. Now set up a Gaussian optimization for a transition state. Go to the &#039;&#039;&#039;Gaussian&#039;&#039;&#039; menu under &#039;&#039;&#039;Calculate&#039;&#039;&#039; and click on the &#039;&#039;&#039;Job Type&#039;&#039;&#039; tab. Select &#039;&#039;&#039;Opt+Freq&#039;&#039;&#039; and then change &#039;&#039;&#039;Optimization to a Minimum&#039;&#039;&#039; to &#039;&#039;&#039;Optimization to a TS (Berny)&#039;&#039;&#039;. Choose to calculate the force constants &#039;&#039;&#039;Once&#039;&#039;&#039; and in the Additional keyword box at the bottom, type &#039;&#039;&#039;Opt=NoEigen&#039;&#039;&#039;. The latter stops the calculation crashing if more than one imaginary frequency is detected during the optimization which can often happen if the guess transition structure is not good enough. Submit the job. If the job completes successfully, you should have optimized to the structure shown in [[Mod:phys3#Appendix 2|Appendix 2]] and the frequency calculation should give an imaginary frequency of magnitude 818 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Animate the vibration and ensure that it is the one corresponding to the Cope rearrangement.&lt;br /&gt;
&lt;br /&gt;
When performing an optimisation and subsequent frequency calculation, the geometry is at a minimum energy when all the vibrational frequencies are positive. When checking for a TS, there must be only one imaginary frequency. Explain briefly in simple terms, what does this imaginary frequency represent, and where does it come from?&lt;br /&gt;
Hint: think of the role of the force constant in a one dimensional quantum harmonic oscillator, covered in the QM3 course&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(c) Now we will try optimizing the transition structure again using the frozen coordinate method. Create a new MolGroup (&#039;&#039;&#039;File → New → Create MolGroup&#039;&#039;&#039;) and copy and paste your guess structure into the window again. Now select &#039;&#039;&#039;Redundant Coord Editor&#039;&#039;&#039; from the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu. Click on the highlighted file icon at the top left-hand corner (Create a New Coordinate) and a line should appear below saying &#039;&#039;&#039;Add Unidentified (?, ?, ?, ?)&#039;&#039;&#039;. Now go back to the GaussView window and select two of the terminal carbons from the allyl fragments which form/break a bond during the rearrangement. Return to the coordinate editor and select &#039;&#039;&#039;Bond&#039;&#039;&#039; instead of &#039;&#039;&#039;Unidentified&#039;&#039;&#039; and select &#039;&#039;&#039;Freeze Coordinate&#039;&#039;&#039; instead of &#039;&#039;&#039;Add&#039;&#039;&#039;. Now click on the icon again to generate another coordinate. This time select the opposite two terminal atoms and again select &#039;&#039;&#039;Bond&#039;&#039;&#039; and &#039;&#039;&#039;Freeze Coordinate&#039;&#039;&#039;. Click OK. Now set up the optimization as if it were a minimum and you should see the option &#039;&#039;&#039;Opt=ModRedundant&#039;&#039;&#039; already included in the input line. Submit the job.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;  GaussView allows you to produce an input file with the frozen coordinate specified as e.g. &amp;lt;tt&amp;gt;B 5 1 2.200000 F&amp;lt;/tt&amp;gt;. Unfortunately, a recent update to the Gaussian program means it does not recognise this syntax, and just ignores this line. This means that the coordinate ends up being optimised rather than frozen. Therefore do not use this method, but ensure the guess structure has suitable guess transition bond distances(~2.2 Å) using the &#039;&#039;Modify Bond&#039;&#039; tool in GaussView --[[User:Rzepa|Rzepa]] 14:39, 29 October 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; If you set the coordinate distance (i.e. B 5 1 2.2 B) and freeze it (i.e. B 5 1 F) as separate inputs to the modredundant editor, it appears to work as expected. (Lee)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 3:&#039;&#039;&#039; If you are having trouble with this section (bonds not freezing) open your input file in Notepad or Notepad++ and go to the bottom of the file. You will see the lines that you would expect to freeze the bonds there. Make sure the line matches the notation in Note 2 (B 5 1 F, for example will freeze the bond between atoms 5 and 1). [[User:Tam10|Tam10]] ([[User talk:Tam10|talk]]) 16:09, 14 October 2015 (BST)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(d) When the job has finished, open the chk file. You should find that the optimized structure looks a lot like the transition you optimized in section (b), except the bond forming/breaking distances are fixed to 2.2 Å. Now we are going to optimize them too. Open the &#039;&#039;&#039;Redundant Coord Editor&#039;&#039;&#039; from the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu again and create a new coordinate as before by clicking on the icon, Select one of the bonds that was previously frozen and this time choose &#039;&#039;&#039;Bond&#039;&#039;&#039; instead of &#039;&#039;&#039;Unidentified&#039;&#039;&#039; and &#039;&#039;&#039;Derivative&#039;&#039;&#039; instead of &#039;&#039;&#039;Add&#039;&#039;&#039;. Repeat the procedure for the other bond. This time you need to set up a transition state optimization but we are not going to calculate the force constants as we did in section (b) (so we leave this option as &#039;&#039;&#039;Never&#039;&#039;&#039;), instead we will use a normal guess Hessian modified to include the information about the two coordinates we are differentiating along. Change the name of the chk file in &#039;&#039;&#039;Link 0&#039;&#039;&#039; if you do not want to write over the previous calculation and submit the job. When the calculation has finished, open the chk file, check the bond forming/bond breaking bond lengths and compare the structure to the one you optimized in section (b).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; For calculations using the redundant coord editor. Once the calculations have been run; due a bug which was caused by a recent update in gaussian. You may get an error saying &#039;bad data line x&#039; in the .chk point file. by convention gausview uses the .chk to open for the next step, but this will not open due to the error, the output is a binary file, so it becomes very difficult to find and fix. This file contains more data, particularly orbital data. However for this section we just need the geometries to continue which are sorted in the human readable log file which is still produced with no error in the output. Therefor if you get this error continue to the next step with log file. A new .chk file will be produced in the next step. [[User:NF710|NF710]] ([[User talk:NF710|talk]]) 14:01, 29 October 2015 (BST)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(e) Now we will optimize the boat transition structure. We will do this using the &#039;&#039;&#039;QST2&#039;&#039;&#039; method. In this method, you can specify the reactants and products for a reaction and the calculation will interpolate between the two structures to try to find the transition state between them. You must make sure that your reactants and products are numbered in the same way. Therefore, although our reactants and products are both 1,5-hexadiene, we will need to manually change the numbering for the product molecule so that it corresponds to the numbering obtained if our reactant had rearranged.&lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[Image:pic3.jpg|200px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open the chk file corresponding to the optimized C&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; reactant molecule (&#039;&#039;anti2&#039;&#039; in [[Mod:phys3#Appendix 1|Appendix 1]]). Now open a second window and create a new MolGroup. Copy the optimized reactant molecule into the new window. In the same window, now select &#039;&#039;&#039;File → New → Add to MolGroup&#039;&#039;&#039;. The original molecule should disappear and a green circle should appear at the top left-hand corner with a &#039;&#039;&#039;2&#039;&#039;&#039; next to it. Clicking on the down arrow by the &#039;&#039;&#039;2&#039;&#039;&#039; will take you back to the original window and you will see your molecule again. This is how we read multiple geometries into GaussView. Go back to window &#039;&#039;&#039;2&#039;&#039;&#039;, and copy and paste the reactant molecule a second time. This is going to be the product molecule and will be the molecule on which we need to change the numbering. If you now click on the icon showing two molecules side by side, then you can view both molecules simultaneously.&lt;br /&gt;
&lt;br /&gt;
Now go to the &#039;&#039;&#039;View&#039;&#039;&#039; menu and select &#039;&#039;&#039;Labels&#039;&#039;&#039; so that you can see the numbering on both structures. Orient the two structures separately so they look something like the following:&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic4a.jpg|200px]]&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic4b.jpg|200px]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Reactant&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Product&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now click on the product structure. Go to the &#039;&#039;&#039;Edit&#039;&#039;&#039; menu and select &#039;&#039;&#039;Atom List&#039;&#039;&#039;. Starting from Atom 1 on the reactant, go through and renumber all the atoms on the Product so that they match the reactant molecule, e.g. for the numbering above you would start by changing atom &#039;&#039;&#039;6&#039;&#039;&#039; on the product molecule to atom &#039;&#039;&#039;3&#039;&#039;&#039;. The other atom numbers will update as you do this so make sure you do it in the correct order. (Note: Start numbering at 1 and go up, i.e. do not order 5 before 3 to avoid problems with the numbers updating --[[User:Jrc10|Jrc10]] 15:13, 31 January 2013 (UTC)) At the end, the numbering on your two molecules should correspond to each other in the following way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic5a.jpg|200px]]&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic5b.jpg|200px]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Reactant&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Product&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we will set up the first &#039;&#039;&#039;QST2&#039;&#039;&#039; calculation. Go to the &#039;&#039;&#039;Gaussian&#039;&#039;&#039; menu and select &#039;&#039;&#039;Job Type&#039;&#039;&#039; as &#039;&#039;&#039;Opt+Freq&#039;&#039;&#039;, and optimize to a transition state. This time you will have two options - &#039;&#039;&#039;TS (Berny)&#039;&#039;&#039; which we used in the previous calculations and &#039;&#039;&#039;TS (QST2)&#039;&#039;&#039;. Select &#039;&#039;&#039;TS (QST2)&#039;&#039;&#039;. Submit the job.&lt;br /&gt;
&lt;br /&gt;
You will find that the job fails. To see why, open the chk file you created and view the structure. You will see that it looks a bit like the chair transition structure but more dissociated. In fact when the calculation linearly interpolated between the two structures, it simply translated the top &#039;&#039;&#039;allyl&#039;&#039;&#039; fragment and did not even consider the possibility of a rotation around the central bonds. It is clear that the QST2 method is never going to locate the boat transition structure if we start from these reactant and product structures.&lt;br /&gt;
&lt;br /&gt;
Now go back to the original input file where you set up your QST2 calculation. We will now modify the reactant and product geometries so that they are closer to the boat transition structure. Click on the reactant molecule first and select the central &#039;&#039;&#039;C-C-C-C&#039;&#039;&#039; dihedral angle (i.e. &#039;&#039;&#039;C2-C3-C4-C5&#039;&#039;&#039; for the molecule above) and change the angle to 0&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;. Then select the inside &#039;&#039;&#039;C-C-C&#039;&#039;&#039; (i.e. &#039;&#039;&#039;C2-C3-C4&#039;&#039;&#039; and &#039;&#039;&#039;C3-C4-C5&#039;&#039;&#039; for the molecule above) and reduce them to 100&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;. Do the same for the product molecule. Your reactant and product molecules should now look like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic6a.jpg|200px]]&lt;br /&gt;
|&lt;br /&gt;
[[Image:pic6b.jpg|200px]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Reactant&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | &#039;&#039;Product&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set up the QST2 calculation again, renaming both the chk file under &#039;&#039;&#039;Link 0&#039;&#039;&#039; and the input file. Run the job again. This time it should converge to the boat transition structure. Check that there is only one imaginary frequency and visualize its motion.&lt;br /&gt;
&lt;br /&gt;
The object of this exercise is to illustrate that although the QST2 method is has some advantages because it is fully automated, it can often fail if your reactants and products are not close to the transition structure. There is another method, the &#039;&#039;&#039;QST3&#039;&#039;&#039; method, that allows you to input the geometry of a guess transition structure also and this can often be more reliable. If you have time, you can try generating a guess boat transition structure and see if you can get the calculation to converge using the original reactant and product molecules. Remember to check the atom numbers in the transition structure are in the right order.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(f) Take a look at your optimized chair and boat transition structures. Which conformers of 1,5-hexadiene do you think they connect? You will find that it is almost impossible to predict which conformer the reaction paths from the transitions structures will lead to. However, there is a method implemented in Gaussian which allows you to follow the minimum energy path from a transition structure down to its local minimum on a potential energy surface. This is called the &#039;&#039;&#039;Intrinsic Reaction Coordinate&#039;&#039;&#039; or &#039;&#039;&#039;IRC&#039;&#039;&#039; method. This creates a series of points by taking small geometry steps in the direction where the gradient or slope of the energy surface is steepest. &lt;br /&gt;
&lt;br /&gt;
Open the chk file for one of your optimized chair transition structures. Under the &#039;&#039;&#039;Gaussian&#039;&#039;&#039; menu, select &#039;&#039;&#039;IRC&#039;&#039;&#039; under the &#039;&#039;&#039;Job Type&#039;&#039;&#039; tab. You will be presented with a number of options. The first is to decide whether to compute the reaction coordinate in one or both directions. As our reaction coordinate is symmetrical, we will only choose to compute it in the forward direction. Normally you would do both forward and reverse, either in one job or in two separate jobs. You are also given the option to calculate the force constants once, at every step along the IRC or to read them from the chk file, in this case choose calculate always. You would use the latter option if you have previously run a frequency calculation. &lt;br /&gt;
&amp;lt;!--(The &#039;&#039;&#039;IRCMax&#039;&#039;&#039; option can also be specified here. This takes a transition structure as its input, and finds the maximum energy along a specified reaction path, taking into account zero-point energy etc., and produces all the quantities needed for a variational transition state theory calculation. We will leave this unchecked for the purposes of this exercise.)--&amp;gt; &lt;br /&gt;
The final option to consider is the number of points along the IRC. The default is &#039;&#039;&#039;6&#039;&#039;&#039; but this is normally never enough. Let&#039;s change this to 50 and see how the calculation progresses. Change the name of the chk file under &#039;&#039;&#039;Link 0&#039;&#039;&#039; and submit the job. The job will take a while so now is a good time to take a coffee break...&lt;br /&gt;
&lt;br /&gt;
When the IRC calculation has finished, open the chk file with all the intermediate geometries and see how the calculation has progressed. You will find that it hasn&#039;t reached a minimum geometry yet. This leaves you three options: (i) you can take the last point on the IRC and run a normal minimization; (ii) you can restart the IRC and specify a larger number of points until it reaches a minimum; (iii) you can redo the IRC specifying that you want to compute the force constants at every step. There are advantages and disadvantages to each of these approaches. Approach (i) is the fastest, but if you are not close enough to a local minimum, you may end up in the wrong minimum. Approach (ii) is more reliable but if too many points are needed, then you can also veer off in the wrong direction after a while and end up at the wrong structure. Approach (iii) is the most reliable but also the most expensive and is not always feasible for large systems. You can try any or all of these approaches and see which conformation you end up in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(g) Finally we need to calculate the activation energies for our reaction via both transition structures. To do this we will need to reoptimize the chair and boat transition structures using the &#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039; level of theory and to carry out frequency calculations. You can start from the HF/3-21G optimized structures. Once the calculations have converged, compare both the geometries and the difference in energies between the reactants and transition states at the two levels of theory. What you should find is that the geometries are reasonably similar, but the energy differences are markedly different.&lt;br /&gt;
&amp;lt;!-- This is a common observation in reactivity problems, i.e. the potential energy landscape is relatively well-defined even at low levels of theory (e.g. HF/3-21G), but to get the energies correct, you need a reasonably sized basis set and some sort of correlation energy to be included.--&amp;gt;&lt;br /&gt;
As a consequence of this, it is often more computational efficient to map the potential energy surface using the low level of theory first and then to reoptimize at the higher level as we have done in this exercise.&lt;br /&gt;
&lt;br /&gt;
The experimental activation energies are 33.5 ± 0.5 kcal/mol via the chair transition structure and 44.7 ± 2.0 kcal/mol via the boat transition structure at 0 K. If you take the values computed at 0 K, how close are they to the experimental values? You can also find the energies with thermal correction at 298.15 K under the Thermochemistry data in the output file. If you have time, you can recompute them at higher temperature. Alternatively, you can use the utility program &#039;&#039;&#039;FreqChk&#039;&#039;&#039; to obtain energies at a different temperature. This only requires the chk file from a frequency calculation and allows you to retrieve frequency and thermochemistry data as well as calculating them with an alternate temperature, pressure, scale factor, and/or isotope substitutions. The &#039;&#039;&#039;FreqChk&#039;&#039;&#039; utility program can be accessed from &#039;&#039;&#039;Gaussian09W&#039;&#039;&#039;. Launch &#039;&#039;&#039;Gaussian09W&#039;&#039;&#039;. Select &#039;&#039;&#039;utilities&#039;&#039;&#039; from the menu and click on &#039;&#039;&#039;FreqChk&#039;&#039;&#039; to launch the utility program. You will be prompted for a chk file. Follow the instructions from this [http://www.gaussian.com/g_tech/g_ur/u_freqchk.htm web link] to proceed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Appendix 1 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; 3D models of all the conformers in the table below are given &#039;&#039;&#039;[[Mod:phys3_appendix1|here]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| width=&amp;quot;150&amp;quot; | &#039;&#039;&#039;Conformer&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;150&amp;quot; | &#039;&#039;&#039;Structure&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; | &#039;&#039;&#039;Point Group&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;200&amp;quot; | &#039;&#039;&#039;Energy/Hartrees &amp;lt;br /&amp;gt;HF/3-21G&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;200&amp;quot; | &#039;&#039;&#039;Relative Energy/kcal/mol&#039;&#039;&#039;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche1.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.68772&lt;br /&gt;
| 3.10&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche2&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche2.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69167&lt;br /&gt;
| 0.62&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche3&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche3.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69266&lt;br /&gt;
| 0.00&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche4&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche4.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69153&lt;br /&gt;
| 0.71&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche5&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche5.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.68962&lt;br /&gt;
| 1.91&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;gauche6&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:gauche6.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.68916&lt;br /&gt;
| 2.20&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;anti1&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:anti1.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69260&lt;br /&gt;
| 0.04&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;anti2&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:anti2.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69254&lt;br /&gt;
| 0.08&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;anti3&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:anti3.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;2h&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.68907&lt;br /&gt;
| 2.25&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;anti4&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
[[Image:anti4.jpg|150px]]&lt;br /&gt;
| C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
| -231.69097&lt;br /&gt;
| 1.06&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Appendix 2 ===&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:appendix2a.jpg|300px]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;C&amp;lt;sub&amp;gt;2h&amp;lt;/sub&amp;gt; Chair Transition State&#039;&#039;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:appendix2b.jpg|300px]]&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &#039;&#039;C&amp;lt;sub&amp;gt;2v&amp;lt;/sub&amp;gt; Boat Transition State&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Results Table ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Summary of energies (in hartree) &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
!colspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;HF/3-21G&#039;&#039;&#039;&lt;br /&gt;
!colspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Electronic energy&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Sum of electronic and zero-point energies&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Sum of electronic and thermal energies&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Electronic energy&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Sum of electronic and zero-point energies&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Sum of electronic and thermal energies&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 0 K&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 298.15 K&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 0 K&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 298.15 K&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Chair TS&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.619322&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.466705&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.461346&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.556983&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.414919&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.408998&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Boat TS&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.602802&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.450929&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.445300&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.543093&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.402340&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.396006&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Reactant (&#039;&#039;anti2&#039;&#039;)&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.692535&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.539539&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -231.532566&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.611710&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.469203&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | -234.461856&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt; *1 hartree = 627.509 kcal/mol  &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Summary of activation energies (in kcal/mol) &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;HF/3-21G&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;Expt.&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039; &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 0 K &#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 298.15 K&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 0 K&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 298.15 K&#039;&#039;&#039;&lt;br /&gt;
| width=&amp;quot;125&amp;quot; align=&amp;quot;center&amp;quot; | &#039;&#039;&#039;at 0 K&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ΔE (Chair)&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 45.70&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 44.69&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 34.06&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 33.17&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 33.5 ± 0.5&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ΔE (Boat)&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 55.60&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 54.76&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 41.96&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 41.32&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 44.7 ± 2.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The Diels Alder Cycloaddition==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;In this exercise, you will characterise transition structures using any of the methods described above in the tutorial: the choice is up to you. In addition, you will look at the shape of some of the molecular orbitals. To help you structure your report, there is a data/discussion sheet at the end of this section.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:mb_da1.jpg |right|thumb|Diels Alder cycloaddition]]&lt;br /&gt;
The Diels Alder reaction belongs to a class of reactions known as pericyclic reactions. The π orbitals of the dieneophile are used to form new σ bonds with the π orbitals of the diene. Whether or not the reactions occur in a concerted stereospecific fashion (&#039;&#039;&#039;allowed&#039;&#039;&#039;) or not (&#039;&#039;&#039;forbidden&#039;&#039;&#039;) depends on the number of π electrons involved. In general the HOMO/LUMO of one fragment interacts with the HOMO/LUMO of the other reactant to form two new bonding and anti-bonding MOs. The nodal properties allow one to make predictions according to the following rule:&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;If the HOMO of one reactant can interact with the LUMO of the other reactant then the reaction is &#039;&#039;&#039;allowed&#039;&#039;&#039;.&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;The HOMO-LUMO can only interact when there is a significant overlap density. If the orbitals have different symmetry properties then no overlap density is possible and the reaction is &#039;&#039;&#039;forbidden&#039;&#039;&#039;.&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
If the dieneophile is substituted, with substituents that have π orbitals that can interact with the new double bond that is being formed in the product, then this interaction can stabilise the regiochemistry (i.e. head to tail versus tail to head) of the reaction. In this exercise you will study the nature of the transition structure for the Diels Alder reaction, both for the prototypical reaction and for the case where both diene and dieneophile carry substituents, and where secondary orbital effects are possible. Clearly, the factors that control the nature of the transition state are quantum mechanical in origin and thus we shall use methods based upon quantum chemistry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Shown on the right is a diagram of the transition state for the Diels-Alder reaction between ethylene and butadiene. The ethylene approaches the cis form of butadiene from above.&lt;br /&gt;
[[Image:mb_da2.jpg |right|thumb|Ethylene+Butadiene cycloaddition]]&lt;br /&gt;
&lt;br /&gt;
Before beginning our quantitative study, it is helpful to discuss the interaction of the π orbitals in a simple qualitative way. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;You will confirm some of these considerations in your computations.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The principal orbital interactions involve the π/ π* orbitals of ethylene and the HOMO/LUMO of butadiene.  It is referred to as [4s + 2s] since one has 4 π  orbitals in the π system of butadiene. The orbitals of ethylene and butadiene and ethylene can be classified as symmetric &#039;&#039;&#039;s&#039;&#039;&#039; or anti-symmetric &#039;&#039;&#039;a&#039;&#039;&#039; with respect to the plane of symmetry shown.&lt;br /&gt;
&lt;br /&gt;
The HOMO of ethylene and the LUMO of butadiene are both &#039;&#039;&#039;s&#039;&#039;&#039; (symmetric with respect to the reflection plane) and the LUMO of ethylene and the HOMO of butadiene are both &#039;&#039;&#039;a&#039;&#039;&#039;. Thus it is the HOMO-LUMO pairs of orbital that interact, and energetically, the HOMO of the resulting adduct with two new σ bonds is &#039;&#039;&#039;a&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exercise ===&lt;br /&gt;
&lt;br /&gt;
Use the the AM1 semi-empirical molecular orbital method for these calculations.&lt;br /&gt;
&lt;br /&gt;
i) Use GaussView to build cis butadiene, and optimize the geometry using Gaussian. Plot the HOMO and LUMO of cis butadiene and determine its symmetry (symmetric or anti-symmetric) with respect to plane. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There are two ways to do this in GaussView. One is: Select &#039;&#039;&#039;Edit→MOs&#039;&#039;&#039;. Select the HOMO and the LUMO from the MO list (highlights it yellow). Click the button &#039;&#039;&#039;Visualise&#039;&#039;&#039; (not Calculation), then &#039;&#039;&#039;Update&#039;&#039;&#039;. Alternately, having calculated the surface for this orbital, you can display it in the main GaussView window for the molecule, from the &#039;&#039;&#039;Results→Surfaces&#039;&#039;&#039; menu. Select &#039;&#039;&#039;Surface Actions→Show Surface&#039;&#039;&#039;. Having displayed the surface this way, you can also select &#039;&#039;&#039;View→Display Format→Surface&#039;&#039;&#039;, and change &#039;&#039;&#039;Solid&#039;&#039;&#039; to &#039;&#039;&#039;Mesh&#039;&#039;&#039;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ii) Computation of the Transition State geometry for the prototype reaction and an examination of the nature of the reaction path.&lt;br /&gt;
&lt;br /&gt;
[[Image:mb_da3.jpg |right|thumb|]]&lt;br /&gt;
&lt;br /&gt;
The transition structure has an envelope type structure, which maximizes the overlap between the ethylene π orbitals and the π system of butadiene. One way to obtain the starting geometry is to build the bicyclo system (b) and then remove the -CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;-CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;- fragment. One must then guess the interfragment distance (dashed lines) and optimize the structure, but use any method you wish, based on the tutorial above, to characterise the transition structure. Confirm you have obtained a transition structure for the Diels Alder reaction!&lt;br /&gt;
&lt;br /&gt;
[[Image:mb_da4.jpg |right|thumb|guessing the transition structure]]&lt;br /&gt;
&lt;br /&gt;
Once you have obtained the correct structure, plot the HOMO as in (i). Rotate the molecule so that the symmetry and nodal properties of the system can be interpreted, and save a copy of the image.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(iii) To Study the regioselectivity of the Diels Alder Reaction&lt;br /&gt;
&lt;br /&gt;
Cyclohexa-1,3-diene &#039;&#039;&#039;1&#039;&#039;&#039; undergoes facile reaction with maleic anhydride &#039;&#039;&#039;2&#039;&#039;&#039; to give primarily the endo adduct. The reaction is supposed to be kinetically controlled so that the exo transition state should be higher in energy.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bearpark_pic_edit_by_jm906.JPG |right|thumb|regioslectivity]]&lt;br /&gt;
&lt;br /&gt;
Locate the transition structures for both 3 and 4. Compare the energies of the endo and exo forms.&lt;br /&gt;
&lt;br /&gt;
Measure the bond lengths of the partly formed σ C-C bonds and the other C-C distances. Make a sketch with the important bond lengths. Measure the orientation, (C-C through space distances between the -(C=O)-O-(C=O)- fragment of the maleic anhydride and the C atoms of the “opposite” -CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;-CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;- for the exo and the “opposite” -CH=CH- for the endo). The structure must be a compromise between steric repulsions of the -CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;-CH&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;- fragment and the maleic anhydride for the exo versus secondary orbital interactions between the π  systems of -CH=CH- and -(C=O)-O-(C=O)- fragment for the endo.&lt;br /&gt;
&lt;br /&gt;
Plot the HOMO as in the previous exercise. Examine carefully the nodal properties of the HOMO between the -(C=O)-O-(C=O)- fragment and the remainder of the system. What can you conclude about the so called “secondary orbital overlap effect”?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screen images can be saved from the GaussView &#039;&#039;&#039;File&#039;&#039;&#039; menu.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For cis butadiene and ethylene&#039;&#039;: &amp;lt;br&amp;gt;&lt;br /&gt;
Plot the HOMO and LUMO and determine the symmetry (symmetric or anti-symmetric) with respect to the plane.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For the ethylene+cis butadiene transition structure&#039;&#039;:&amp;lt;br&amp;gt;&lt;br /&gt;
Sketch HOMO and LUMO, labeling each as symmetric or anti symmetric.&lt;br /&gt;
&lt;br /&gt;
Show the geometry of the transition structure, including the bond-lengths of the partly formed σ C-C bonds. &lt;br /&gt;
&lt;br /&gt;
What are typical sp&amp;lt;SUP&amp;gt;3&amp;lt;/SUP&amp;gt; and sp&amp;lt;SUP&amp;gt;2&amp;lt;/SUP&amp;gt; C-C bondlengths? What is the van der Waals radius of the C atom? What can you conclude about the C-C bond length of the partly formed σ C-C bonds in the TS.&lt;br /&gt;
&lt;br /&gt;
Illustrate the vibration that corresponds to the reaction path at the transition state. &lt;br /&gt;
Is the formation of the two bonds synchronous or asynchronous?&lt;br /&gt;
How does this compare with the lowest positive frequency?&lt;br /&gt;
&lt;br /&gt;
Is the HOMO at the transition structure &#039;&#039;&#039;s&#039;&#039;&#039; or &#039;&#039;&#039;a&#039;&#039;&#039;?&lt;br /&gt;
&lt;br /&gt;
Which MOs of butadiene and ethylene have been used to form this MO?&lt;br /&gt;
Explain why the reaction is allowed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For the cyclohexa-1,3-diene reaction with maleic anhydride&#039;&#039;:&amp;lt;br&amp;gt;&lt;br /&gt;
Give the relative energies of the exo and endo transition structures.&lt;br /&gt;
Comment on the structural difference between the endo and exo form. Why do you think that the exo form could be more strained?&lt;br /&gt;
Examine carefully the nodal properties of the HOMO between the -(C=O)-O-(C=O)- fragment and the remainder of the system. What can you conclude about the so-called “secondary orbital overlap effect”?&lt;br /&gt;
(There is some discussion of this in Ian Fleming&#039;s book &#039;Frontier Orbitals and Organic Chemical Reactions&#039;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Further discussion&#039;&#039;:&amp;lt;br&amp;gt;&lt;br /&gt;
What effects have been neglected in these calculations of Diels Alder transition states?&lt;br /&gt;
&lt;br /&gt;
Look at published examples and investigate further if you have time.&lt;br /&gt;
(e.g. {{DOI|10.1021/jo0348827}})&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;!--See also: [[Mod:timetable|Timetable]], [[Mod:lectures|Intro lecture]], [[mod:programs|Programs]], [[mod:organic|Module 1]], [[Mod:inorganic|Module 2]], [[Mod:phys3|Module 3]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
© 2008-2013, Imperial College London&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:stereo&amp;diff=821991</id>
		<title>Mod:stereo</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:stereo&amp;diff=821991"/>
		<updated>2025-09-17T13:42:51Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:stereo to Mod:stereo without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= &#039;&#039;&#039;Stereoscopic (3D) Projection&#039;&#039;&#039; {{DOI|bp9p}} =&lt;br /&gt;
&lt;br /&gt;
An overview of stereo formats can be found at  https://www.sview.ru/en/help/input/  LT B10 (MSRH, Chemistry) is equipped with a stereoscopic projector configuration used with polarized glasses stored in the projection booth, which allow viewing of 3D images and video. You will need swipe-card access to enter. Check that the battery in the glasses has charge before attempting to use!&lt;br /&gt;
&lt;br /&gt;
To start, select both projectors from the lectern’s control panel by first selecting the PC as the output and then selecting “&#039;&#039;&#039;Enable 3D&#039;&#039;&#039;”. In order to view the output, the applications that will be used to display 3D content must be set up to use the &#039;&#039;&#039;Quad-Buffer OpenGL&#039;&#039;&#039; viewing method.    &lt;br /&gt;
&lt;br /&gt;
If you are aware of any interesting software applications not listed below,  do please consider adding them to this list.&lt;br /&gt;
&lt;br /&gt;
== Testing Stereo projection ==&lt;br /&gt;
#Download Stereoscopic Player: http://www.3dtv.at/Downloads/Index_en.aspx &lt;br /&gt;
# To play sample stereo videos, install  http://www.microsoft.com/windows/windowsmedia/player/11/default.aspx)&lt;br /&gt;
#Get a stereo jpg:  http://www.chasm.com/images.htm&lt;br /&gt;
#Install the Stereoscopic Player, open truck.jpg, and choose side-by-side, left eye first for the image format.&lt;br /&gt;
#In the View menu, change the stereo view method to OpenGl quad-buffer stereo.&lt;br /&gt;
&lt;br /&gt;
==  [http://accelrys.com/products/collaborative-science/biovia-discovery-studio/visualization-download.php  Discovery Studio (DS)] ==&lt;br /&gt;
&lt;br /&gt;
Discovery Studio is a comprehensive software suite for analyzing and modelling molecular structures, sequences, and other data of relevance to life science researchers. The product includes functionality for viewing and editing data along with tools for performing basic data analysis.&lt;br /&gt;
&lt;br /&gt;
This application is already setup to output via the default&lt;br /&gt;
setting of the graphics adapter. Please ensure that:&lt;br /&gt;
&lt;br /&gt;
•   Hardware Stereo Type is selected in the Molecule Window section of the program preferences as shown below (Click Edit and then Preferences):&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds_image_1.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
•   There is a tick in the Stereo option in the View menu as below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds_image_2.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
== [http://www.cambridgesoft.com/support/ProductHomePage.aspx?KBCatID=112 Chem3D] ==&lt;br /&gt;
&lt;br /&gt;
Chem3D is a powerful desktop modelling program that enables synthetic chemists and biologists to generate 3D models of small molecules&lt;br /&gt;
and biochemical compounds. College has a site-wide license. &lt;br /&gt;
&lt;br /&gt;
To access the Chem3D program settings, click on&lt;br /&gt;
&#039;&#039;&#039;File&#039;&#039;&#039;, then &#039;&#039;&#039;Preferences&#039;&#039;&#039; to display the options on the right. Ensure that the Use Back Buffer for Refresh checkbox is ticked, then click Apply and then OK (see below):&lt;br /&gt;
&lt;br /&gt;
[[File:Chem_bio3d_image1.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Use the OpenGL tab&lt;br /&gt;
&lt;br /&gt;
[[File:Chem_bio3d_image2.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
==  [http://www.ks.uiuc.edu/Research/vmd VMD] ==&lt;br /&gt;
&lt;br /&gt;
VMD is a molecular visualization program for displaying, animating, and analyzing large bio molecular systems using 3-D graphics. Pleaseuse the display settings shown in the image below to render output via the 3D projector:&lt;br /&gt;
&lt;br /&gt;
[[Image:Vmd_image1.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
== [http://www.ccdc.cam.ac.uk/solutions/csd-system/components/mercury  CCDC Mercury] ==&lt;br /&gt;
&lt;br /&gt;
This is a component of the Cambridge Structural Database System (CSD database) which provides a range of tools for 3D structure visualization, the exploration of crystal packing and the statistical analysis of CSD search data. The Mercury viewer is free. The CSD database has a College-wide license.&lt;br /&gt;
&lt;br /&gt;
To access the Mercury program display settings, click the top menu and select &#039;&#039;&#039;Display/Display options/Stereo&#039;&#039;&#039;.  Ensure &#039;&#039;&#039;hardware stereo&#039;&#039;&#039; is enabled (see below): &lt;br /&gt;
&lt;br /&gt;
[[File:Mercury_image1.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
To set the 3D effect to emerge out of the screen, set the focal point to a +ve value.  Adjustments can also be made with the Separation to create the optimal effect.&lt;br /&gt;
&lt;br /&gt;
== [http://www.knotplot.com/ Knotplot] ==&lt;br /&gt;
&lt;br /&gt;
This programs allows  3D visualization of an enormous variety of knots and other topological objects. To initialise stereo, the program has to be started from the command line rather than the more usual  start menu or application double click. A shortcut which invokes this flag is available on the desktop. A college-wide license could be purchased upon demand.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;cmd: knotplot  -stereo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [http://www.3dtv.at/products/player/index_en.aspx Stereoscopic Player] ==&lt;br /&gt;
Stereoscopic Player is a 3D movie and stereo JPEG player. It allows you to&lt;br /&gt;
play stereoscopic videos and DVDs (external decoder required) and also allows you to watch live video from a capture device. It can handle most media formats, for example AVI, MPEG, WMV, ASF and MOV. Videos can be coded in several different stereoscopic formats.&lt;br /&gt;
&lt;br /&gt;
Please use the display settings shown in the image below to render output from Stereoscopic player via the 3D projector.&lt;br /&gt;
&lt;br /&gt;
YouTube has a  3D video selection, see https://www.youtube.com/results?search_query=yt3d&lt;br /&gt;
&lt;br /&gt;
[[File:Stereoscopic_image1.jpg|400px]]&lt;br /&gt;
=== XStereo-player ===&lt;br /&gt;
&lt;br /&gt;
Another program that supports a variety of 3D formats, including the  Fuji 3D camera, is http://urixblog.com/en/xstereo-player-menu/xstereo-player-osx/  (Free). A paid for upgrade allows export of various formats,  including  3D-TV.&lt;br /&gt;
&lt;br /&gt;
=== Bino  Stereo player ===&lt;br /&gt;
&lt;br /&gt;
See http://bino3d.org/  and http://bino3d.org/3d-videos.html&lt;br /&gt;
&lt;br /&gt;
== [http://mipav.cit.nih.gov  MIPAV] Medical images ==&lt;br /&gt;
&lt;br /&gt;
The MIPAV (Medical Image Processing, Analysis, and Visualization) application enables quantitative analysis and visualization of medical images of numerous modalities such as PET, MRI, CT, or microscopy. Using MIPAV&#039;s standard user-interface and analysis tools, researchers at remote sites (via the internet) can easily share research data and analyses, thereby enhancing their ability to research, diagnose, monitor, and treat medical disorders.&lt;br /&gt;
&lt;br /&gt;
After starting the application (Start &amp;gt; All Programs &amp;gt; MIPAV), you will see the following splash screen:&lt;br /&gt;
&lt;br /&gt;
[[File:mipav1.jpg|300px]]&lt;br /&gt;
&lt;br /&gt;
Followed by two windows as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:mipav2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Select Help &amp;gt; MIPAV Options. The MIPAV Options dialog box opens. &lt;br /&gt;
Click on the Other tab and ensure that the GPU Computing enabled checkbox is ticked. If it is greyed out, there may be a problem with the graphics card, graphics driver or both and GPU volume rendering will not be possible.&lt;br /&gt;
&lt;br /&gt;
To display an image series in S3D, open the image series first. Click File &amp;gt; Open image (A) from disk &lt;br /&gt;
as shown below (Sample images were downloaded from http://www.cancerimagingarchive.net/  )&lt;br /&gt;
&lt;br /&gt;
[[File:mipav3.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Select the first image in the series as below (ensure that the Open as multifile option is ticked) and click on Open&lt;br /&gt;
&lt;br /&gt;
[[File:mipav4.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
You will then see the following: Click on the GPU-based Volume Renderer v1.0 button (circled in red below)&lt;br /&gt;
&lt;br /&gt;
[[File:mipav5.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
You will see a dialog showing the rendering progress…&lt;br /&gt;
&lt;br /&gt;
[[File:mipav6.jpg|200px]]&lt;br /&gt;
&lt;br /&gt;
Followed by a window with _clone appended in the title bar as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:mipav7.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Click the Renderer mode control button (circled in red above). This will display the following dialogue:&lt;br /&gt;
Select Quad Buffer as the Stereo Mode in the Display Components section as shown here.&lt;br /&gt;
&lt;br /&gt;
[[File:mipav8.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Click on the Surface Volume renderer button (circled in red below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:mipav9.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
You will now be able to rotate the 3D image with the mouse and adjust opacity to show/hide different parts of the image (note the additional Opacity and Slices tabs).&lt;br /&gt;
&lt;br /&gt;
Useful links&lt;br /&gt;
# http://www.cancerimagingarchive.net/ &lt;br /&gt;
# http://mipav.cit.nih.gov/documentation/presentations/visualization.pdf &lt;br /&gt;
# http://mipav.cit.nih.gov/documentation/userguide/Volume1/MIPAV_VisualizationTools.pdf&lt;br /&gt;
# http://mipav.cit.nih.gov/documentation/userguide/MIPAVUsersGuideVolume1.pdf &lt;br /&gt;
# http://mipav.cit.nih.gov/pubwiki/index.php/Volume_Renderer&lt;br /&gt;
# http://mipav.cit.nih.gov/pubwiki/index.php/FAQ:_How_do_I_setup_and_use_Active_stereo_display_in_MIPAV%3F Instructions for enabling Stereo.&lt;br /&gt;
&lt;br /&gt;
== Autodesk VRED Professional 2016 ==&lt;br /&gt;
VRED (Virtual Reality EDitor) 3D visualization software helps automotive designers and digital marketers create product renderings, design reviews, and virtual&lt;br /&gt;
prototypes. Please see http://www.autodesk.com/products/vred/features/vred/all/gallery-view for more detailed comparison of different VRED products.&lt;br /&gt;
&lt;br /&gt;
VRED Professional is used in the automotive industry to create high-end visualisations and virtual prototypes. It is currently installed in RCS1 LTC. To launch the application, double-click on the icon on the desktop.&lt;br /&gt;
[[File:VRED icon.png]]&lt;br /&gt;
&lt;br /&gt;
You will then see the following splash screen:&lt;br /&gt;
&lt;br /&gt;
[[File:VRED splash.png|200px]]&lt;br /&gt;
&lt;br /&gt;
To view examples, click on File &amp;gt; Open Examples&lt;br /&gt;
&lt;br /&gt;
[[File:VRED open1.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Select and open the armchair file for example:&lt;br /&gt;
&lt;br /&gt;
[[File:VRED open2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
To enable stereo visualisation, click on Visualisation &amp;gt; Stereo &amp;gt; Double Buffered&lt;br /&gt;
&lt;br /&gt;
[[File:VRED stereo1.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Eye separation and Zero parallax distance adjustments can be made in the Stereo Settings menu. &lt;br /&gt;
Click Visualization &amp;gt; Stereo &amp;gt; Stereo Settings as shown below.&lt;br /&gt;
&lt;br /&gt;
[[File:VRED stereo3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:VRED stereo2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Eye Separation: Sets viewer’s eye left and right eye distance in millimeters.&lt;br /&gt;
Zero Parallax Distance: Sets viewer’s focus distance. This distance is the distance to a plane where the images for both eyes match. &lt;br /&gt;
Disable Stereo: Disables stereo rendering.&lt;br /&gt;
Auto: Calculates the Eye distance depending on the view distance.&lt;br /&gt;
&lt;br /&gt;
The average human eye separation distance (also known as interocular or interpupillary distance (IPD)) is about 63.5mm (2.5inches). &lt;br /&gt;
In stereo viewing, if an object appears to be on the projection plane there is zero parallax. Negative parallax occurs when the object appears in front of the projection screen and positive parallax when the object appears behind the screen.&lt;br /&gt;
&lt;br /&gt;
Full-screen view is available as a main menu bar item&lt;br /&gt;
&lt;br /&gt;
[[File:VRED fullscreen.png]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:3D&amp;diff=821990</id>
		<title>Mod:3D</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:3D&amp;diff=821990"/>
		<updated>2025-09-17T13:42:25Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:3D to Mod:3D without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= 3D-Printable chemistry models =&lt;br /&gt;
&lt;br /&gt;
[http://www.shapeways.com Shapeways]  is one commercial company that can produce &#039;&#039;&#039;full-colour&#039;&#039;&#039;  3D-printed models.  As we start to generate such content, it is desirable to try to keep track of what is available from local activity (the Shapeways catalogue already contains much chemistry). The list below illustrates some of this activity:&lt;br /&gt;
&lt;br /&gt;
# Chiral [https://www.shapeways.com/model/1347220/goctoh.html?li=aeTabs  molecular-scale metal] wire, [http://www.ch.imperial.ac.uk/rzepa/blog/?p=8337 More details].&lt;br /&gt;
# Left handed [http://shpws.me/p2vr DNA]  and right handed [http://shpws.me/p2vy DNA] duplex (CGCG)&lt;br /&gt;
# Six &amp;amp;pi;-MOs of  Benzene:  http://shpws.me/oYY1  http://shpws.me/oYY6 http://shpws.me/oYYa (occupied) http://shpws.me/oYYh http://shpws.me/oYYk http://shpws.me/oYYp (unoccupied)&lt;br /&gt;
# Four &amp;amp;pi;-MOs of cis-butadiene: http://shpws.me/oYZa http://shpws.me/oYZd (HOMO),http://shpws.me/oYZn (LUMO), http://shpws.me/oYZp&lt;br /&gt;
# Four &amp;amp;pi;-MOs of cis-dimethyl hexatriene: http://shpws.me/pacC http://shpws.me/pacD (HOMO-1), http://shpws.me/pacE (HOMO), http://shpws.me/pacJ (LUMO)&lt;br /&gt;
# The  MOs of Copper phthalocyanine [http://shpws.me/p0AC HOMO],  mauveine ([http://shpws.me/p0Az HOMO] and [http://shpws.me/p0AB LUMO]) and an [http://shpws.me/oYsx octaphyrin] (corresponding to the [http://www.ch.ic.ac.uk/rzepa/artwork/ artwork] on the student resource-centre windows)&lt;br /&gt;
# The [http://shpws.me/p3e6 NBO orbitals] showing the overlap leading to the gauche effect in 1,2-difluoroethane.&lt;br /&gt;
#  Molecular orbital for [http://shpws.me/oTLF  {144}-annulene] indicating a topological linking number of 18.[http://www.ch.imperial.ac.uk/rzepa/blog/?p=9322 More details].&lt;br /&gt;
# Transition state for [http://shpws.me/p0DQ cyclohexene oxide+CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;] co-polymerisation using the Williams Zn-catalyst&lt;br /&gt;
----&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Transition states for  asymmetric epoxidation&lt;br /&gt;
|-&lt;br /&gt;
| [http://shpws.me/p0AF Shi Fructose-catalyst] || [http://shpws.me/oZ0I Jacobsen Mn-catalyst]&lt;br /&gt;
|-&lt;br /&gt;
| [http://shpws.me/p0Bz Sharpless Ti-catalyst] || [http://shpws.me/p0D0 Sodeoka-Hii Pd-catalyst]&lt;br /&gt;
|}&lt;br /&gt;
----&lt;br /&gt;
== Instructions on how to generate 3D-printable models (orbitals) using Jmol. ==&lt;br /&gt;
# Run a  QM calculation, select the desired orbital and create a Gaussian cube file containing the wavefunction (medium or fine grid).&lt;br /&gt;
# Acquire  [http://sourceforge.net/projects/jmol/files/ Jmol 13.3] or greater.&lt;br /&gt;
# Run &#039;&#039;&#039;Jmol.jar&#039;&#039;&#039; and open &#039;&#039;&#039;File/console&#039;&#039;&#039;&lt;br /&gt;
# &amp;gt;load bd_mol15.cub&lt;br /&gt;
# &amp;gt;cpk 200&lt;br /&gt;
# &amp;gt;set bondradiusmilliangstroms 500&lt;br /&gt;
# &amp;gt;isosurface sign color yellow green cutoff 0.02 bd_mol15.cub&lt;br /&gt;
# &amp;gt;set exportscale 12.0&lt;br /&gt;
# &amp;gt;write bd_mol15.wrl &lt;br /&gt;
# Upload the  .wrl file to the manufacturer&lt;br /&gt;
&lt;br /&gt;
You should replace the values above with ones relevant to your model. The isosurface cutoff can be adjusted to produce a good-looking model. Similarly the bond radii and the atom size (CPK). The exportscale controls the cost of the resulting model. If printed in full-colour sandstone, a model with largest dimension ~15 cm is going to be  a reasonable cost.&lt;br /&gt;
&lt;br /&gt;
An alternative output format which is accepted by [http://www.sculpteo.com/en/ some manufacturers]  is &#039;&#039;&#039;.obj&#039;&#039;&#039;.  This produces not a single file but two or even three.  These have to be zipped into a compressed archive before uploading.&lt;br /&gt;
&lt;br /&gt;
== Instructions on how to generate 3D-printable models (ball&amp;amp;stick) using Jmol. ==&lt;br /&gt;
# Acquire suitable coordinates. If from a crystal structure, it is probably best to save as a .pdb file rather than  .cif.  Ensure you edit the connectivity to avoid any components which are disconnected from the main model.  If necessary, connect them using an explicit bond.&lt;br /&gt;
# Acquire  [http://sourceforge.net/projects/jmol/files/ Jmol 13.3] or greater.&lt;br /&gt;
# Run &#039;&#039;&#039;Jmol.jar&#039;&#039;&#039; and open &#039;&#039;&#039;File/console&#039;&#039;&#039;&lt;br /&gt;
# &amp;gt;load Z-CGCG.pdb&lt;br /&gt;
# &amp;gt;cpk 150&lt;br /&gt;
# &amp;gt;set bondradiusmilliangstroms 300&lt;br /&gt;
# &amp;gt;set exportscale 8.0&lt;br /&gt;
# &amp;gt;write Z-CGCG.wrl&lt;br /&gt;
# Upload the  .wrl file to the manufacturer&lt;br /&gt;
&lt;br /&gt;
An alternative output format which is accepted by [http://www.sculpteo.com/en/ some manufacturers]  is &#039;&#039;&#039;.obj&#039;&#039;&#039;.  This produces not a single file but two or even three.  These have to be zipped into a compressed archive before uploading.&lt;br /&gt;
== Instructions on how to generate  3D-printable models  (proteins) using PyMol. ==&lt;br /&gt;
# [[File:Pymol1.jpg|130px|right]] Drag-n-drop a .pdb file onto the main  Pymol Window (MacPymol tested). It will open in standard wireframe mode.&lt;br /&gt;
# Edit off any water molecules and other disconnected units (skill needed here!)&lt;br /&gt;
# From the  all/S(how)  button (right), select &#039;&#039;&#039;surface&#039;&#039;&#039;&lt;br /&gt;
# From the  all/C(olour) button, select &#039;&#039;&#039;spectrum&#039;&#039;&#039; (or other)&lt;br /&gt;
# From &#039;&#039;&#039;File/Save image as/VRML 2&#039;&#039;&#039;, save a  .wrl file.&lt;br /&gt;
# Scale this file as per below using a text-editor to open the .wrl file.&lt;br /&gt;
&lt;br /&gt;
== Instructions on how to generate  3D-printable models  (proteins) using Chimera. ==&lt;br /&gt;
&lt;br /&gt;
[[File:1a30.jpeg|right|thumb|HIV protease rendered using  Chimera]][http://www.cgl.ucsf.edu/chimera/download.html Chimera] has similar functionality to Pymol.&lt;br /&gt;
# &#039;&#039;&#039;File/open&#039;&#039;&#039; to load  a .pdb file&lt;br /&gt;
# &#039;&#039;&#039;Tools/Structure editing/Minimise structure&#039;&#039;&#039; offers editing tools to trim off solvent, non-complexed ions, incomplete side chains etc.&lt;br /&gt;
# &#039;&#039;&#039;Actions/Surface/Show&#039;&#039;&#039; to produce a smooth Connolly surface.&lt;br /&gt;
# &#039;&#039;&#039;tools/Depiction/Rainbow&#039;&#039;&#039;  and select eg  &#039;&#039;&#039;Residue&#039;&#039;&#039;.&lt;br /&gt;
# &#039;&#039;&#039;File/Export-Scene&#039;&#039;&#039; and select eg  VRML.&lt;br /&gt;
# One can also load VRML (.wrl) files produced by other programs as a check.&lt;br /&gt;
&lt;br /&gt;
== Scaling a  VRML  file ==&lt;br /&gt;
*Open the  .wrl file in any simple text editor, and BEFORE the objects begin add lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;Transform {&lt;br /&gt;
children [&amp;lt;/pre&amp;gt;&lt;br /&gt;
*At the very end of the file add&lt;br /&gt;
&amp;lt;pre&amp;gt;]#end of children&lt;br /&gt;
scale 2.0 2.0 2.0&lt;br /&gt;
}#end of Transform&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
An example might look like (the addition is just before the  Shape command) for a scaling factor of  2.0 in all directions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#VRML V2.0 utf8&lt;br /&gt;
Viewpoint {&lt;br /&gt;
position 0 0 160.36393738&lt;br /&gt;
orientation 1 0 0 0&lt;br /&gt;
description &amp;quot;Z view&amp;quot;&lt;br /&gt;
fieldOfView 0.465421&lt;br /&gt;
}&lt;br /&gt;
DirectionalLight {&lt;br /&gt;
direction -0.348155 -0.348155   -0.870&lt;br /&gt;
}&lt;br /&gt;
NavigationInfo {&lt;br /&gt;
headlight TRUE&lt;br /&gt;
type &amp;quot;EXAMINE&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
Transform {&lt;br /&gt;
children [&lt;br /&gt;
Shape {&lt;br /&gt;
.....&lt;br /&gt;
.....&lt;br /&gt;
]&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
] #end of children&lt;br /&gt;
scale 2.0 2.0 2.0&lt;br /&gt;
} #end of transform&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
A variety of software for viewing, validating and editing the  3D models is available.&lt;br /&gt;
# [http://www.cgl.ucsf.edu/chimera/download.html Chimera]  is very good for viewing a  .wrl model on your computer after generation.&lt;br /&gt;
# [http://www.sculpteo.com/en/ This company] has a useful web site where you can colour-code the robustness of your model to manufacture.  Red=likely to break;  Green=robust, and hence adjust the bond thickness etc to the appropriate values.&lt;br /&gt;
&lt;br /&gt;
== Useful links ==&lt;br /&gt;
&lt;br /&gt;
[http://www.macinchem.org/reviews/3D/3dprinting.php Macinchem] have a very good collection of pointers.&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:writeup&amp;diff=821989</id>
		<title>Mod:writeup</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:writeup&amp;diff=821989"/>
		<updated>2025-09-17T13:41:42Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:writeup to Mod:writeup without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also: &amp;lt;!--[[Mod:org-startup|1C comp-lab startup]], [[Mod:timetable-1C|Timetable]], [[mod:laptop|Laptop use]], [[mod:programs|Programs]], [[mod:organic|Module 1C Script]], [[Mod:toolbox|Module 1C Toolbox]], [[Mod:writeup|Writing up]], [[Mod:dont_panic|Don&#039;t panic]], [[Mod:inorganic|Inorganic Computational lab]], [[Mod:phys3|Physical computational lab]],[[File:Wiki-writeup.png|right|250px]][[Mod:phys3|Module 3]],--&amp;gt;[[Mod:Cheatsheet|Cheatsheet]].&lt;br /&gt;
&lt;br /&gt;
== The expected length of the report ==&lt;br /&gt;
A Wiki does not have pages as such. But as a very rough guide, expect to produce something the equivalent of about  six printed pages (although you can invoke &#039;&#039;pop-ups&#039;&#039; and the like which make a page count only very approximate).  Use graphics reasonably sparingly, and to the point.&lt;br /&gt;
&lt;br /&gt;
= Why Wiki? =&lt;br /&gt;
Since everyone is used to using [http://www.wordonwiki.com Microsoft Word], why do we [[talks:rzepa2011|use a  Wiki]] for this course?  Well, the  Wiki format has several advantages.&lt;br /&gt;
#A full revision and fully dated history across sessions is kept (Word only keeps this during a session).  This is more suited for laboratory work,  where you indeed might need to go back to a particular day and experiment to check your notes.&lt;br /&gt;
#The (chemistry) Wiki allows you to include molecule coordinates, vibrations and  MO surfaces which can be rotated and inspected, along with other chemical extensions. Word does not offer this.&lt;br /&gt;
#The Wiki allows you to include &amp;quot;zoomable&amp;quot; graphics in the form of  SVG (which Gaussview generates), and access to the  17-million large [http://commons.wikimedia.org/wiki/Main_Page WikiCommons] image library, as well as access to the  Wikipedia InterWiki.&lt;br /&gt;
#The [[w::Help:Template|template]] concept allows pre-formated entry. There are lots of powerful [[w:Category:Chemical_element_symbol_templates|chemical templates]] available.&lt;br /&gt;
#Autonumbered referencing, and particularly cross-referencing, is actually easier than using  Word.&lt;br /&gt;
#You (and the graders) can access your report anywhere online,  it is not held on a local hard drive which you may not have immediate access to.&lt;br /&gt;
#It has automatic date and identity stamps for ALL components, which means we can assess that part of the report handed in by any deadline, and deal separately with anything which has a date-stamp past a given deadline. A Word document has only a single date-and-time stamp and so deadlines must apply to the whole document.&lt;br /&gt;
#And we have been using Wikis for course work since &#039;&#039;&#039;2006&#039;&#039;&#039;, so there is lots of expertise around!&lt;br /&gt;
#And finally, Wiki is an example of a [http://en.wikipedia.org/wiki/Markdown MarkDown] language, one designed to facilitate writing using an easy-to-read, easy-to-write plain text format (with the option of converting it to structurally valid XHTML).&lt;br /&gt;
&lt;br /&gt;
=Report Preparation =&lt;br /&gt;
&lt;br /&gt;
== Before you start writing ==&lt;br /&gt;
Before you start writing, you might wish to read this article&amp;lt;ref name=&amp;quot;adma.200400767&amp;quot;&amp;gt;G.M. Whitesides, &amp;quot;Whitesides&#039; Group: Writing a Paper&amp;quot;, &#039;&#039;Advanced Materials&#039;&#039;, &#039;&#039;&#039;2004&#039;&#039;&#039;, &#039;&#039;16&#039;&#039;,  1375–137 {{DOI|10.1002/adma.200400767}}&amp;lt;/ref&amp;gt;  (or perchance this advice&amp;lt;ref name=&amp;quot;ac2000169&amp;quot;&amp;gt;R. Murray, &amp;quot;Skillful writing of an awful research paper&amp;quot;, &#039;&#039;Anal. Chem.&#039;&#039;, &#039;&#039;&#039;2011&#039;&#039;&#039;, &#039;&#039;83&#039;&#039;, 633. {{DOI|10.1021/ac2000169}}&amp;lt;/ref&amp;gt;). In your report you should discuss your evaluation of each of the techniques you use here. You should include at least &#039;&#039;&#039;three literature references in addition to the ones given here&#039;&#039;&#039;. You might also want to check the [[Mod:latebreak|late breaking news]] to see if there are any helpful hints about the project you might want to refer to.  You will be writing your report in Wiki format, and it is best to do this continually as you do the experiment. In effect, your Wiki report is also your laboratory manual. &lt;br /&gt;
&lt;br /&gt;
#[[File:Wiked.jpg|right|400px|WikED editor]]Open Firefox as a Web browser. &lt;br /&gt;
#There should be a tab for the  course  Wiki, but if not, use the  URL &#039;&#039;&#039;www.ch.ic.ac.uk&#039;&#039;&#039;&lt;br /&gt;
#*[[Image:exception1.jpg|right|thumb|Security exception]]If the  browser asks you to add a security exception, do so and proceed to &#039;&#039;&#039;view/confirm&#039;&#039;&#039; the certificate.&lt;br /&gt;
#You can view the  Wiki without logging in, but to create a report, you will have to login as yourself. Check &#039;&#039;&#039;Remember my login on this computer&#039;&#039;&#039; &lt;br /&gt;
#Before you start, you might want to visit the [[Special:Preferences|preferences]] page  to customise the  Wiki for yourself.&lt;br /&gt;
#Follow the procedures below. Check that the WikED icon is present at the top, just to the right of the log out text (ringed in red). If you want a minimalist editing interface, click this icon to switch it off. A [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet cheatsheet] summarises the commands with a  [[It:projects|playpen]] for playing. You can write your report by simply typing the appropriate text as shown in the cheatsheet, or by using the  WikEd buttons in  Word-style composition.&lt;br /&gt;
&lt;br /&gt;
=== Assigning your report  an identifier ===&lt;br /&gt;
#*[[Image:New_report.jpg|right|400px|Creating a report page]] In the address box, type something like &lt;br /&gt;
#**&#039;&#039;&#039;wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:{{fontcolor1|yellow|black|XYZ1234}}&#039;&#039;&#039; &lt;br /&gt;
#*The characters &#039;&#039;&#039;Mod&#039;&#039;&#039; indicate a report associated with the modelling course, and  &#039;&#039;&#039;{{fontcolor1|yellow|black|XYZ1234}}&#039;&#039;&#039; is your secret password for the report. It can be any length, but do not make it too long! It should then tell you there is no text in this page. If not, try another more unique password. You should now click on the &#039;&#039;&#039;edit this page&#039;&#039;&#039; link to start. Use a different address for each module of the course you are submitting.&lt;br /&gt;
#*It is a {{fontcolor1|yellow|black|good idea}} to add a bookmark to this page, so that you can go back to it quickly.&lt;br /&gt;
==== Assigning your report a persistent (DOI-style) identifier.====&lt;br /&gt;
Use [https://data.hpc.imperial.ac.uk/publish/url/ this tool] to assign a shorter identifier for your report (one that can be invoked using eg &amp;lt;nowiki&amp;gt;{{DOI|shortidentifier]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Converters to the Wiki format ===&lt;br /&gt;
#Convert a  Word document. Open it  in &#039;&#039;&#039;OpenOffice&#039;&#039;&#039; (rather than the Microsoft version) and &#039;&#039;&#039;export&#039;&#039;&#039; as Mediawiki. Open the resulting .txt file in eg  WordPad, select all the text, copy, and then paste this into the Wiki editing page. You will still have to upload the graphical images from the original  Word document separately.&lt;br /&gt;
#There is also a [http://labs.seapine.com/htmltowiki.cgi HTML to  Wiki] converter which you can use to import HTML code from an existing  Web page into a  (Media)Wiki.&lt;br /&gt;
&lt;br /&gt;
== Basic editing  ==&lt;br /&gt;
An [[Title%3DMod:inorganic_wiki_page_instructions|introductory tutorial]] is available which complements the information here.&lt;br /&gt;
*A [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet cheatsheet] summarises the commands with a  [[It:projects|playpen]] for playing. You can write your report by simply typing the appropriate text as shown in the cheatsheet, or by using the  WikEd buttons in  Word-style composition.&lt;br /&gt;
*[[Image:report12345.jpg|right|thumb|The editing environment]]You will need to create a separate report page on this Wiki for each module of the course. Keep its location private (i.e. do not share the URL with others).&lt;br /&gt;
*The WikED toolbar along the top of the page has a number of tools for: &lt;br /&gt;
**adding citation references, &lt;br /&gt;
**superscript and subscripting (the  H&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O WikEd symbol will automatically do this for a formula), &lt;br /&gt;
**creating tables&lt;br /&gt;
**adding links (Wiki links are internal, External links do what they say on the tin)&lt;br /&gt;
**# local to the wiki, as  &amp;lt;nowiki&amp;gt;[[mod:writeup|text of link]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**# remote, as  &amp;lt;nowiki&amp;gt;[http://www.webelements.com/ text of link]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**# Interwiki, as  &amp;lt;nowiki&amp;gt;[[w:Mauveine|Mauveine]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**# DOI links are invoked using the  DOI template  &amp;lt;nowiki&amp;gt;{{DOI|..the doi string ..}}&amp;lt;/nowiki&amp;gt; or the more modern form   &amp;lt;nowiki&amp;gt;[[doi:..the dpi string..]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**# Links to an Acrobat file you have previously uploaded to the  Wiki can be invoked using this template: &amp;lt;nowiki&amp;gt;{{Pdf|tables_for_group_theory.pdf|...description of link ...}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**# There are lots of other [[Special:UncategorizedTemplates|templates]] to make your life easier such as the [[w:Template:Chembox|ChemBox]]&lt;br /&gt;
**If you need some help, invoke it from the left hand side of this page.&lt;br /&gt;
*Upload all graphics files also with unique names (so that they do not conflict with other people&#039;s names). If  you are asked to replace an image, &#039;&#039;&#039;REFUSE&#039;&#039;&#039; since you are likely to be over-writing someone else&#039;s image! &lt;br /&gt;
** Invoke such an uploaded file as  &amp;lt;nowiki&amp;gt;[[image:nameoffile.jpg|right|200px|Caption]] &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**We support WikiComons, whereby images from the [http://commons.wikimedia.org/wiki/Main_Page content (of ~10 million files)] from [http://meta.wikimedia.org/wiki/Wikimedia_Commons Wikimedia Commons Library]  can be referenced for your own document. If there is a name conflict, then the local version will be used before the  Wiki Commons one.&lt;br /&gt;
***To find a file, go to [http://commons.wikimedia.org/wiki/Main_Page Commons]&lt;br /&gt;
***Find the file you want using the search facility&lt;br /&gt;
***Invoke the top menu, &#039;&#039;&#039;use this file in a Wiki&#039;&#039;&#039;, and copy the string it gives you into your Wiki page&lt;br /&gt;
***  &amp;lt;nowiki&amp;gt;[[File:Armstrong Edward centric benzene.jpg|thumb|Armstrong Edward centric benzene]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*Colour can be added (sparingly) using this  {{fontcolor1|yellow|black|text fontcolor}} template.  (invoked as &amp;lt;nowiki&amp;gt;{{fontcolor1|yellow|black|text fontcolor}}&amp;lt;/nowiki&amp;gt; )&lt;br /&gt;
*Save and preview constantly (this makes a new version, which you can always revert to).   It goes without saying that you should not reference this page from any other page, or indeed tell anyone else its name.&lt;br /&gt;
*&#039;&#039;&#039;Important:&#039;&#039;&#039; Every 1-2 hours, you might also want to make a [[Mod:writeup#Backing_up_your_report|backup of your report]].  This is particularly important when adding  Jmol material, since any error in the  pasted code can result in XML errors. The current  Wiki version does not flag these errors properly, but instead just hangs the page.  Whilst you can try to [[Mod:writeup#Fixing_broken__Pages|repair the page]] as described below, it is much safer to also have a backup!&lt;br /&gt;
*You should get into the habit of recording results, and appropriate discussion, soon after they are available, in the manner of a laboratory note book.&lt;br /&gt;
&lt;br /&gt;
== More Editing features  ==&lt;br /&gt;
=== Handling References/citations with a DOI ===&lt;br /&gt;
This section shows how literature citations&amp;lt;ref name=&amp;quot;jp027596s&amp;quot;&amp;gt;W. T. Klooster , T. F. Koetzle , P. E. M. Siegbahn , T. B. Richardson , and R. H. Crabtree, &amp;quot;Study of the N-H···H-B Dihydrogen Bond Including the Crystal Structure of BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; by Neutron Diffraction&amp;quot;, &#039;&#039;J. Am. Chem. Soc.&#039;&#039;, &#039;&#039;&#039;1999&#039;&#039;&#039;, &#039;&#039;121&#039;&#039;,  6337–6343. {{DOI|10.1021/ja9825332}}&amp;lt;/ref&amp;gt; can be added to  text&amp;lt;ref name=&amp;quot;dataset1&amp;quot;&amp;gt; Henry S. Rzepa, &amp;quot;Gaussian Job Archive for C4H6NO3S(1-)&amp;quot;, 2013. {{DOI|10.6084/m9.figshare.679974}}&amp;lt;/ref&amp;gt; using the &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;{{DOI|value}}&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; (digital object identifier) template  to produce a nice effect. Citations can be easily added from the  WikED toolbar.&lt;br /&gt;
*The following text is added to the wiki, exactly as shown here: &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;ja9825332&amp;quot;&amp;gt;W. T. Klooster , T. F. Koetzle , P. E. M. Siegbahn , T. B. Richardson , and R. H. Crabtree, &amp;quot;Study of the N-H···H-B Dihydrogen Bond Including the Crystal Structure of BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; by Neutron Diffraction&amp;quot;, &#039;&#039;J. Am. Chem. Soc.&#039;&#039;, &#039;&#039;&#039;1999&#039;&#039;&#039;, &#039;&#039;121&#039;&#039;,  6337–6343.{{DOI|10.1021/ja9825332}}&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
*Giving a reference a unique identifier, such as &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;ja9825332&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; allows you to refer to the same footnote again by using a ref tag with the same name. The text inside the second tag doesn&#039;t matter, because the text already exists in the first reference. You can either copy the whole footnote, or you can use a terminated empty ref tag that looks like this: &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;ja9825332&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
*Collected citations will appear below wherever you place the &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;references /&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; tag, as here. If you forget to include this tag, the references will not appear!&lt;br /&gt;
==== Including the DOI for your experiment data ====&lt;br /&gt;
The datasets associated with your experiment can be given a  DOI by &#039;&#039;&#039;publishing&#039;&#039;&#039; any entry in the  [https://scanweb.cc.imperial.ac.uk/uportal2/ SCAN Portal]. You can include this DOI as a normal citation.&amp;lt;ref name=&amp;quot;dataset1&amp;quot;&amp;gt; Henry S. Rzepa, &amp;quot;Gaussian Job Archive for C4H6NO3S(1-)&amp;quot;, 2013. {{DOI|10.6084/m9.figshare.679974}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional citation handling ====&lt;br /&gt;
* A macro-based reference formatting program has been developed in Microsoft Excel to not only produce the wiki code for direct pasting into your report, but that &#039;&#039;&#039;&#039;&#039;also&#039;&#039;&#039;&#039;&#039; formats text for placing in documents, such as synthesis lab reports. This program is available [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Reference_Formatting_Program here].&lt;br /&gt;
* A &#039;&#039;&#039;[[Template:Cite_journal|Cite journal]] template&#039;&#039;&#039; is installed for anyone who wants to experiment&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
References and citations&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Using an iPad ===&lt;br /&gt;
&lt;br /&gt;
[https://itunes.apple.com/gb/app/wiki-edit/id391012741?mt=8 Wiki Edit] for IOS allows a Wiki to be edited using an  iPad.  You can dictate your text using  &#039;&#039;&#039;Siri&#039;&#039;&#039; if your speed at  &#039;&#039;&#039;thumb-typing&#039;&#039;&#039; is not what it should be.&lt;br /&gt;
&lt;br /&gt;
= Bringing your report to life =&lt;br /&gt;
== Basic JSmol ==&lt;br /&gt;
You can use coordinate files created as part of your work (in CML or Molfile format) to insert rotating molecules for your page.&lt;br /&gt;
#Using your graphical program (ChemBio3D or Gaussview), &#039;&#039;&#039;save&#039;&#039;&#039; your molecule as an &#039;&#039;&#039;MDL File&#039;&#039;&#039;, which has the extension  &#039;&#039;&#039;.mol&#039;&#039;&#039;, or as  &#039;&#039;&#039;chemical  markup language&#039;&#039;&#039;, which has the extension  &#039;&#039;&#039;.cml&#039;&#039;&#039;.&lt;br /&gt;
#Or, if your calculation ran on the  SCAN batch system, &#039;&#039;&#039;publish&#039;&#039;&#039; the calculation, and in the  resulting  deposited space, download the .cml or the &#039;&#039;&#039;logfile.out&#039;&#039;&#039; file to be found there (the latter should be used for vibrations only).&lt;br /&gt;
#On the Wiki,  &#039;&#039;&#039;Upload File&#039;&#039;&#039; (from the left hand panel) and select the molecule file you have just placed on your hard drive as above.&lt;br /&gt;
#On your Wiki page,  insert  &amp;lt;nowiki&amp;gt;&amp;lt;jmolFile text=&amp;quot;Explanatory text for link&amp;quot;&amp;gt;BCl3-09.log&amp;lt;/jmolFile&amp;gt;&amp;lt;/nowiki&amp;gt;  where in this example,  BCl3-09.log is the just uploaded file.&lt;br /&gt;
##The should produce &amp;lt;jmolFile text=&amp;quot;this link&amp;quot;&amp;gt;BCl3-09.log&amp;lt;/jmolFile&amp;gt;. When clicked, it will open up a separate floating window for your molecule.&lt;br /&gt;
##Further actions upon the loaded molecule (such as selecting a vibrational mode and animating the vibration) are done by right-mouse clicking in the  Jmol window.&lt;br /&gt;
&amp;lt;!-- &amp;lt;jmolFile text=&amp;quot;CML test&amp;quot;&amp;gt;test1.cml&amp;lt;/jmolFile&amp;gt;  --&amp;gt;&lt;br /&gt;
#When using animations, please let them pop up in a separate window using the &amp;lt;jmolAppletButton&amp;gt; function. Your browser won&#039;t slow down and you will make your life so much simpler. =) &lt;br /&gt;
##Read more on how to do that [http://wiki.jmol.org/index.php/MediaWiki#Jmol_applet_in_a_popup_window here ]. --[[User:Rea12|Rea12]] 20:58, 8 September 2014 (BST)&lt;br /&gt;
&lt;br /&gt;
== Advanced JSmol ==&lt;br /&gt;
&lt;br /&gt;
A much more powerful invocation is as follows.  The following allows a molecule to be directly embedded into the report, and it also shows how to put a script in to control the final display.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;2&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! copy/paste either of the two sections below into your own Wiki&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Pentahelicene&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;150&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;zoom 5;moveto 4 0 2 0 90 120;spin 2;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;yourmolecule.cml&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&amp;lt;!-- Above code relates to the first molecule display you can see --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Code below relates to the second molecule display you can see --&amp;gt;&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
 &amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Vibration&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
   &amp;lt;script&amp;gt;frame 8;vectors 4;vectors scale 5.0;color vectors red;vibration 10;&lt;br /&gt;
  &amp;lt;/script&amp;gt;&amp;lt;uploadedFileContents&amp;gt;BCl3-09.log&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
 &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! First molecule (if you see yellow below, then check the [[Mod:latebreak#Firefox.2C_Java_and_the_Wiki|late breaking news]])&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Pentahelicene&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;select atomno=3,atomno=4,atomno=5; color purple;measure 3 5;measure 5 4;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;pentahelicene.mol&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Second molecule (if you see yellow below, then check the [[Mod:latebreak#Firefox.2C_Java_and_the_Wiki|late breaking news]])&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
     &amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Vibration&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
       &amp;lt;script&amp;gt;frame 8;vectors 4;vectors scale 5.0;color vectors red;vibration 10;&lt;br /&gt;
       &amp;lt;/script&amp;gt;&lt;br /&gt;
       &amp;lt;uploadedFileContents&amp;gt;BCl3-09.log&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
     &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Every time you embed a molecule in a  Wiki page in the above manner, the Web browser must set aside memory.  Too many molecules, and the memory starts to run out, and the browser may slow down significantly.  So use the feature sparingly, only including key examples where  some structural feature would benefit from the rotational capabilities. &lt;br /&gt;
It is [http://chemapps.stolaf.edu/jmol/docs/ possible] to add many other commands to the JSmol container above. For example, &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;script&amp;gt;select atomno=3,atomno=4,atomno=5; color purple;measure  3 5;measure  5 4;&amp;lt;/script&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; will colour atoms  3 4 and  5 (obtained by mouse-overs) purple, and then measure the length of the  3-5 bond. Further examples of how to invoke Jmol are [http://www.mediawiki.org/wiki/Extension:Jmol#Installing_Jmol_Extension found here], and a comprehensive list [http://chemapps.stolaf.edu/jmol/docs/ given here].&lt;br /&gt;
&lt;br /&gt;
== Incorporating  orbital/electrostatic potential isosurfaces ==&lt;br /&gt;
The procedure is as follows&lt;br /&gt;
# Run a Gaussian calculation on the SCAN&lt;br /&gt;
# When complete, select  &#039;&#039;Formatted checkpoint file&#039;&#039; from the output files and download&lt;br /&gt;
# Double click on the file to load into  Gaussview&lt;br /&gt;
##To generate a molecule orbital,  &#039;&#039;&#039;Edit/MOs&#039;&#039;&#039; and select (= yellow) your required orbitals.&lt;br /&gt;
##* &#039;&#039;&#039;Visualise&#039;&#039;&#039; and  &#039;&#039;&#039;Update&#039;&#039;&#039; to generate them&lt;br /&gt;
## To generate an electrostatic potential, &#039;&#039;&#039;Results/Surfaces and Contours&#039;&#039;&#039;,  then &#039;&#039;&#039;Cube Actions/New Cube/Type=ESP&#039;&#039;&#039;. This will take 2-3 minutes to generate&lt;br /&gt;
##* In  &#039;&#039;&#039;Surfaces available&#039;&#039;&#039; pre-set the  Density to  &#039;&#039;&#039;0.02&#039;&#039;&#039; and then &#039;&#039;&#039;Surface Actions/New Surface&#039;&#039;&#039;. Try experimenting with the value of Density for the best result. Save the cube as per below.&lt;br /&gt;
# In &#039;&#039;&#039;Results/Surfaces and contours&#039;&#039;&#039; from the  &#039;&#039;&#039;cubes available&#039;&#039;&#039; list, select one and &#039;&#039;&#039;Cube actions/save cube&#039;&#039;&#039;&lt;br /&gt;
# Invoke [http://www.ch.ic.ac.uk/rzepa/cub2jvxl/ this page] and you will be asked to select your cube file,&lt;br /&gt;
# followed by three file save dialogs, one for the coordinates (.xyz), one for the MO surface (.jvxl) and a shrink-wrapped bundle (.pngj).&lt;br /&gt;
# Insert the following code into your Wiki, replacing the file name with your own choice from the preceding file save dialogs.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
       &amp;lt;title&amp;gt;Orbital&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
       &amp;lt;script&amp;gt;isosurface color orange purple &amp;quot;images/1/1b/AHB_mo22-2.cub.jvxl&amp;quot; translucent;&amp;lt;/script&amp;gt;&lt;br /&gt;
       &amp;lt;uploadedFileContents&amp;gt;AHB_mo22.xyz&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
     &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#   [[image:absolute_path.jpg|right|350px]]Next, upload these two files into the Wiki (one file at a time, the multiple file uploader does not seem to work  for this task)&lt;br /&gt;
## Now for the tough bit. You will need to find the absolute path for the  .jvxl file.  Above, this appears as  images/1/1b/AHB_mo22-2.cub.jvxl &lt;br /&gt;
## Just after uploading a .jvxl file, you will see a response as shown on the right.  &lt;br /&gt;
## Right click on &#039;&#039;&#039;Edit this file using an external application&#039;&#039;&#039;. You can used any text editor (Wordpad etc).&lt;br /&gt;
## This text file will contain something like: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;; or go to the URL &amp;lt;nowiki&amp;gt;https://wiki.ch.ic.ac.uk/wiki/images/1/1b/AHB_mo22-2.cub.jvxl&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Select just the string &#039;&#039;&#039;images/1/1b/AHB_mo22-2.cub.jvxl&#039;&#039;&#039; and paste it in as shown above:&lt;br /&gt;
#You should get something akin to:&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Orbital&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
       &amp;lt;script&amp;gt;isosurface color orange purple &amp;quot;images/1/1b/AHB_mo22-2.cub.jvxl&amp;quot; translucent;&lt;br /&gt;
       &amp;lt;/script&amp;gt;&lt;br /&gt;
       &amp;lt;uploadedFileContents&amp;gt;AHB_mo22.xyz&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
     &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
* You can superimpose two surfaces. Change the script contents above to append a second surface to the first: &amp;lt;pre&amp;gt;&amp;lt;script&amp;gt;isosurface color orange purple &amp;quot;images/4/42/AHB_mo22.jvxl&amp;quot; translucent;isosurface append color red blue &amp;quot;images/1/1b/AHB_mo22-2.cub.jvxl&amp;quot; translucent;&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* The four colours used in this line can be changed to whatever  you consider appropriate.&lt;br /&gt;
=== An alternative way of loading surfaces ===&lt;br /&gt;
This method avoids the need to specify paths to files as seen above. Instead uses the &#039;&#039;&#039;.pngj&#039;&#039;&#039; bundle which contains all necessary information and can be invoked by&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;jmolFile text=&amp;quot;just a link&amp;quot;&amp;gt;CF3_mo30.cub.pngj&amp;lt;/jmolFile&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; which produces &amp;lt;jmolFile text=&amp;quot;just a link&amp;quot;&amp;gt;CF3_mo30.cub.pngj&amp;lt;/jmolFile&amp;gt;.&lt;br /&gt;
# It only supports one surface (you cannot superimpose two orbitals)&lt;br /&gt;
# You can also load other surfaces, such as &amp;lt;jmolFile text=&amp;quot;molecular electrostatic potentials&amp;quot;&amp;gt;Checkpoint_60018_esp.cub.pngj‎&amp;lt;/jmolFile&amp;gt; generated from a cube of electrostatic potential (ESP) values created using Gaussview as follows:&lt;br /&gt;
## Download .fchk file from SCAN&lt;br /&gt;
## Open using Gaussview&lt;br /&gt;
## &#039;&#039;&#039;Results/Surfaces &amp;amp; contours/Cube actions/New Cube/ESP&#039;&#039;&#039; and then &#039;&#039;&#039;cube actions/save cube&#039;&#039;&#039; which is how the above was generated. You may have to play around with the value of the density (~0.02).&lt;br /&gt;
&lt;br /&gt;
=== MOPAC orbitals ===&lt;br /&gt;
# Run MOPAC from ChemBio3D, selecting &#039;&#039;&#039;Compute Properties/Molecular Surface&#039;&#039;&#039; from the &#039;&#039;&#039;properties&#039;&#039;&#039; pane, and in the &#039;&#039;&#039;General pane&#039;&#039;&#039;  specify a location for the output and deselect &#039;&#039;&#039;Kill temporary files&#039;&#039;&#039; if not already so.&lt;br /&gt;
# Upload the  &#039;&#039;&#039;.mgf&#039;&#039;&#039; file so produced to the Wiki&lt;br /&gt;
# Invoke as follows (&#039;&#039;&#039;MO 35;&#039;&#039;&#039; means the 35th most stable orbital for that molecule).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;jmol&amp;gt;&lt;br /&gt;
  &amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;MOPAC Orbital&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
       &amp;lt;script&amp;gt;MO 35;mo fill nomesh  translucent;&amp;lt;/script&amp;gt;&lt;br /&gt;
       &amp;lt;uploadedFileContents&amp;gt;test.mgf&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
   &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;jmol&amp;gt;&lt;br /&gt;
  &amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;MOPAC Orbital&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
     &amp;lt;script&amp;gt;MO 35;mo fill nomesh translucent;&amp;lt;/script&amp;gt;&lt;br /&gt;
     &amp;lt;uploadedFileContents&amp;gt;test.mgf&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
  &amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enhancing your report with  Equations ==&lt;br /&gt;
*You may have need to express some [http://meta.wikimedia.org/wiki/Help:Formula equations] on the  Wiki. This is currently supported only using  a notation derived from &#039;&#039;&#039;LaTeX&#039;&#039;&#039;, and as with the  Jmol insertion above, is enabled within a &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;math&amp;gt;\frac{-b\pm \sqrt{b^{2}-4ac}}{2a}&amp;lt;/math&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; field inserted using the default editor (the SQRT(n) button), and producing the following effect: &lt;br /&gt;
&amp;lt;math&amp;gt;\frac{-b\pm \sqrt{b^{2}-4ac}}{2a}&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The requisite syntax can be produced by using  &lt;br /&gt;
*MathType as an equation editor (used standalone or in  Word). It places the required LaTeX onto the clipboard for pasting into the Wiki). &lt;br /&gt;
*[http://www.lyx.org/ Lyx] which is a free stand-alone editor.&lt;br /&gt;
*A more general solution to this problem is simply to create a graphical image of your equation, and insert that instead as a picture.&lt;br /&gt;
&lt;br /&gt;
== Inserting Tables ==&lt;br /&gt;
Instead of inserting screenshots of Excel, tables can be produced using MediaWiki markup (see [http://www.mediawiki.org/wiki/Help:Tables this page]),  where you can also find lots of examples of different styles of table.  However, this can be quite time consuming when you have a lot of tabulated data and need to copy it from somewhere like Excel into ChemWiki.  Instead of typing it by hand, you can save your Excel worksheet as a comma separated file (.csv) and then use this [[http://area23.brightbyte.de/csv2wp.php CSV to MediaWiki markup]] convertor.  Note that cells starting with &amp;quot;-&amp;quot;, e.g. for negative numbers, need a space inserted between the - and | in the output otherwise MediaWiki interprets it as a new row.&lt;br /&gt;
&lt;br /&gt;
Another web-based utility is available called [http://excel2wiki.net/ Excel2Wiki] which can be  used to generate MediaWiki code from an  Excel table.&lt;br /&gt;
&lt;br /&gt;
== SVG (for display of  IR/NMR/Chiroptical Spectra) ==&lt;br /&gt;
[[File:IR.svg|300px|right|SVG]]SVG stands for  &#039;&#039;&#039;scaleable-vector-graphics&#039;&#039;&#039;.  Its advantage is well, that it scales properly (but it has many others, including the ability to make simple edit to captions etc using Wordpad or similar). From your point of view, it is readily generated using  Gaussview.  If you view an &#039;&#039;&#039;IR/NMR/UV-vis/IRC/Scan/&#039;&#039;&#039; spectrum in this program, it allows you to export the spectrum as  SVG (right-mouse-click on the spectrum to pull down the required menu). Upload this file, and invoke it as &amp;lt;nowiki&amp;gt;[[File:IR.svg|200px|right|SVG]]&amp;lt;/nowiki&amp;gt; If you open eg IR.svg in  Wordpad (or other text editor), you can edit the captions, font sizes etc (its fairly obvious). Oh,  you will need to use a web browser that actually displays  SVG.  Internet Explorer 8 does not (9 is supposed to). Use Firefox/Chrome/Safari etc.&lt;br /&gt;
&lt;br /&gt;
== Chemical  Templates ==&lt;br /&gt;
An example is the [[w:Template:Chembox|ChemBox]]. Volunteers needed to test/extend these!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Backing up your report  =&lt;br /&gt;
[[Image:export1.jpg|left|250px]][[Image:Export2.jpg|right|200px]]Invoke [[Special:Export|this utility]] to back your project up. In the box provided, enter e.g. &#039;&#039;&#039;Mod:wzyz1234&#039;&#039;&#039;  being the password for your report. This will generate a page (right) which can be saved using the  Firefox  &#039;&#039;&#039;File/Save_Page_as&#039;&#039;&#039; menu. Specify &#039;&#039;&#039;Web Page, XML only&#039;&#039;&#039; as the format, and add .xml to the file suffix. You might want to do this eg on a daily basis to secure against corruption.  This is in addition to the notes for how to repair broken pages.&lt;br /&gt;
&lt;br /&gt;
The same file can now be reloaded using [[Special:Import|Import]].&lt;br /&gt;
&lt;br /&gt;
= Fixing broken  Pages =&lt;br /&gt;
There are several ways in which a page can break.&lt;br /&gt;
&lt;br /&gt;
*We have had instances  of people inserting a corrupted version of the Jmol lines into their project, resulting in a  &#039;&#039;&#039;XML error&#039;&#039;&#039; or &#039;&#039;&#039;Database error&#039;&#039;&#039;.  Recovering from such an error is not simple. So we do ask that you carefully check what you are pasting into the Wiki, and that its form is exactly as shown above. For example, below is a real example of inducing such an error.  Can you see where the fault lies? (Answer: the &amp;lt;nowiki&amp;gt;&amp;lt;jmol&amp;gt;&amp;lt;/nowiki&amp;gt; tag is not matched by  &amp;lt;nowiki&amp;gt;&amp;lt;/jmol&amp;gt;&amp;lt;/nowiki&amp;gt;. If tags are not balanced,  XML  errors will occur).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&amp;lt;title&amp;gt;equatorial&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;	 &lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;zoom 200; cpk -20;&amp;lt;/script&amp;gt;	 &lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;Pl506_14_equatorial.mol&amp;lt;/uploadedFileContents&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Another example might be wish to   indicate a citation using &amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt;...details &amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;  but in fact end up entering  &amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt; ...&amp;lt;/nowiki&amp;gt; (i.e. missing out the  &amp;lt;nowiki&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;) &lt;br /&gt;
*If you do encounter such an error, try invoking your project as &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;https://www.ch.ic.ac.uk/wiki/index.php?title=Mod:wzyz1234&amp;amp;action=history&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; and edit and then save an uncorrupted version. You will need to be already logged in before you attempt to view the history in this way, since logging in &#039;&#039;&#039;after&#039;&#039;&#039; you invoke the above will return you not to the history, but to the corrupted page (Hint: it sometimes helps to check &#039;&#039;&#039;Remember my login on this computer&#039;&#039;&#039; as  you log in). For example, the  history for this page can be seen [https://www.ch.imperial.ac.uk/wiki/index.php?title=Mod:writeup&amp;amp;action=history here]. You can eg load this preceeding page, and then use it to replace &#039;&#039;&#039;writeup&#039;&#039;&#039; with your own project address.&lt;br /&gt;
*If the preceeding does not work try the instructions shown [[mod:fix|here]].&lt;br /&gt;
&lt;br /&gt;
= Feedback =&lt;br /&gt;
Each Wiki page has a discussion section, including your submitted report page. &amp;lt;!--This latter will be populated with comments about your report within a week of submission.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &amp;lt;!---[[mod:organic|Module 1C]],[[Mod:inorganic|Inorganic Computational lab]], [[Mod:phys3|Physical computational lab]],[[File:Wiki-writeup.png|right|250px]][[Mod:phys3|Module 3]],[[Mod:writeup|Writing up]],--&amp;gt;[[Mod:Cheatsheet|cheatsheet]]&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:support&amp;diff=821988</id>
		<title>Mod:support</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:support&amp;diff=821988"/>
		<updated>2025-09-17T13:41:05Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:support to Mod:support without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Remote Support =&lt;br /&gt;
&lt;br /&gt;
There are various ways of providing support to someone else remotely. This is one method: https://appleinsider.com/articles/21/01/10/how-to-provide-remote-mac-tech-support-using-google-chrome-remote-desktop&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:HPC-add&amp;diff=821987</id>
		<title>Mod:HPC-add</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:HPC-add&amp;diff=821987"/>
		<updated>2025-09-17T13:40:16Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Rep:Mod:HPC-add to Mod:HPC-add without leaving a redirect: Revert: this was not a report&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Breaking news.  The configuration mechanism has changed =&lt;br /&gt;
Whilst we wait for new instructions, please do not attempt the below. Currently, it will not work.&lt;br /&gt;
&lt;br /&gt;
== Configuring the  Imperial College HPC Resource to run  Gaussian Calculations using an ELN ==&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
#Chemistry department users  need  to be registered to use the  HPC. If a PG, ask  your supervisor to use https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/support/getting-started/  to make a request for you. You also need permissions to join the &#039;&#039;&#039;Gaussian users group&#039;&#039;&#039; and &#039;&#039;&#039;pqchem&#039;&#039;&#039; queue on the  HPC system.  You should email Mike Bearpark with a request for these. This may take ~24 hours to propagate.&lt;br /&gt;
#[[File:Screenshot_103.jpg|400px|right]]Once registered, go to  https://portal.hpc.imperial.ac.uk and login using your college user name and password (if connecting from outside the College network, you may require to [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ setup a VPN] to have access).&lt;br /&gt;
#[[File:Screenshot_104.jpg|450px|right]]Select Pools and complete the section &#039;&#039;&#039;Add Pool&#039;&#039;&#039; as shown (queue name of your choice, Host  = &#039;&#039;&#039;login.cx1.hpc.ic.ac.uk&#039;&#039;&#039; and path = &#039;&#039;&#039;/apps/scan-scripts/pqchem&#039;&#039;&#039; and click  &#039;&#039;&#039;Add&#039;&#039;&#039;&lt;br /&gt;
#[[File:Screenshot_105.jpg|500px|right]]You should get &#039;&#039;&#039;Pool added successfully&#039;&#039;&#039; and the instructions shown.&lt;br /&gt;
##In particular, &#039;&#039;&#039;download the key&#039;&#039;&#039;, which should have the name &#039;&#039;&#039;portalkey.rsa-7.pubkey&#039;&#039;&#039;&lt;br /&gt;
##Open this file in a non-wrapping text editor such as  WordPad, and copy the single line to the clipboard&lt;br /&gt;
#To complete the next step you will have to install an  SFTP client.  The below is appropriate for  Windows 10 (for which you have admin rights to install programs).&lt;br /&gt;
##An example of an sftp client is &#039;&#039;&#039;WInSCP&#039;&#039;&#039;, which can be downloaded from [https://winscp.net/eng/download.php https://winscp.net/eng/download.php]&lt;br /&gt;
##Launch WinSCP and log in to an SFTP session using Hostname &#039;&#039;&#039;login.cx1.hpc.ic.ac.uk&#039;&#039;&#039;, your College user name and password.&lt;br /&gt;
##On the left panel of the resulting screen you will see folders on your local computer; on the right panel are folders on the remote server. You need to find the directory &#039;&#039;&#039;.ssh&#039;&#039;&#039; on the remote server which is normally hidden, so first you need to reveal hidden files. To do this, in the &#039;&#039;&#039;Options&#039;&#039;&#039; menu at the top, choose &#039;&#039;&#039;Preferences&#039;&#039;&#039; and then &#039;&#039;&#039;Panels&#039;&#039;&#039;.  Tick the box &#039;&#039;&#039;Show Hidden Files&#039;&#039;&#039;, then OK. You should then see the &#039;&#039;&#039;.ssh&#039;&#039;&#039; directory in the path&#039;&#039;&#039; /rdsgpfs/general/user/yourusername/home&#039;&#039;&#039; &lt;br /&gt;
##*If you are a new user, this directory may not yet exist, and you should create it.&lt;br /&gt;
##In the&#039;&#039;&#039; .ssh&#039;&#039;&#039; directory, you will find a file called &#039;&#039;&#039;authorized_keys&#039;&#039;&#039;. Still in WinSCP, double click on this file to open it in an editor, then paste in the line you copied to the clipboard above, save and close the file. If the file does not exist, create it.&lt;br /&gt;
#Log in again to https://portal.hpc.imperial.ac.uk, click on  &#039;&#039;&#039;Pools&#039;&#039;&#039; and then  in the line for your created pool, click on Applications/&#039;&#039;&#039;view&#039;&#039;&#039;. It should show a list of authorised applications.  If the list is empty, click on &#039;&#039;&#039;Refresh application list&#039;&#039;&#039; at the bottom and if all the appropriate permissions have been set, the list should appear (if the list is blank you do not have these permissions).&lt;br /&gt;
#To submit a job, you first have to prepare the  Gaussian input file.  Do not add any  % commands, start immediately with the keywords line.&lt;br /&gt;
#First, create a new project by clicking &#039;&#039;&#039;Projects&#039;&#039;&#039;. You can have as many of these as you wish&lt;br /&gt;
#Click on &#039;&#039;&#039;New job&#039;&#039;&#039; and select your newly added pool followed by &#039;&#039;&#039;continue&#039;&#039;&#039;.&lt;br /&gt;
#Select &#039;&#039;&#039;Application type&#039;&#039;&#039;. Recommended are the three types labelled &#039;&#039;&#039;Gaussian g16-c01-avx 8px 22GB&#039;&#039;&#039; and the 16px and 20px versions,  select a project then &#039;&#039;&#039;continue&#039;&#039;&#039;&lt;br /&gt;
##The scheduling of the job is controlled by the resources you request.  The 8px job will run more quickly than the 20px job (which may pend for several days). Try testing the job input with a short queue first.&lt;br /&gt;
#Select a Gaussian input file (ignore the Formatted checkpoint file) and enter a good description (one you are likely to understand when you write your paper up a year or so later!)&lt;br /&gt;
#[[File:Screenshot_106.jpg|700px|right]]Click on  &#039;&#039;&#039;job list&#039;&#039;&#039;.  It will show &#039;&#039;&#039;pending&#039;&#039;&#039; or &#039;&#039;&#039;running&#039;&#039;&#039;.  If it immediately shows &#039;&#039;&#039;Finished&#039;&#039;&#039; it has probably failed with a  Gaussian error. It the system is misbehaving it will show &#039;&#039;&#039;Failed&#039;&#039;&#039; and ICT need to fix it (rare).&lt;br /&gt;
##You can search for text entered into the description  and by project to find earlier jobs. The columns can also be sorted by clicking on the top caption for each column. Press &#039;&#039;&#039;filter&#039;&#039;&#039; to invoke a search. You can also delete unwanted jobs.&lt;br /&gt;
##When the job is finished, select an output file  (normally the Gaussian log file or formatted checkpoint file) for download and inspect using eg &#039;&#039;&#039;Gaussview 6.1.1&#039;&#039;&#039;.&lt;br /&gt;
##Hint: the  job &#039;&#039;&#039;description&#039;&#039;&#039; is editable.  To do so, click on the &#039;&#039;&#039;Job ID&#039;&#039;&#039; on the left.  You can change the project here as well as edit the description.  If your project depends on computed energies  (ideally the Gibbs Energy) then enter that into the description field. It then  makes it much easier if you are calculating a series of molecules with the same formula and by the same method to compare them all by energy or to find all energies with a common numerical prefix.&lt;br /&gt;
#If you want to follow the progress of your job, go to https://api.rcs.imperial.ac.uk/jobs/qstat Here, you can also extend the run time of your job, but only by 24 hours!&lt;br /&gt;
#Once you are satisfied with a finished job, you may wish to publish all the key files to the data repository.  This needs setting up [[Orcid|here]]. For information about how to also publish experimental data such as  NMR spectra, see [[rdm:synthesis-lab|here]].&lt;br /&gt;
 --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=821986</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Main_Page&amp;diff=821986"/>
		<updated>2025-09-17T13:37:10Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Move non-active experiments to &amp;quot;Material from previous years&amp;quot; section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:QR_complab.png|right|QR]]&lt;br /&gt;
This is a communal area for documenting teaching and laboratory courses. To [[admin:add|add to any content on these pages]], you will have to log in using your Imperial College account. This page has {{DOI|dh4g}}&lt;br /&gt;
== Remote Working ==&lt;br /&gt;
#[[Mod:Rem|Remote access to College computers]]&lt;br /&gt;
#[[Mod:HPC-add|Remote use of Gaussian]]&lt;br /&gt;
#[[Mod:support|Remote support]]&lt;br /&gt;
&lt;br /&gt;
== ORCID Identifiers and Research Data Publication ==&lt;br /&gt;
#[[orcid|Getting an ORCID identifier]] (two stages)&lt;br /&gt;
#[[rdm:synthesis-lab|Publishing NMR instrument data]] (three stages)&lt;br /&gt;
#[[rdm:xray-data|Publishing crystal structure instrument data]]&lt;br /&gt;
&lt;br /&gt;
= Laboratories and Workshops =&lt;br /&gt;
== First Year ==&lt;br /&gt;
=== [[it:it_facillities|Email and IT@www.ch.imperial.ac.uk]]: A summary of available  IT resources ===&lt;br /&gt;
&lt;br /&gt;
===First Year Chemical Information  Lab 2015 ===&lt;br /&gt;
*[[it:intro-2011|Introduction]]&lt;br /&gt;
*[[it:lectures-2011|Lectures]]&lt;br /&gt;
*[[it:coursework-2011|Coursework]]&lt;br /&gt;
*[[it:assignment-2011|Assignment for the course]]&lt;br /&gt;
*[[it:software-2011|List of software for CIT]]&lt;br /&gt;
*[[it:searches-2011|Search facilities for CIT]]&lt;br /&gt;
*[[Measurement_Science_Lab:_Introduction|Measurement Science Lab Course]]&lt;br /&gt;
===[[organic:conventions|Conventions in organic chemistry]]===&lt;br /&gt;
===[[organic:arrow|Reactive Intermediates in organic chemistry]]===&lt;br /&gt;
===[[organic:stereo|Stereochemical models]] ===&lt;br /&gt;
== Second Year ==&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
*Electronic States and Bonding - computational laboratory (see blackboard).&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&amp;lt;!--===Synthetic Modelling Lab {{DOI|10042/a3uws}}===&lt;br /&gt;
*[[mod:latebreak|Late breaking news]].&lt;br /&gt;
*[[mod:org-startup|Startup]]&lt;br /&gt;
**[[Mod:timetable-1C|Timetable]]&lt;br /&gt;
**[[mod:laptop|Using your laptop]]&lt;br /&gt;
*[[mod:organic|1C: Structure modelling, NMR and Chiroptical simulations]]&lt;br /&gt;
*[[mod:toolbox|The computational toolbox for spectroscopic simulation]]&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:avogadro|The Avogadro program]]&lt;br /&gt;
**[[Mod:chem3d|The ChemBio3D program]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[IT:ORCID|ORCID identifier]]&lt;br /&gt;
**[[Mod:toolbox#Submitting_this_file_to_the_HPC_for_geometry_optimization|Submitting jobs to the HPC (high-performance-computing) and research data management]]&lt;br /&gt;
**[[Mod:errors|Error conditions and other  FAQs]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Computational Chemistry Lab ===&lt;br /&gt;
* [[Mod:ts_exercise|Transition states and reactivity.]]&lt;br /&gt;
* [[ThirdYearMgOExpt-1415|MgO thermal expansion]]&lt;br /&gt;
* [[Third_year_simulation_experiment|Simulation of a simple liquid]]&lt;br /&gt;
* [[Programming_a_2D_Ising_Model|Programming a 2D Ising Model (CMP only)]]&lt;br /&gt;
&lt;br /&gt;
= Material from previous years =&lt;br /&gt;
== First year ==&lt;br /&gt;
===Introduction to Chemical Programming Workshop 2013===&lt;br /&gt;
*[[1da-workshops-2013-14|Workshop script]]&lt;br /&gt;
== Second year ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.huntresearchgroup.org.uk/teaching/year2a_lab_start.html Inorganic Computational Chemistry Computational Laboratory]&lt;br /&gt;
*[[CP3MD| Molecular Reaction Dynamics]]&lt;br /&gt;
&lt;br /&gt;
=== Modelling Workshop ===&lt;br /&gt;
*[[Coursework]] &lt;br /&gt;
*[[Second Year Modelling Workshop|Instructions]] and [[mod:further_coursework|Further optional coursework]]&lt;br /&gt;
*[[it:conquest|Conquest searches]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--=== Second Year Symmetry Workshops ===&lt;br /&gt;
*[[Symmetry Lab|Lab Exercises]]&lt;br /&gt;
*[[Symmetry Workshop 1|Symmetry Workshop 1]]&lt;br /&gt;
*[[Symmetry Lab Downloads|Downloads and Links]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Year ==&lt;br /&gt;
&lt;br /&gt;
*[[TrendsCatalyticActivity|Understanding trends in catalytic activity for hydrogen evolution]]&lt;br /&gt;
*[[mod:inorganic|Bonding and molecular orbitals in main group compounds]]&lt;br /&gt;
&lt;br /&gt;
===Synthesis and computational lab ===&lt;br /&gt;
*[[Mod:organic|Synthesis and computational lab]]&lt;br /&gt;
&amp;lt;!-- === First year Background ===&lt;br /&gt;
*[[organic:conventions|Conventions in organic chemistry]] &lt;br /&gt;
*[[organic:arrow|Reactive Intermediates in organic chemistry]]&lt;br /&gt;
*[http://www.chem.utas.edu.au/torganal/ Torganal: a program for  Spectroscopic analysis] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*[[mod:intro|Information needed for the course]]&lt;br /&gt;
&amp;lt;!--*[[mod:lectures|Introductory lecture notes]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--*[[mod:laptop|Using your laptop]]--&amp;gt;&lt;br /&gt;
*[[mod:writeup|Report writing and submission]]&lt;br /&gt;
&amp;lt;!--*[[mod:Q&amp;amp;A|Questions and Answers]]--&amp;gt;&lt;br /&gt;
*[[mod:latebreak|Late breaking news]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[[mod:programs|General program instructions:]]&lt;br /&gt;
**[[mod:gaussview|The Gaussview/Gaussian suite]]&lt;br /&gt;
**[[Mod:scan|Submitting jobs to the chemistry high-performance-computing resource]]&lt;br /&gt;
&lt;br /&gt;
== ChemDraw/Chemdoodle Hints ==&lt;br /&gt;
#[[IT:chemdraw|Useful hints for using  ChemDraw/ChemDoodle]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tablet  Project ==&lt;br /&gt;
# [[tablet:tablet|Tablet Pilot  Project]]&lt;br /&gt;
== 3D ==&lt;br /&gt;
# [[mod:3D|3D-printable models]]&lt;br /&gt;
# [[mod:stereo|Lecture Theatre  Stereo]]&lt;br /&gt;
== Online materials for mobile devices ==&lt;br /&gt;
# [[ebooks:howto|How to get eBooks]]&lt;br /&gt;
# [https://play.google.com/store/apps/details?id=com.blackboard.android&amp;amp;hl=en Blackboard mobile learn for  Android]&lt;br /&gt;
# [https://itunes.apple.com/us/app/blackboard-mobile-learn/id376413870?mt=8 Blackboard mobile learn for  iOS]&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191620 Pericylic reactions in iTunesU ]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8  App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191825 Conformational analysis in iTunesU]  (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [https://itunes.apple.com/gb/course/id562191342 A library of mechanistic animations in  iTunesU] (download [https://itunes.apple.com/gb/app/itunes-u/id490217893?mt=8 App] first)&lt;br /&gt;
# [[IT:panopto|How to compress and disseminate Panopto lecture recordings]]&lt;br /&gt;
&lt;br /&gt;
= PG =&lt;br /&gt;
&amp;lt;!-- # [[pg:data|Data management]] --&amp;gt;&lt;br /&gt;
# [[rdm:intro|Data management]]&lt;br /&gt;
= DOI =&lt;br /&gt;
*[[template:doi]]  This page  has {{DOI|dh4g}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Accessibility on this site =&lt;br /&gt;
&lt;br /&gt;
* The Department of Chemistry wants as many people as possible to be able to use this website. The site hopes to maintain WCAG 2.1 AA standards, but it is not always possible for all our content to be accessible.&lt;br /&gt;
&lt;br /&gt;
=== Technical information about this website’s accessibility ===&lt;br /&gt;
&lt;br /&gt;
* Imperial College London is committed to making its website accessible in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.&lt;br /&gt;
&lt;br /&gt;
* This website is compliant with the Web Content Accessibility Guidelines version 2.1 AA standard.&lt;br /&gt;
&lt;br /&gt;
=== Reporting accessibility issues ===&lt;br /&gt;
&lt;br /&gt;
* If you need information on this website in a different format or if you have any issues accessing the content then please contact [gmallia at imperial.ac.uk]. I will reply as soon as possible.&lt;br /&gt;
 &lt;br /&gt;
=== Enforcement procedure ===&lt;br /&gt;
 &lt;br /&gt;
* The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). &lt;br /&gt;
If you’re not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).&lt;br /&gt;
&lt;br /&gt;
=== Last updated ===&lt;br /&gt;
&lt;br /&gt;
This statement was prepared in September 2020 (rechecked in May 2021).&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep_talk:FabianThomasThirdYearLiquidFlowSimulation&amp;diff=821985</id>
		<title>Rep talk:FabianThomasThirdYearLiquidFlowSimulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep_talk:FabianThomasThirdYearLiquidFlowSimulation&amp;diff=821985"/>
		<updated>2025-09-17T13:27:55Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Talk:MRD:FabianThomasThirdYearLiquidFlowSimulation to Rep talk:FabianThomasThirdYearLiquidFlowSimulation without leaving a redirect: Move to report namespace&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Overall: Good attempt at the lab although the VACF was not attempted. Be careful not to become too colloquial in your writing and read through to check for grammar. Your style is pretty good apart from the grammar and sometimes vague statements - keep it up and read more before your MSci proj, it helps :^) Mark: 68/100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Not a bad attempt at writing an abstract - hardware, unless it&#039;s revolutionary, doesn&#039;t need a mention aka HPC.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lennard-Jones simulations of solids, liquids, and gases were run through LAMMPS on the imperial HPC service. How number density varied against temperature and at different pressures, radial distribution functions of L-J solids, liquids, and gases, Mean Squared Displacements, Diffusion coefficients, and the variation of heat capacity with temperature were investigated in order to understand more about phase properties, and specifically those that can be modelled using a L-J simulation. &amp;lt;ref&amp;gt; Jean-Pierre Hansen and Loup Verlet, Phys. Rev. 184, 151&amp;lt;/ref&amp;gt; For the equation of state, number density increased with pressure, but was inversely proportional to an increasing temperature. Heat capacity was determined to be inversely proportional to temperature due to a change in density of states for a fixed NVT ensemble. The radial distribution function allowed for analysis of solid, liquid, and gas simulations of 3375 atoms and allowed for the probing of the structure of each phase, along with details about the co-ordination spheres and numbers of nearest neighbors. Diffusion coefficients were found using the Mean Squared Displacements &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;gram not capitalised&amp;lt;/span&amp;gt; for solids, liquids and gases, along with simulations with one million atoms for each phase as well, with values for &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; of&amp;lt;math&amp;gt;-1 \times 10^{-17}&amp;lt;/math&amp;gt;,&amp;lt;math&amp;gt;1.1 \times 10^{-10}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; 3.61 \times 10^{-9} \ m^2 s^{-1}&amp;lt;/math&amp;gt; for the  solid liquid and gas phases. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Very good introduction Fabian - hit the nail on the head :^)&amp;lt;/span&amp;gt;&lt;br /&gt;
Phase changes occur every day in daily life, and are common place in the world around us. From boiling water to be used in cooking or in steam generators to produce electricity, to instant heat packs, where sodium acetate is super cooled, and upon perturbation instantly raises the pack’s temperature significantly to its freezing point at 54 degrees. These are all every day examples of how phase changes are used and how research into phase changes can provide new avenues for products and areas of research such as new instant-heat pack materials, all based on previous phase change research.&lt;br /&gt;
&lt;br /&gt;
Phase change materials; not unlike sodium acetate, is a large area of research today. Materials capable of storing large amounts of energy through phase changes such as the solid to liquid transition or solid to solid transitions, &amp;lt;ref&amp;gt;Belén Zalba, José M Marı́n, Luisa F. Cabeza, Harald Mehling, Review on thermal energy storage with phase change: materials, heat transfer analysis and applications, In Applied Thermal Engineering, Volume 23, Issue 3, 2003, Pages 251-283&amp;lt;/ref&amp;gt; with applications such as improved solar cell energy storage&amp;lt;ref&amp;gt;Murat Kenisarin, Khamid Mahkamov, Solar energy storage using phase change materials, In Renewable and Sustainable Energy Reviews, Volume 11, Issue 9, 2007, Pages 1913-1965&amp;lt;/ref&amp;gt;, and materials able to change state for useful purposes in textiles&amp;lt;ref&amp;gt;S. Mondal, Phase change materials for smart textiles – An overview, In Applied Thermal Engineering, Volume 28, Issues 11–12, 2008, Pages 1536-1550&amp;lt;/ref&amp;gt; these simulations carried out can further progress phase-change transition research, and can be used to go on to model more complex systems for use with this research.&lt;br /&gt;
&lt;br /&gt;
Modelling theses systems using L-J simulations provides a fast and easy method to compute the phase change temperatures, order, and structure of the phases transitioned through. Thus simplifying the need to synthesise the molecule beforehand to view the properties of the system. Some of the systems with the largest heat of fusion are systems such as Lithium or water, which are very easily simulated through L-J models and provide an excellent way to probe the phase diagrams of these systems. The ease of determining the crystal structure of solids, is very largely beneficial for the phase change materials, as it allows for easy categorisation of the solid phases, such as ice which has over ten different solid crystalline phases depending on the pressure and temperature of the system, which is modelled accurately and quickly using an L-J simulation through use of radial distribution functions. Heat capacity measurements of phases are of a large interest in phase-change materials as materials with large heat capacities coupled with a large latent heat of fusion allows for the storage of very large amount of energy in a small amount of solid. But all these simulations lead to further questions, how far can L-J simulations go in helping to discover phase change materials, and how accurately can the simulations predict real heat capacities, structures and transitions of unmade molecules?&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;A good computational methods section should be structured model, params, forcefield, params. Then describe what you did with this model. Not bad though. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All simulations were run as Lennard-Jones systems through the Imperial College HPC facility &amp;lt;ref&amp;gt;https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/hpc/&amp;lt;/ref&amp;gt; using the LAMMPS runtime option, with all graphs and respective data produced and analysed using Origin Pro &amp;lt;ref&amp;gt;http://www.originlab.com/Origin&amp;lt;/ref&amp;gt;.&lt;br /&gt;
Equation of State simulations were run using an NpT ensemble. Using dimensionless L-J reduced units &amp;lt;ref&amp;gt;http://cbio.bmt.tue.nl/pumma/index.php/Manual/ReducedUnits&amp;lt;/ref&amp;gt;, pressures &amp;lt;math&amp;gt;p^*&amp;lt;/math&amp;gt; of 1.8 and 2.6 were used, along with temperatures above the critical temperature &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; = 1.5 of 2, 2.5, 3, 3.5 and 4. A timestep of 0.0025 was used, as it was found in the earlier stages of the experiment to be as accurate as a timestep of 0.001, but would run the simulation 250% faster in comparison. As it was a liquid that was to be simulated, a simple cubic lattice was used for the simulation.&lt;br /&gt;
&lt;br /&gt;
Heat Capacity simulations were run at &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; = 0.2 and 0.8, and &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; = 2.0, 2.2, 2.4, 2.6, 2.8 in L-J reduced units. A simple cubic crystal was melted under microcanonical NVE conditions. As heat capacity, shown below, is directly proportional to the variance of energy of the system if temperature is held constant, after melting, the system was put under an NVT ensemble to hold the temperature constant but allow the energy to vary.&lt;br /&gt;
&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;
Where &amp;lt;math&amp;gt;C_V&amp;lt;/math&amp;gt; is Heat Capacity, &amp;lt;math&amp;gt;\mathrm{Var}\left[E\right]&amp;lt;/math&amp;gt; is the variance in Energy, &amp;lt;math&amp;gt;k_b&amp;lt;/math&amp;gt; is Boltzmann&#039;s constant, &amp;lt;math&amp;gt;\left\langle E^2\right\rangle&amp;lt;/math&amp;gt; is mean squared energy, &amp;lt;math&amp;gt;\left\langle E\right\rangle^2&amp;lt;/math&amp;gt; is mean energy squared, and &amp;lt;math&amp;gt;N^2&amp;lt;/math&amp;gt; is the number of atoms in the simulation squared.&lt;br /&gt;
&lt;br /&gt;
A factor of &amp;lt;math&amp;gt;N^2&amp;lt;/math&amp;gt; is added to the equation, as LAMMPS divides all energies output by the number of particles in the system, therefor giving &amp;lt;math&amp;gt;\frac{E}{N}&amp;lt;/math&amp;gt; for any value of &amp;lt;math&amp;gt;E&amp;lt;/math&amp;gt; measured. Using this equation, the heat capacity was found and &amp;lt;math&amp;gt;\frac {C_V}{V}&amp;lt;/math&amp;gt; was plotted against &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; to view how the heat capacity varied with respect to temperature.&lt;br /&gt;
&lt;br /&gt;
Using VMD software &amp;lt;ref&amp;gt;http://www.ks.uiuc.edu/Research/vmd/&amp;lt;/ref&amp;gt;, the radial distributions functions for the solid, liquid, and vapour phases of a L-J fluid were calculated, setting selection 1, and 2 to ‘all’, and delta r to 0.05. Using these plots the co-ordination sphere radii and numbers of the solid, liquid, and vapour phases were determined.&lt;br /&gt;
&lt;br /&gt;
Using the equation &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; and the relationship between D and Mean-Squared Displacement &amp;lt;math&amp;gt;\langle (x(t)-x_0)^2 \rangle = 2Dt&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; was calculated for solid, liquid, and vapour phases by extracting the gradient from the plot of Mean-Squared Displacement against time, giving a gradient of &amp;lt;math&amp;gt;2D&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== Equation of State ===&lt;br /&gt;
&lt;br /&gt;
[[File:Ft1015_Standard_Error_plots_graph.PNG|480px|thumb|left|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: A plot of average density against average critical temperature of the system with standard error error bars]]&lt;br /&gt;
&lt;br /&gt;
From figure 1, we can see that number density &amp;lt;math&amp;gt; \frac{N}{V}&amp;lt;/math&amp;gt; is inversely proportional to &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. This can be rationalised by looking at the results of the L-J reduced gas law &amp;lt;math&amp;gt; \frac{N}{V} = \frac{p}{T}&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The discrepancies between the idealised and simulated number density results can be attributed to the simulation being non-ideal. The basis of a L-J system is that the particles interact with each other, with a short range repulsive term, and a longer range attractive term. The ideal gas law however, assumes that there are no interactions between particles and thus, due to the short range highly repulsive term, the particles are further apart than in a system with no interactions and therefore the number density of the simulated systems are lower than their idealised counterparts.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
As the temperature is increased, the kinetic energy of the particles increases leading to an increase in the average distance between particles in order to reduce repulsions between particles to a minimum. This can be seen in Charles’ Lawː&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{N_1}{T_1} = \frac{N_2}{V_2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
As the temperature is increased to &amp;lt;math&amp;gt;T_2&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;V_2&amp;lt;/math&amp;gt; must increase, thus leading to a decrease in number density. As the particles are further away from each other on average, the particles interact with one another less, and so become more ‘ideal’, reducing the difference between the simulated result and the gas law result.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
This result is the opposite for lower temperatures. As the temperature is reduced, so is the kinetic energy, and therefore the particles are less able to overcome the attractive and repulsive forces between them. This leads to larger interactions between the particles due to their increased proximity to each other, and so simulated results deviate from the gas law more at lower temperatures. From Charles’ Law again, we can see that the volume of the cell will decrease as temperature decreases, and so number density will increase at lower temperatures.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the graphs, we can see that, at higher pressures the deviations from ideality are larger than that of a lower pressure simulation. This arises from the fact that at higher pressures, the number density is higher due to decreased cell volume, leading to decreased distances between particles and therefore increased interactions between them as they collide with each other more frequently. This increase in interactions between particles leads to a large deviation from ideality and so a larger difference between simulated and ideal law data for higher pressures. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick, what about the variation of density with temperature?&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity ===&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015HeatCapacity.png|480px|thumb|left|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: A plot of &amp;lt;math&amp;gt; {C_{V}}/{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; {T*} &amp;lt;/math&amp;gt; for two different densities]]&lt;br /&gt;
[[File:Ft1015HeatCapacityScript.PNG|250px|thumb|right|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: An image of a sample of the script used for one of the heat capacity calculations]]&lt;br /&gt;
&lt;br /&gt;
Heat capacity defined in the equation below, varies directly with the variance in energy of a system held at constant temperature, but is essentially a measure of how easily a substance can be heated up. Thus, a substance with a larger heat capacity will require more energy to heat up than one with a lower heat capacity.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&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;
The odd relationship between &amp;lt;math&amp;gt;\frac{C_V}{V}&amp;lt;/math&amp;gt; and temperature &amp;lt;math&amp;gt; T^*&amp;lt;/math&amp;gt; can be described through use of the equipartition theorem and the Boltzmann Distribution &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;in part!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The large jumps in heat capacity seen in both data sets at &amp;lt;math&amp;gt;T^* = 2.6&amp;lt;/math&amp;gt; can be explained through phase changes. As the particles simulated are totally symmetric there are no extra degrees of freedom to be reached through an increase in temperature as only translational modes are active through equipartition theorem, therefore the jump in heat capacity must be due to a phase change. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt; Assuming a second order phase transition; as an NVT ensemble is used, and in a first order transition density is discontinuous which is impossible for a system with fixed &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, Heat capacity rises to infinity until after the transition has been completed, after which it lowers again, which can be seen at &amp;lt;math&amp;gt;T^* = 2.8&amp;lt;/math&amp;gt;, due to thermal energy needing to be expended in order to complete the phase transition. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick, ok good&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The decrease of heat capacity with temperature increase excluding phase changes, can be explained through the Density of States. Similar to the anharmonic oscillator model for electron excitation for an atom or particles where as the energy levels are increased, the spacing between the levels decrease,  as the temperature of our system is increased the spacing between energy levels contracts, and thus the higher energy levels come down in energy and become more accessible. This leads to more modes available for promotion in the system, thus ease of promotion of an atom increases, leading to a reduced energy needed to promote and atom and so heat capacity decreases with temperature. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick, good&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be viewed form a different angle with the Boltzmann Distributionː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{N_i} N = \frac{\exp(-E_i/kT) } { \sum_j \exp(-E_j/kT) }&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a specified energy gap, the higher in energy the energy state is, the less likely it is to be populated. If the energy gap is decreased, higher energy states are more likely to be populated, and are therefore more easily reached, and thus the ease of promotion is increased for a decrease in energy gap between states and so heat capacity falls.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Structural Properties of the Radial Distribution Function ===&lt;br /&gt;
[[File:ft1015G(r).png|400px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r).png]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r)N.png|400px|thumb|left|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r)N.png]]&lt;br /&gt;
Using VMD &amp;lt;ref&amp;gt;http://www.ks.uiuc.edu/Research/vmd/&amp;lt;/ref&amp;gt; the RDFs for a solid, liquid, and gas were found and investigated.&lt;br /&gt;
&lt;br /&gt;
The Radial Distribution Function, RDF, describes for a central particle how density varies as a function of distance &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. The RDF can be used to find the co-ordination spheres of solids, liquids and gases, along with the distance each sphere lies from the central particle.&lt;br /&gt;
&lt;br /&gt;
Integrating the RDF gives the number density RDF, which allows users to find out how many particles lie within each co-ordination sphere, and when used in conjunction to the normal RDF, the structure of that phase.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Looking first at the RDF for the solid, the large peaks relate to particles being found at that distance from the central atom. These peaks relate to the co-ordination spheres around the atom in the solid phase. The peaks are sharper than the other phases due to the crystal structure of the solid phase and that the particles are fixed in place inside the lattice. Because of the crystal structure and it’s short- and long-range order, the peaks are sharp due to distinct spheres of co-ordination found at each distance. Looking at the first three peaks, these relate to the first three co-ordination spheres or nearest neighbours of particles around the central atom. The troughs in the RDF relate to the empty space between the co-ordination spheres and lack of particles between the spheres. Looking at the first three peaks in the RDF and number integrated RDF, we can say that the first three co-ordination spheres contain 12, 6, and 24 atoms respectively. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! r&lt;br /&gt;
! Integrated g(r)&lt;br /&gt;
! Co-ordination Number&lt;br /&gt;
|-&lt;br /&gt;
| 1.175&lt;br /&gt;
| 11.85813&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
| 1.675&lt;br /&gt;
| 18.44288&lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| 1.975&lt;br /&gt;
| 42.26256&lt;br /&gt;
| 24 &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lattice spacing is the distance between repeat lattice cells and is present in systems with repeating units, and therefore repeating lattice cells. For the FCC lattice in the solid case, the lattice spacing was 1.175 in L-J reduced units. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The liquid phase in comparison to the solid phase has a highly reduced order due to the lack of long range order and rigidity in the liquid phase, but more order than the gas phase as one can see in the increased amount of peaks that the liquid phase has in comparison to the gas phase which shows more co-ordination spheres in the liquid phase. As liquid particles are not held tightly in place, but can vibrate and move, the co-ordination peaks are broad due to the fact that the particles are slightly spread out across the co-ordination shell as they are bound, but not tightly. This peak occurs around &amp;lt;math&amp;gt;r = 1&amp;lt;/math&amp;gt;, with further co-ordination shells smaller than the closer shells as the short range order of a liquid breaks down at longer range. The troughs, similarly to the solid are due to no particles being in-between the shells and their atomic neighbours.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gas phase has the least order out of the three phases examined. This is easily seen through there being &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;phraseology like this is a bit colloquial&amp;lt;/span&amp;gt; only one peak on the RDF in comparison to the other phases. This peak relates to the very weak attractive forces between gas particles, and their nearest neighbours, effectively leading to one singular diffuse co-ordination sphere, which can be seen by the broadness of the peak. After the first coordination, there is no order relating to the central particle, and so the RDF falls to one after the peak, showing an equal likelihood of finding a gas particle at any distance after the co-ordination sphere, which further emphasises the lack of order in the gas phase.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all phases the RDF is zero until the first co-ordination sphere or right before. This is due to the width of the atoms in the simulation and how the atoms cannot overlap due to the strong repulsive forces. This leads the first particles to be detected by the function at the first co-ordination sphere.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamical Properties and the Diffusion Coefficient===&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015GasMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: A plot of MSD against time for the gas phase]]&lt;br /&gt;
[[File:ft1015GasMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the gas phase]]&lt;br /&gt;
[[File:ft1015LiquidMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;: A plot of MSD against time for  the liquid phase]]&lt;br /&gt;
[[File:ft1015LiquidMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the liquid phase]]&lt;br /&gt;
[[File:ft1015SolidMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;: A plot of MSD against time for the solid phase]]&lt;br /&gt;
[[File:ft1015SolidMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the solid phase]]&lt;br /&gt;
&lt;br /&gt;
Using Mean Squared Displacement, MSD, in an NVT ensemble, one can determine the diffusion coefficient &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;. MSD is with &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;? bit unclear&amp;lt;/span&amp;gt;, respective to a reference position, the deviation of the position of a particle from said point over time, and can be measured through single particle tracking via photon scattering &amp;lt;ref&amp;gt;Phys. Chem. Chem. Phys.,2013, 15, 845&amp;lt;/ref&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
The diffusion coefficient &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;math&amp;gt;D&amp;lt;/math&amp;gt; is directly proportional to MSD as shown below in the equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; MSD = \langle (x(t)-x_0)^2 \rangle = 2Dt &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Plotting MSD against time, gives a graph with a gradient of &amp;lt;math&amp;gt;2D&amp;lt;/math&amp;gt; and therefore a diffusion coefficient equal to &amp;lt;math&amp;gt;\frac{gradient}{2}&amp;lt;/math&amp;gt;. These plots can be seen in figures 4-9 for solid, liquid and gas phases, along with plots of data given to us of those phases with one million atoms. If data points were not used in the linear fit of a graph as they did not follow the linearity expected for the gradient were masked and are shown in red on the plot.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ style=&amp;quot;text-align: centre;&amp;quot; | Diffusion Coefficient&lt;br /&gt;
|-&lt;br /&gt;
! Phase&lt;br /&gt;
! Simulated plots / m^2 s^-1&lt;br /&gt;
! one million atoms plots / m^2 s^-1&lt;br /&gt;
|-&lt;br /&gt;
| Gas&lt;br /&gt;
| 1.17E-10&lt;br /&gt;
| 3.61E-09&lt;br /&gt;
|-&lt;br /&gt;
| Liquid&lt;br /&gt;
| 1.03E-10&lt;br /&gt;
|1.1E-10&lt;br /&gt;
|-&lt;br /&gt;
| Solid&lt;br /&gt;
| -1.4E-17&lt;br /&gt;
| -1E-17&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Looking at each phase individually and the two plots associated with them. &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;what? Needs to ensure you maintain the flow and importantly the subject and object of sentences!&amp;lt;/span&amp;gt; Starting with the gas phase we can see that for our simulated data diffusive rates are reached immediately and stay constant throughout the simulation as there is little to no order in gas phases which was established by use of the RDF function earlier. However, for the one million atom simulation, the rate of diffusion is not initially constant but rises as the simulation progresses until system reaches equilibrium and &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; stabilizes. Thus for the one million atoms plot data points outside the linear region were excluded, as shown in the graph.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rates of diffusion for liquids were lower than that of gases, which is to be expected due to the short range order shown in the RDF functions, thus diffuse more slowly to keep the short-range order intact.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Values of &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; for the solid were extremely small to the point of there being no diffusion occurring in solids. This can be explained by the highly ordered structure which only allows particles to vibrate about a fixed point, this is confirmed through RDF calculations above, with the large change in diffusion coefficients are the start of each simulation due to the system reaching equilibrium. Diffusion will only be able to occur in from a solid phase if a phase change occurred and thus diffusion would occur through a different phase.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A change in value of &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; for the larger one million atoms in comparison to our own simulations was expected as these larger simulations are likely to be more accurate and precise due to the larger amount of averaging that is able to occur, and the larger amount of atoms lowers microscopic effects as the system move into the macro scale.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Be careful write correct conclusions. Also go through your writing careful - there are a few grammar mistakes throughout and never use the active tense!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Through the successful modelling of a L-J system above the critical temperature, the equation of state was found at two different pressures. Number density was found to increase with pressure due to the increased repulsions between particles because of the increased number of collisions, while also found to be inversely proportional to temperature, as at higher temperatures the particles moved further apart, thus lowering the interactions between them and so lowering the number density, this was reinforced using Charles’ law. Deviations from an ideal gas were seen as the L-J system allows for attractive and repulsive forces between the particles, but at higher pressures the difference from ideality was larger due to the increased density of the particles leading to more interactions between them, thus straying from the ideal gas postulates.&lt;br /&gt;
&lt;br /&gt;
It was found that Heat capacity was inversely proportional to temperature &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;not true!&amp;lt;/span&amp;gt; due to the change in density of states associated with an increase in temperature. The increasing of the density of states, and thus the lowering of energy of the higher energy levels allowed for more available energy states for promotion to, and so easier promotions of particles, thus leading to a lowered heat capacity due to the increased ease of promoting a particle to a higher energy state. A peak in the heat capacity seen at &amp;lt;math&amp;gt;T^* = 2.6 &amp;lt;/math&amp;gt; was seen due to a change in phase with the heat capacity reaching infinity until the necessary amount of thermal energy had been input to the system. &lt;br /&gt;
&lt;br /&gt;
The radial and integrated radial distribution functions were successfully used to model the co-ordination spheres of a solid, liquid, and gas, along with numbers for the nearest neighbours, and information on the order and structure of each phase. The gaseous phase was found to have no long range order, and only a single co-ordination shell thus leading to extremely short range order, with a broad peak suggesting a diffuse shell. The liquid phase was found to be more ordered than the gaseous phase due to the increased number of three co-ordination shells, leading to short range, but similarly to the gas no long range order in the phase. The peaks were also broadened, suggesting slightly diffusive co-ordination shells. Solids were found to be highly ordered in structure, with long range and short range order due to its crystal structure. Peaks were sharp due to the set spacings between particles, and the fact that the particles can only vibrate around their fixed positions, not move like in a liquid or gas. The co-ordination of the solid was found to be 12, 4, and 24 in the first three co-ordination shells respectively, along with a lattice spacing of 1.175.&lt;br /&gt;
&lt;br /&gt;
Diffusion coefficients for solids, liquids, and gases were also found using the relationship between MSD and &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;. Solids were found to have an almost zero diffusion gradient, while liquids and gases were much higher. Data for 1000000 atoms simulations for each phase were received and plotted, leading to more accurate results for &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;, which agreed with the values of  &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; received from the simulations of 3375 atoms completed by us.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;maintain passive voice..&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Numerical Integration ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Open the file HO.xls. In it, the velocity-Verlet algorithm is used to model the behaviour of a classical harmonic oscillator. Complete the three columns &amp;quot;ANALYTICAL&amp;quot;, &amp;quot;ERROR&amp;quot;, and &amp;quot;ENERGY&amp;quot;: &amp;quot;ANALYTICAL&amp;quot; should contain the value of the classical solution for the position at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, &amp;quot;ERROR&amp;quot; should contain the &#039;&#039;absolute&#039;&#039; difference between &amp;quot;ANALYTICAL&amp;quot; and the velocity-Verlet solution (i.e. ERROR should always be positive -- make sure you leave the half step rows blank!), and &amp;quot;ENERGY&amp;quot; should contain the total energy of the oscillator for the velocity-Verlet solution. Remember that the position of a classical harmonic oscillator is given by &amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt; (the values of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; are worked out for you in the sheet).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: For the default timestep value, 0.1, estimate the positions of the maxima in the ERROR column as a function of time. Make a plot showing these values as a function of time, and fit an appropriate function to the data.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Experiment with different values of the timestep. What sort of a timestep do you need to use to ensure that the total energy does not change by more than 1% over the course of your &amp;quot;simulation&amp;quot;? Why do you think it is important to monitor the total energy of a physical system when modelling its behaviour numerically? &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015Analytical.png|480px|thumb|center|]]&lt;br /&gt;
[[File:ft1015Error.png|480px|thumb|center|]]&lt;br /&gt;
[[File:ft1015Energy5.png|480px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
The total energy of a classical harmonic system is given by &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt; for the kinetic and potential energies respectively. Combing these give the total energy of the system which should be a constant for an isolated system as no energy enters or leaves the system. A time-step value of 0.2 s gives a maximum difference in energy of 1% of the total starting energy, and so ensures a good approximation to realistic behavior. The Velocity-Verlet algorithm will have fluctuations in the total energy of the system as it is only an approximation through a Taylor-series expansion, however, minimizing these fluctuations provides a more accurate simulation and therefore for a physical system would provide more accurate thermodynamic properties of the system. Decreasing the time-step, and so decreasing the energy fluctuations will provide more accurate results at the cost of increased simulation time needed for the same time frame of a system, and so is a trade-off between time and accuracy for the simulation.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&#039;&#039;&#039;For a single Lennard-Jones interaction, &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;, find the separation, &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;, at which the potential energy is zero. What is the force at this separation? Find the equilibrium separation, &amp;lt;math&amp;gt;r_{eq}&amp;lt;/math&amp;gt;, and work out the well depth &amp;lt;math&amp;gt;(\phi\left(r_{eq}\right))&amp;lt;/math&amp;gt;. Evaluate the integrals &amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\int_{3\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt; when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For the separation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r_0^{12}} - \frac{\sigma^6}{r_0^6} \right)&amp;lt;/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{\sigma^{12}}{r_0^{12}} - \frac{\sigma^6}{r_0^6} =0&amp;lt;/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{\sigma^{12}}{r_0^{12}}=\frac{\sigma^6}{r_0^6} &amp;lt;/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{\sigma^6}{r_0^6} =1&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\sigma^6=r_0^6 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r_0=\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The force experienced at &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 4\epsilon \left( \frac{12\sigma^{12}}{r_0^{13}} -\frac{6\sigma^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 24\epsilon \left( \frac{2\sigma^{12}}{r_0^{13}} -\frac{\sigma^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as&#039;&#039;&#039; &amp;lt;math&amp;gt;r_0=\sigma&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 24\epsilon \left( \frac{2\sigma^{12}}{\sigma^{13}} -\frac{\sigma^6}{\sigma^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;F = 24\epsilon \left( \frac{2}{\sigma} -\frac{1}{\sigma} \right)&amp;lt;/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{24\epsilon}{\sigma}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E&#039;&#039;&#039;quilibrium separation, &amp;lt;math&amp;gt;r_{eq}&amp;lt;/math&amp;gt;, is given by finding the minimum of the potential well:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr}= 24\epsilon \bigg( \frac{2\sigma^{12}}{r^{13}} -\frac{1\sigma^6}{r^7}\bigg)=0&amp;lt;/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{2\sigma^{12}}{r^{13}} = \frac{\sigma^6}{r^7}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;2\sigma^6=r^6&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; r_{eq} = 2^{1/6}\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Potential well depth:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr} = 4\epsilon \bigg( \frac{\sigma^{12}}{(2^{1/6}\sigma)^{12}} - \frac{\sigma^6}{(2^{1/6}\sigma)^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = 4\epsilon \bigg( \frac{\sigma^{12}}{4\sigma^{12}} - \frac{\sigma^6}{2\sigma^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = 4\epsilon \bigg( \frac{1}{4} - \frac{1}{2}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = -\epsilon &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Integrals when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r=4\int_{2\sigma}^\infty \bigg( \frac{1}{r^{12}} - \frac{1}{r^6}\bigg)\mathrm{d}r&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{2\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-0.0248&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r=\int_{2.5\sigma }^{\infty} 4\left ( \frac{1}{r^{12}}- \frac{1}{r^{6}}\right ) dr&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{2.5\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-8.18\times10^{-3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{3\sigma}^\infty \phi\left(r\right)\mathrm{d}r=\int_{3\sigma }^{\infty} 4\left ( \frac{1}{r^{12}}- \frac{1}{r^{6}}\right ) dr&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{3\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-3.29\times10^{-3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Estimate the number of water molecules in 1ml of water under standard conditions. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming  1 mL of water has a mass of 1 g under standard conditions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;N=\frac{M}{M(H_2 O)}N_a&amp;lt;/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\times 6.022 \times 10^{23}}{18.0}=3.35 \times 10^{22}\ &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;:Estimate the volume of &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt; water molecules under standard conditions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming standard conditionsː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;M =\frac{10000 \times M(H_2 O)}{N_a}&amp;lt;/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{10000 \times 18.0}{6.022 \times 10^{23}}=2.989 \times 10^{-19}\ g &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{M}{\rho }&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{2.989 \times 10^{-19}}{1 \times 10^{-6}}= 2.989 \times 10^{-25}\ m^{3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Consider an atom at position &amp;lt;math&amp;gt;\left(0.5, 0.5, 0.5\right)&amp;lt;/math&amp;gt; in a cubic simulation box which runs from &amp;lt;math&amp;gt;\left(0, 0, 0\right)&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\left(1, 1, 1\right)&amp;lt;/math&amp;gt;. In a single timestep, it moves along the vector &amp;lt;math&amp;gt;\left(0.7, 0.6, 0.2\right)&amp;lt;/math&amp;gt;. At what point does it end up, &#039;&#039;after the periodic boundary conditions have been applied&#039;&#039;?&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the periodic boundary conditions are applied, the atom ends up atː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\left(0.2, 0.1, 0.7\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: The Lennard-Jones parameters for argon are &amp;lt;math&amp;gt;\sigma = 0.34\mathrm{nm}, \epsilon\ /\ k_B= 120 \mathrm{K}&amp;lt;/math&amp;gt;. If the LJ cutoff is &amp;lt;math&amp;gt;r^* = 3.2&amp;lt;/math&amp;gt;, what is it in real units? What is the well depth in &amp;lt;math&amp;gt;\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt;? What is the reduced temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt; in real units?&lt;br /&gt;
&lt;br /&gt;
For the LJ cutoffː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r^*=\frac{r}{\sigma}=3.2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;3.2 \times 0.34 \times 10^{-9}=r&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=1.09 \times 10^{-9} \ m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the well depth, from aboveː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr} = 4\epsilon \bigg( \frac{\sigma^{12}}{(2^{1/6}\sigma)^{12}} - \frac{\sigma^6}{(2^{1/6}\sigma)^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = -\epsilon &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thereforeː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; -\epsilon = -120k_B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-1.657^{-21} \ J&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-0.9977 \ kJ \ mol^{-1}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the reduced temperatureː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T^* = \frac{T}{\epsilon}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1.5 = \frac{T}{120}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=1.5 \times 120&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=180 \ K&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
&lt;br /&gt;
=== Creating the simulation box ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Why do you think giving atoms random starting coordinates causes problems in simulations? Hint: what happens if two atoms happen to be generated close together?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Atoms could be generated very close to one another which would cause them to shoot out at a high speed due to the extremely large repulsive forces between the atoms. This would affect the simulation by disturbing the other atoms around it due to the high speed atoms travelling away from each other and effecting the interactions between all the other particles. By using a lattice, favorable distances can be chosen for a simulation to run smoothly and take a short amount of time to reach equilibrium.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Satisfy yourself that this lattice spacing corresponds to a number density of lattice points of &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt;. Consider instead a face-centred cubic lattice with a lattice point number density of 1.2. What is the side length of the cubic unit cell?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{1}{0.8} = 1.25&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 1.25^\frac{1}{3} = 1.07722&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a face-centred cubic latticeː&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = \sqrt[3](\frac{4}{1.2})=1.4938&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = (\frac{4}{1.2})^\frac{1}{3} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = 1.49380 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Consider again the face-centred cubic lattice from the previous task. How many atoms would be created by the create_atoms command if you had defined that lattice instead?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An FCC lattice contains 4 lattice points, therefore for a box of side length 10, there are 4000 lattice points and therefore 4000 atoms will be generated.&lt;br /&gt;
&lt;br /&gt;
=== Setting the properties of the atoms ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Using the [http://lammps.sandia.gov/doc/Section_commands.html#cmd_5 LAMMPS manual], find the purpose of the following commands in the input script:&#039;&#039;&#039;&lt;br /&gt;
&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;
&lt;br /&gt;
&#039;mass 1 1.0&#039; Relates to the mass of &#039;&#039;&#039;atom type&#039;&#039;&#039; &#039;&#039;&#039;1&#039;&#039;&#039; being &#039;&#039;&#039;1.0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;pair_style lj/cut 3.0&#039; computes the standard LJ potential, but gives a cutoff point for the potential at point &amp;lt;&amp;lt;math&amp;gt;r_c&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; being the distance between the atoms, along with having no colombic attractions between the atoms.&lt;br /&gt;
&lt;br /&gt;
&#039;pair_coeff * * 1.0 1.0&#039; Sets the coefficents for all l,J pairs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Given that we are specifying &amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;, which integration algorithm are we going to use?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will be using the velocity Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|centre|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
=== Running the simulation ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Look at the lines below.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
variable timestep equal 0.001&lt;br /&gt;
variable n_steps equal floor(100/${timestep})&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION ###&lt;br /&gt;
run ${n_steps}&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;The second line (starting &amp;quot;variable timestep...&amp;quot;) tells LAMMPS that if it encounters the text ${timestep} on a subsequent line, it should replace it by the value given. In this case, the value ${timestep} is always replaced by 0.001. In light of this, what do you think the purpose of these lines is? Why not just write:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timestep 0.001&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;This is so timestep is defined as a variable and so can be changed later after the code has been run so it does not need to be defined again and again throughout the code, but can be overwritten easily for use.&lt;br /&gt;
&lt;br /&gt;
=== Checking equilibration ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: make plots of the energy, temperature, and pressure, against time for the 0.001 timestep experiment (attach a picture to your report). Does the simulation reach equilibrium? How long does this take? When you have done this, make a single plot which shows the energy versus time for all of the timesteps (again, attach a picture to your report). Choosing a timestep is a balancing act: the shorter the timestep, the more accurately the results of your simulation will reflect the physical reality; short timesteps, however, mean that the same number of simulation steps cover a shorter amount of actual time, and this is very unhelpful if the process you want to study requires observation over a long time. Of the five timesteps that you used, which is the largest to give acceptable results? Which one of the five is a &#039;&#039;particularly&#039;&#039; bad choice? Why?&#039;&#039;&#039;&lt;br /&gt;
[[File:Ft1015Equilibrium7.PNG|600px|thumb|centre|A zoomed in plot of the total energy vs time plot to show that the system equilibrates after 0.002 ps]]&lt;br /&gt;
[[File:Ft1015Energy7.PNG|600px|thumb|centre|Total energy vs time for a 0.001 time step]]&lt;br /&gt;
[[File:Ft1015Pressure7.PNG|600px|thumb|centre|Pressure vs time for a 0.001 time step]]&lt;br /&gt;
[[File:Ft1015Temperature7.PNG|600px|thumb|centre|Temperature vs time for a 0.001 time step]]&lt;br /&gt;
[[File:ft1015_Timestep_Graph_Plots.PNG|600px|thumb|centre|A plot five different timesteps and the energies they converge on]]&lt;br /&gt;
The largest timestep of 0.015 is a particularly bad choice as the energy does not converge, but increases dramatically, something which should not happen. The largest to give acceptable results is 0.0025, as though 0.001 and 0.0025 both converge to the same value, 0.0025 allows a simulation which simulates 250% more time than the 0.001 timestep. This is more practical as it allows more simulations and longer simulations to be done in the same time-frame as the smaller timestep, without losing accuracy or precision.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
=== Temperature and Pressure Control ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Choose 5 temperatures (above the critical temperature&amp;amp;nbsp;), and two pressures (you can get a good idea of what a reasonable pressure is in Lennard-Jones units by looking at the average pressure of your simulations from the last section). This gives ten phase points — five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen&amp;amp;nbsp;&amp;amp;nbsp;points. You should be able to use the results of the previous section to choose a timestep. Submit these ten jobs to the HPC portal. While you wait for them to finish, you should read the next section.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: We need to choose &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt; so that the temperature is correct &amp;lt;math&amp;gt;T = \mathfrak{T}&amp;lt;/math&amp;gt; if we multiply every velocity &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;. We can write two equations:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solve these to determine &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2}{\frac{1}{2}\sum_i v_i^2} = \frac{\frac{3}{2} N k_B \mathfrak{T}}{\frac{3}{2} N k_B T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\sum_i \left(\gamma v_i\right)^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\sum_i \gamma^2 v_i^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\gamma^2 \sum_i v_i^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \gamma^2 = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Use the&amp;amp;nbsp;manual page&amp;amp;nbsp;to find out the importance of the three numbers&amp;amp;nbsp;&#039;&#039;100 1000 100000&#039;&#039;. How often will values of the temperature, etc., be sampled for the average? How many measurements contribute to the average? Looking to the following line, how much time will you simulate?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first number defines the length of the timestep between data points taken for the calculation of the average, the second number relates to how many timesteps will be used to calculate the average at the specificed time, the last number specifies at what timestep will an average be taken. Thus 100 1000 100000 means that data points for the average will be taken every 100 timesteps, and 1000 will be used to calculate the average at 100000 timesteps. The time simulated will be 100000 * the timestep in seconds, which for 0.0025 s per timestep means that 250 s will be simulated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: When your simulations have finished, download the log files as before. At the end of the log file, LAMMPS will output the values and errors for the pressure, temperature, and density &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt;. Use software of your choice to plot the density as a function of temperature for both of the pressures that you simulated.  Your graph(s) should include error bars in both the x and y directions. You should also include a line corresponding to the density predicted by the ideal gas law at that pressure. Is your simulated density lower or higher? Justify this. Does the discrepancy increase or decrease with pressure?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015_Standard_Error_plots_graph.PNG|600px|thumb|centre| A plot of average density against average critical temperature of the system with standard error error bars]]&lt;br /&gt;
&lt;br /&gt;
The discrepancies between the idealised and simulated number density results can be attributed to the simulation being non-ideal. The basis of a L-J system is that the particles interact with each other, with a short range repulsive term, and a longer range attractive term. The ideal gas law however, assumes that there are no interactions between particles and thus, due to the short range highly repulsive term, the particles are further apart than in a system with no interactions and therefore the number density of the simulated systems are lower than their idealised counterparts.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At higher pressures the deviations from ideality are larger than that of a lower pressure simulation. This arises from the fact that at higher pressures, the number density is higher due to decreased cell volume, leading to decreased distances between particles and therefore increased interactions between them as they collide with each other more frequently. This increase in interactions between particles leads to a large deviation from ideality and so a larger difference between simulated and ideal law data for higher pressures.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
===Heat Capacity Calculation===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: As in the last section, you need to run simulations at ten phase points. In this section, we will be in density-temperature &amp;lt;math&amp;gt;\left(\rho^*, T^*\right)&amp;lt;/math&amp;gt; phase space, rather than pressure-temperature phase space. The two densities required at &amp;lt;math&amp;gt;0.2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt;, and the temperature range is &amp;lt;math&amp;gt;2.0, 2.2, 2.4, 2.6, 2.8&amp;lt;/math&amp;gt;. Plot &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; as a function of temperature, where &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; is the volume of the simulation cell, for both of your densities (on the same graph). Is the trend the one you would expect? Attach an example of one of your input scripts to your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Ft1015HeatCapacityScript.PNG|600px|thumb|centre|An image of one of the scripts used for the heat capacity calculations]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015HeatCapacity.png|600px|thumb|centre|A plot of &amp;lt;math&amp;gt; {C_{V}}/{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; {T}/{T*} &amp;lt;/math&amp;gt; for two different densities]]&lt;br /&gt;
&lt;br /&gt;
The decrease of heat capacity with temperature increase excluding phase changes, can be explained through the Density of States. Similar to the anharmonic oscillator model for electron excitation for an atom or particles where as the energy levels are increased, the spacing between the levels decrease,  as the temperature of our system is increased the spacing between energy levels contracts, and thus the higher energy levels come down in energy and become more accessible. This leads to more modes available for promotion in the system, thus ease of promotion of an atom increases, leading to a reduced energy needed to promote and atom and so heat capacity decreases with temperature.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The large jumps in heat capacity seen in both data sets at &amp;lt;math&amp;gt;T^* = 2.6&amp;lt;/math&amp;gt; can be explained through phase changes. As the particles simulated are totally symmetric there are no extra degrees of freedom to be reached through an increase in temperature as only translational modes are active through equipartition theorem, therefore the jump in heat capacity must be due to a phase change. Assuming a second order phase transition; as an NVT ensemble is used, and in a first order transition density is discontinuous which is impossible for a system with fixed &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, Heat capacity rises to infinity until after the transition has been completed, after which it lowers again, which can be seen at &amp;lt;math&amp;gt;T^* = 2.8&amp;lt;/math&amp;gt;, due to thermal energy needing to be expended in order to complete the phase transition.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
===Simulations in this section===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: perform simulations of the Lennard-Jones system in the three phases. When each is complete, download the trajectory and calculate &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\int g(r)\mathrm{d}r&amp;lt;/math&amp;gt;. Plot the RDFs for the three systems on the same axes, and attach a copy to your report. Discuss qualitatively the differences between the three RDFs, and what this tells you about the structure of the system in each phase. In the solid case, illustrate which lattice sites the first three peaks correspond to. What is the lattice spacing? What is the coordination number for each of the first three peaks?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r).png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r).png]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r)N.png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r)N.png]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the gas one broad peak that drops to 1 quickly after the peak finishes, leading to there being no long range order as the probability of finding an particle outside of the first shell is equal everywhere. This shows that there is no long range order in a gas, only extremely short range order. The peak could be broad due to weak attractive effects holding the nearest neighbors close, but not tightly holding them in place.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The liquid RDF has three broad peaks, leading to 3 co-ordination spheres of particles held tightly, but not so tightly that the particles cannot move, therefore the spheres are very lightly diffuse, but like the gas the RDF drops to 1 after the last peaking, leading to no long range order in a liquid.&lt;br /&gt;
&lt;br /&gt;
The RDF of the solid has many sharp peaks corresponding to the solid atoms fixed positions and long range order in the crystal lattice. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is the minimum distance between lattice unit cells which is equal to 1.175.&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;tick&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! r&lt;br /&gt;
! Integrated g(r)&lt;br /&gt;
! Co-ordination Number&lt;br /&gt;
|-&lt;br /&gt;
| 1.175&lt;br /&gt;
| 11.85813&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
| 1.675&lt;br /&gt;
| 18.44288&lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| 1.975&lt;br /&gt;
| 42.26256&lt;br /&gt;
| 24 &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Dynamical properties and the diffusion coefficient =&lt;br /&gt;
&lt;br /&gt;
=== Simulations in this Section ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: In the D subfolder, there is a file&amp;amp;nbsp;&#039;&#039;liq.in&#039;&#039;&amp;amp;nbsp;that will run a simulation at specified density and temperature to calculate the mean squared displacement and velocity autocorrelation function of your system. Run one of these simulations for a vapour, liquid, and solid. You have also been given some simulated data from much larger systems (approximately one million atoms). You will need these files later.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: make a plot for each of your simulations (solid, liquid, and gas), showing the mean squared displacement (the &amp;quot;total&amp;quot; MSD) as a function of timestep. Are these as you would expect? Estimate &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; in each case. Be careful with the units! Repeat this procedure for the MSD data that you were given from the one million atom simulations.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
From https://en.wikipedia.org/wiki/Mean_squared_displacementː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; MSD = \langle (x(t)-x_0)^2 \rangle = 2Dt &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015GasMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015GasMSD.png]]&lt;br /&gt;
[[File:ft1015GasMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: ft1015GasMSD_1m.png]]&lt;br /&gt;
[[File:ft1015LiquidMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;: ft1015LiquidMSD.png]]&lt;br /&gt;
[[File:ft1015LiquidMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;: ft1015LiquidMSD_1m.png]]&lt;br /&gt;
[[File:ft1015SolidMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;: ft1015SolidMSD.png]]&lt;br /&gt;
[[File:ft1015SolidMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;: ft1015SolidMSD_1m.png]]&lt;br /&gt;
&lt;br /&gt;
=== EXTENSION: Velocity Autocorrelation Function ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: In the theoretical section at the beginning, the equation for the evolution of the position of a 1D harmonic oscillator as a function of time was given. Using this, evaluate the normalised velocity autocorrelation function for a 1D harmonic oscillator (it is analytic!):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Be sure to show your working in your writeup. On the same graph, with x range 0 to 500, plot &amp;lt;math&amp;gt;C\left(\tau\right)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\omega = 1/2\pi&amp;lt;/math&amp;gt; and the VACFs from your liquid and solid simulations. What do the minima in the VACFs for the liquid and solid system represent? Discuss the origin of the differences between the liquid and solid VACFs. The harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. Why is this? Attach a copy of your plot to your writeup.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Use the trapezium rule to approximate the integral under the velocity autocorrelation function for the solid, liquid, and gas, and use these values to estimate &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; in each case. You should make a plot of the running integral in each case. Are they as you expect? Repeat this procedure for the VACF data that you were given from the one million atom simulations. What do you think is the largest source of error in your estimates of D from the VACF?&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:FabianThomasThirdYearLiquidFlowSimulation&amp;diff=821984</id>
		<title>Rep:FabianThomasThirdYearLiquidFlowSimulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:FabianThomasThirdYearLiquidFlowSimulation&amp;diff=821984"/>
		<updated>2025-09-17T13:27:55Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page MRD:FabianThomasThirdYearLiquidFlowSimulation to Rep:FabianThomasThirdYearLiquidFlowSimulation without leaving a redirect: Move to report namespace&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
Lennard-Jones simulations of solids, liquids, and gases were run through LAMMPS on the imperial HPC service. How number density varied against temperature and at different pressures, radial distribution functions of L-J solids, liquids, and gases, Mean Squared Displacements, Diffusion coefficients, and the variation of heat capacity with temperature were investigated in order to understand more about phase properties, and specifically those that can be modelled using a L-J simulation. &amp;lt;ref&amp;gt; Jean-Pierre Hansen and Loup Verlet, Phys. Rev. 184, 151&amp;lt;/ref&amp;gt; For the equation of state, number density increased with pressure, but was inversely proportional to an increasing temperature. Heat capacity was determined to be inversely proportional to temperature due to a change in density of states for a fixed NVT ensemble. The radial distribution function allowed for analysis of solid, liquid, and gas simulations of 3375 atoms and allowed for the probing of the structure of each phase, along with details about the co-ordination spheres and numbers of nearest neighbors. Diffusion coefficients were found using the Mean Squared Displacements for solids, liquids and gases, along with simulations with one million atoms for each phase as well, with values for &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; of&amp;lt;math&amp;gt;-1 \times 10^{-17}&amp;lt;/math&amp;gt;,&amp;lt;math&amp;gt;1.1 \times 10^{-10}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; 3.61 \times 10^{-9} \ m^2 s^{-1}&amp;lt;/math&amp;gt; for the  solid liquid and gas phases.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Phase changes occur every day in daily life, and are common place in the world around us. From boiling water to be used in cooking or in steam generators to produce electricity, to instant heat packs, where sodium acetate is super cooled, and upon perturbation instantly raises the pack’s temperature significantly to its freezing point at 54 degrees. These are all every day examples of how phase changes are used and how research into phase changes can provide new avenues for products and areas of research such as new instant-heat pack materials, all based on previous phase change research.&lt;br /&gt;
&lt;br /&gt;
Phase change materials; not unlike sodium acetate, is a large area of research today. Materials capable of storing large amounts of energy through phase changes such as the solid to liquid transition or solid to solid transitions, &amp;lt;ref&amp;gt;Belén Zalba, José M Marı́n, Luisa F. Cabeza, Harald Mehling, Review on thermal energy storage with phase change: materials, heat transfer analysis and applications, In Applied Thermal Engineering, Volume 23, Issue 3, 2003, Pages 251-283&amp;lt;/ref&amp;gt; with applications such as improved solar cell energy storage&amp;lt;ref&amp;gt;Murat Kenisarin, Khamid Mahkamov, Solar energy storage using phase change materials, In Renewable and Sustainable Energy Reviews, Volume 11, Issue 9, 2007, Pages 1913-1965&amp;lt;/ref&amp;gt;, and materials able to change state for useful purposes in textiles&amp;lt;ref&amp;gt;S. Mondal, Phase change materials for smart textiles – An overview, In Applied Thermal Engineering, Volume 28, Issues 11–12, 2008, Pages 1536-1550&amp;lt;/ref&amp;gt; these simulations carried out can further progress phase-change transition research, and can be used to go on to model more complex systems for use with this research.&lt;br /&gt;
&lt;br /&gt;
Modelling theses systems using L-J simulations provides a fast and easy method to compute the phase change temperatures, order, and structure of the phases transitioned through. Thus simplifying the need to synthesise the molecule beforehand to view the properties of the system. Some of the systems with the largest heat of fusion are systems such as Lithium or water, which are very easily simulated through L-J models and provide an excellent way to probe the phase diagrams of these systems. The ease of determining the crystal structure of solids, is very largely beneficial for the phase change materials, as it allows for easy categorisation of the solid phases, such as ice which has over ten different solid crystalline phases depending on the pressure and temperature of the system, which is modelled accurately and quickly using an L-J simulation through use of radial distribution functions. Heat capacity measurements of phases are of a large interest in phase-change materials as materials with large heat capacities coupled with a large latent heat of fusion allows for the storage of very large amount of energy in a small amount of solid. But all these simulations lead to further questions, how far can L-J simulations go in helping to discover phase change materials, and how accurately can the simulations predict real heat capacities, structures and transitions of unmade molecules?&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
All simulations were run as Lennard-Jones systems through the Imperial College HPC facility &amp;lt;ref&amp;gt;https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/hpc/&amp;lt;/ref&amp;gt; using the LAMMPS runtime option, with all graphs and respective data produced and analysed using Origin Pro &amp;lt;ref&amp;gt;http://www.originlab.com/Origin&amp;lt;/ref&amp;gt;.&lt;br /&gt;
Equation of State simulations were run using an NpT ensemble. Using dimensionless L-J reduced units &amp;lt;ref&amp;gt;http://cbio.bmt.tue.nl/pumma/index.php/Manual/ReducedUnits&amp;lt;/ref&amp;gt;, pressures &amp;lt;math&amp;gt;p^*&amp;lt;/math&amp;gt; of 1.8 and 2.6 were used, along with temperatures above the critical temperature &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; = 1.5 of 2, 2.5, 3, 3.5 and 4. A timestep of 0.0025 was used, as it was found in the earlier stages of the experiment to be as accurate as a timestep of 0.001, but would run the simulation 250% faster in comparison. As it was a liquid that was to be simulated, a simple cubic lattice was used for the simulation.&lt;br /&gt;
&lt;br /&gt;
Heat Capacity simulations were run at &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; = 0.2 and 0.8, and &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; = 2.0, 2.2, 2.4, 2.6, 2.8 in L-J reduced units. A simple cubic crystal was melted under microcanonical NVE conditions. As heat capacity, shown below, is directly proportional to the variance of energy of the system if temperature is held constant, after melting, the system was put under an NVT ensemble to hold the temperature constant but allow the energy to vary.&lt;br /&gt;
&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;
Where &amp;lt;math&amp;gt;C_V&amp;lt;/math&amp;gt; is Heat Capacity, &amp;lt;math&amp;gt;\mathrm{Var}\left[E\right]&amp;lt;/math&amp;gt; is the variance in Energy, &amp;lt;math&amp;gt;k_b&amp;lt;/math&amp;gt; is Boltzmann&#039;s constant, &amp;lt;math&amp;gt;\left\langle E^2\right\rangle&amp;lt;/math&amp;gt; is mean squared energy, &amp;lt;math&amp;gt;\left\langle E\right\rangle^2&amp;lt;/math&amp;gt; is mean energy squared, and &amp;lt;math&amp;gt;N^2&amp;lt;/math&amp;gt; is the number of atoms in the simulation squared.&lt;br /&gt;
&lt;br /&gt;
A factor of &amp;lt;math&amp;gt;N^2&amp;lt;/math&amp;gt; is added to the equation, as LAMMPS divides all energies output by the number of particles in the system, therefor giving &amp;lt;math&amp;gt;\frac{E}{N}&amp;lt;/math&amp;gt; for any value of &amp;lt;math&amp;gt;E&amp;lt;/math&amp;gt; measured. Using this equation, the heat capacity was found and &amp;lt;math&amp;gt;\frac {C_V}{V}&amp;lt;/math&amp;gt; was plotted against &amp;lt;math&amp;gt;T^*&amp;lt;/math&amp;gt; to view how the heat capacity varied with respect to temperature.&lt;br /&gt;
&lt;br /&gt;
Using VMD software &amp;lt;ref&amp;gt;http://www.ks.uiuc.edu/Research/vmd/&amp;lt;/ref&amp;gt;, the radial distributions functions for the solid, liquid, and vapour phases of a L-J fluid were calculated, setting selection 1, and 2 to ‘all’, and delta r to 0.05. Using these plots the co-ordination sphere radii and numbers of the solid, liquid, and vapour phases were determined.&lt;br /&gt;
&lt;br /&gt;
Using the equation &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; and the relationship between D and Mean-Squared Displacement &amp;lt;math&amp;gt;\langle (x(t)-x_0)^2 \rangle = 2Dt&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; was calculated for solid, liquid, and vapour phases by extracting the gradient from the plot of Mean-Squared Displacement against time, giving a gradient of &amp;lt;math&amp;gt;2D&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== Equation of State ===&lt;br /&gt;
&lt;br /&gt;
[[File:Ft1015_Standard_Error_plots_graph.PNG|480px|thumb|left|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: A plot of average density against average critical temperature of the system with standard error error bars]]&lt;br /&gt;
&lt;br /&gt;
From figure 1, we can see that number density &amp;lt;math&amp;gt; \frac{N}{V}&amp;lt;/math&amp;gt; is inversely proportional to &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. This can be rationalised by looking at the results of the L-J reduced gas law &amp;lt;math&amp;gt; \frac{N}{V} = \frac{p}{T}&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The discrepancies between the idealised and simulated number density results can be attributed to the simulation being non-ideal. The basis of a L-J system is that the particles interact with each other, with a short range repulsive term, and a longer range attractive term. The ideal gas law however, assumes that there are no interactions between particles and thus, due to the short range highly repulsive term, the particles are further apart than in a system with no interactions and therefore the number density of the simulated systems are lower than their idealised counterparts.&lt;br /&gt;
	&lt;br /&gt;
As the temperature is increased, the kinetic energy of the particles increases leading to an increase in the average distance between particles in order to reduce repulsions between particles to a minimum. This can be seen in Charles’ Lawː&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{N_1}{T_1} = \frac{N_2}{V_2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
As the temperature is increased to &amp;lt;math&amp;gt;T_2&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;V_2&amp;lt;/math&amp;gt; must increase, thus leading to a decrease in number density. As the particles are further away from each other on average, the particles interact with one another less, and so become more ‘ideal’, reducing the difference between the simulated result and the gas law result.&lt;br /&gt;
	&lt;br /&gt;
This result is the opposite for lower temperatures. As the temperature is reduced, so is the kinetic energy, and therefore the particles are less able to overcome the attractive and repulsive forces between them. This leads to larger interactions between the particles due to their increased proximity to each other, and so simulated results deviate from the gas law more at lower temperatures. From Charles’ Law again, we can see that the volume of the cell will decrease as temperature decreases, and so number density will increase at lower temperatures.&lt;br /&gt;
&lt;br /&gt;
From the graphs, we can see that, at higher pressures the deviations from ideality are larger than that of a lower pressure simulation. This arises from the fact that at higher pressures, the number density is higher due to decreased cell volume, leading to decreased distances between particles and therefore increased interactions between them as they collide with each other more frequently. This increase in interactions between particles leads to a large deviation from ideality and so a larger difference between simulated and ideal law data for higher pressures.&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity ===&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015HeatCapacity.png|480px|thumb|left|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: A plot of &amp;lt;math&amp;gt; {C_{V}}/{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; {T*} &amp;lt;/math&amp;gt; for two different densities]]&lt;br /&gt;
[[File:Ft1015HeatCapacityScript.PNG|250px|thumb|right|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: An image of a sample of the script used for one of the heat capacity calculations]]&lt;br /&gt;
&lt;br /&gt;
Heat capacity defined in the equation below, varies directly with the variance in energy of a system held at constant temperature, but is essentially a measure of how easily a substance can be heated up. Thus, a substance with a larger heat capacity will require more energy to heat up than one with a lower heat capacity.&lt;br /&gt;
&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;
The odd relationship between &amp;lt;math&amp;gt;\frac{C_V}{V}&amp;lt;/math&amp;gt; and temperature &amp;lt;math&amp;gt; T^*&amp;lt;/math&amp;gt; can be described through use of the equipartition theorem and the Boltzmann Distribution&lt;br /&gt;
&lt;br /&gt;
The large jumps in heat capacity seen in both data sets at &amp;lt;math&amp;gt;T^* = 2.6&amp;lt;/math&amp;gt; can be explained through phase changes. As the particles simulated are totally symmetric there are no extra degrees of freedom to be reached through an increase in temperature as only translational modes are active through equipartition theorem, therefore the jump in heat capacity must be due to a phase change. Assuming a second order phase transition; as an NVT ensemble is used, and in a first order transition density is discontinuous which is impossible for a system with fixed &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, Heat capacity rises to infinity until after the transition has been completed, after which it lowers again, which can be seen at &amp;lt;math&amp;gt;T^* = 2.8&amp;lt;/math&amp;gt;, due to thermal energy needing to be expended in order to complete the phase transition.&lt;br /&gt;
&lt;br /&gt;
The decrease of heat capacity with temperature increase excluding phase changes, can be explained through the Density of States. Similar to the anharmonic oscillator model for electron excitation for an atom or particles where as the energy levels are increased, the spacing between the levels decrease,  as the temperature of our system is increased the spacing between energy levels contracts, and thus the higher energy levels come down in energy and become more accessible. This leads to more modes available for promotion in the system, thus ease of promotion of an atom increases, leading to a reduced energy needed to promote and atom and so heat capacity decreases with temperature.&lt;br /&gt;
&lt;br /&gt;
This can be viewed form a different angle with the Boltzmann Distributionː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{N_i} N = \frac{\exp(-E_i/kT) } { \sum_j \exp(-E_j/kT) }&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a specified energy gap, the higher in energy the energy state is, the less likely it is to be populated. If the energy gap is decreased, higher energy states are more likely to be populated, and are therefore more easily reached, and thus the ease of promotion is increased for a decrease in energy gap between states and so heat capacity falls.&lt;br /&gt;
&lt;br /&gt;
=== Structural Properties of the Radial Distribution Function ===&lt;br /&gt;
[[File:ft1015G(r).png|400px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r).png]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r)N.png|400px|thumb|left|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r)N.png]]&lt;br /&gt;
Using VMD &amp;lt;ref&amp;gt;http://www.ks.uiuc.edu/Research/vmd/&amp;lt;/ref&amp;gt; the RDFs for a solid, liquid, and gas were found and investigated.&lt;br /&gt;
&lt;br /&gt;
The Radial Distribution Function, RDF, describes for a central particle how density varies as a function of distance &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. The RDF can be used to find the co-ordination spheres of solids, liquids and gases, along with the distance each sphere lies from the central particle.&lt;br /&gt;
&lt;br /&gt;
Integrating the RDF gives the number density RDF, which allows users to find out how many particles lie within each co-ordination sphere, and when used in conjunction to the normal RDF, the structure of that phase.&lt;br /&gt;
&lt;br /&gt;
Looking first at the RDF for the solid, the large peaks relate to particles being found at that distance from the central atom. These peaks relate to the co-ordination spheres around the atom in the solid phase. The peaks are sharper than the other phases due to the crystal structure of the solid phase and that the particles are fixed in place inside the lattice. Because of the crystal structure and it’s short- and long-range order, the peaks are sharp due to distinct spheres of co-ordination found at each distance. Looking at the first three peaks, these relate to the first three co-ordination spheres or nearest neighbours of particles around the central atom. The troughs in the RDF relate to the empty space between the co-ordination spheres and lack of particles between the spheres. Looking at the first three peaks in the RDF and number integrated RDF, we can say that the first three co-ordination spheres contain 12, 6, and 24 atoms respectively. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! r&lt;br /&gt;
! Integrated g(r)&lt;br /&gt;
! Co-ordination Number&lt;br /&gt;
|-&lt;br /&gt;
| 1.175&lt;br /&gt;
| 11.85813&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
| 1.675&lt;br /&gt;
| 18.44288&lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| 1.975&lt;br /&gt;
| 42.26256&lt;br /&gt;
| 24 &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lattice spacing is the distance between repeat lattice cells and is present in systems with repeating units, and therefore repeating lattice cells. For the FCC lattice in the solid case, the lattice spacing was 1.175 in L-J reduced units.&lt;br /&gt;
&lt;br /&gt;
The liquid phase in comparison to the solid phase has a highly reduced order due to the lack of long range order and rigidity in the liquid phase, but more order than the gas phase as one can see in the increased amount of peaks that the liquid phase has in comparison to the gas phase which shows more co-ordination spheres in the liquid phase. As liquid particles are not held tightly in place, but can vibrate and move, the co-ordination peaks are broad due to the fact that the particles are slightly spread out across the co-ordination shell as they are bound, but not tightly. This peak occurs around &amp;lt;math&amp;gt;r = 1&amp;lt;/math&amp;gt;, with further co-ordination shells smaller than the closer shells as the short range order of a liquid breaks down at longer range. The troughs, similarly to the solid are due to no particles being in-between the shells and their atomic neighbours.&lt;br /&gt;
&lt;br /&gt;
The gas phase has the least order out of the three phases examined. This is easily seen through there being only one peak on the RDF in comparison to the other phases. This peak relates to the very weak attractive forces between gas particles, and their nearest neighbours, effectively leading to one singular diffuse co-ordination sphere, which can be seen by the broadness of the peak. After the first coordination, there is no order relating to the central particle, and so the RDF falls to one after the peak, showing an equal likelihood of finding a gas particle at any distance after the co-ordination sphere, which further emphasises the lack of order in the gas phase.&lt;br /&gt;
&lt;br /&gt;
For all phases the RDF is zero until the first co-ordination sphere or right before. This is due to the width of the atoms in the simulation and how the atoms cannot overlap due to the strong repulsive forces. This leads the first particles to be detected by the function at the first co-ordination sphere.&lt;br /&gt;
&lt;br /&gt;
===Dynamical Properties and the Diffusion Coefficient===&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015GasMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: A plot of MSD against time for the gas phase]]&lt;br /&gt;
[[File:ft1015GasMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the gas phase]]&lt;br /&gt;
[[File:ft1015LiquidMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;: A plot of MSD against time for  the liquid phase]]&lt;br /&gt;
[[File:ft1015LiquidMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the liquid phase]]&lt;br /&gt;
[[File:ft1015SolidMSD.png|400px|thumb|left|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;: A plot of MSD against time for the solid phase]]&lt;br /&gt;
[[File:ft1015SolidMSD_1m.png|400px|thumb|right|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;: A plot of MSD against time for one million atoms in the solid phase]]&lt;br /&gt;
&lt;br /&gt;
Using Mean Squared Displacement, MSD, in an NVT ensemble, one can determine the diffusion coefficient &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;. MSD is with, respective to a reference position, the deviation of the position of a particle from said point over time, and can be measured through single particle tracking via photon scattering &amp;lt;ref&amp;gt;Phys. Chem. Chem. Phys.,2013, 15, 845&amp;lt;/ref&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
The diffusion coefficient &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;math&amp;gt;D&amp;lt;/math&amp;gt; is directly proportional to MSD as shown below in the equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; MSD = \langle (x(t)-x_0)^2 \rangle = 2Dt &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Plotting MSD against time, gives a graph with a gradient of &amp;lt;math&amp;gt;2D&amp;lt;/math&amp;gt; and therefore a diffusion coefficient equal to &amp;lt;math&amp;gt;\frac{gradient}{2}&amp;lt;/math&amp;gt;. These plots can be seen in figures 4-9 for solid, liquid and gas phases, along with plots of data given to us of those phases with one million atoms. If data points were not used in the linear fit of a graph as they did not follow the linearity expected for the gradient were masked and are shown in red on the plot.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ style=&amp;quot;text-align: centre;&amp;quot; | Diffusion Coefficient&lt;br /&gt;
|-&lt;br /&gt;
! Phase&lt;br /&gt;
! Simulated plots / m^2 s^-1&lt;br /&gt;
! one million atoms plots / m^2 s^-1&lt;br /&gt;
|-&lt;br /&gt;
| Gas&lt;br /&gt;
| 1.17E-10&lt;br /&gt;
| 3.61E-09&lt;br /&gt;
|-&lt;br /&gt;
| Liquid&lt;br /&gt;
| 1.03E-10&lt;br /&gt;
|1.1E-10&lt;br /&gt;
|-&lt;br /&gt;
| Solid&lt;br /&gt;
| -1.4E-17&lt;br /&gt;
| -1E-17&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Looking at each phase individually and the two plots associated with them. Starting with the gas phase we can see that for our simulated data diffusive rates are reached immediately and stay constant throughout the simulation as there is little to no order in gas phases which was established by use of the RDF function earlier. However, for the one million atom simulation, the rate of diffusion is not initially constant but rises as the simulation progresses until system reaches equilibrium and &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; stabilizes. Thus for the one million atoms plot data points outside the linear region were excluded, as shown in the graph.&lt;br /&gt;
&lt;br /&gt;
Rates of diffusion for liquids were lower than that of gases, which is to be expected due to the short range order shown in the RDF functions, thus diffuse more slowly to keep the short-range order intact. &lt;br /&gt;
&lt;br /&gt;
Values of &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; for the solid were extremely small to the point of there being no diffusion occurring in solids. This can be explained by the highly ordered structure which only allows particles to vibrate about a fixed point, this is confirmed through RDF calculations above, with the large change in diffusion coefficients are the start of each simulation due to the system reaching equilibrium. Diffusion will only be able to occur in from a solid phase if a phase change occurred and thus diffusion would occur through a different phase.&lt;br /&gt;
&lt;br /&gt;
A change in value of &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; for the larger one million atoms in comparison to our own simulations was expected as these larger simulations are likely to be more accurate and precise due to the larger amount of averaging that is able to occur, and the larger amount of atoms lowers microscopic effects as the system move into the macro scale.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Through the successful modelling of a L-J system above the critical temperature, the equation of state was found at two different pressures. Number density was found to increase with pressure due to the increased repulsions between particles because of the increased number of collisions, while also found to be inversely proportional to temperature, as at higher temperatures the particles moved further apart, thus lowering the interactions between them and so lowering the number density, this was reinforced using Charles’ law. Deviations from an ideal gas were seen as the L-J system allows for attractive and repulsive forces between the particles, but at higher pressures the difference from ideality was larger due to the increased density of the particles leading to more interactions between them, thus straying from the ideal gas postulates.&lt;br /&gt;
&lt;br /&gt;
It was found that Heat capacity was inversely proportional to temperature due to the change in density of states associated with an increase in temperature. The increasing of the density of states, and thus the lowering of energy of the higher energy levels allowed for more available energy states for promotion to, and so easier promotions of particles, thus leading to a lowered heat capacity due to the increased ease of promoting a particle to a higher energy state. A peak in the heat capacity seen at &amp;lt;math&amp;gt;T^* = 2.6 &amp;lt;/math&amp;gt; was seen due to a change in phase with the heat capacity reaching infinity until the necessary amount of thermal energy had been input to the system. &lt;br /&gt;
&lt;br /&gt;
The radial and integrated radial distribution functions were successfully used to model the co-ordination spheres of a solid, liquid, and gas, along with numbers for the nearest neighbours, and information on the order and structure of each phase. The gaseous phase was found to have no long range order, and only a single co-ordination shell thus leading to extremely short range order, with a broad peak suggesting a diffuse shell. The liquid phase was found to be more ordered than the gaseous phase due to the increased number of three co-ordination shells, leading to short range, but similarly to the gas no long range order in the phase. The peaks were also broadened, suggesting slightly diffusive co-ordination shells. Solids were found to be highly ordered in structure, with long range and short range order due to its crystal structure. Peaks were sharp due to the set spacings between particles, and the fact that the particles can only vibrate around their fixed positions, not move like in a liquid or gas. The co-ordination of the solid was found to be 12, 4, and 24 in the first three co-ordination shells respectively, along with a lattice spacing of 1.175.&lt;br /&gt;
&lt;br /&gt;
Diffusion coefficients for solids, liquids, and gases were also found using the relationship between MSD and &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;. Solids were found to have an almost zero diffusion gradient, while liquids and gases were much higher. Data for 1000000 atoms simulations for each phase were received and plotted, leading to more accurate results for &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt;, which agreed with the values of  &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; received from the simulations of 3375 atoms completed by us.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Numerical Integration ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Open the file HO.xls. In it, the velocity-Verlet algorithm is used to model the behaviour of a classical harmonic oscillator. Complete the three columns &amp;quot;ANALYTICAL&amp;quot;, &amp;quot;ERROR&amp;quot;, and &amp;quot;ENERGY&amp;quot;: &amp;quot;ANALYTICAL&amp;quot; should contain the value of the classical solution for the position at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, &amp;quot;ERROR&amp;quot; should contain the &#039;&#039;absolute&#039;&#039; difference between &amp;quot;ANALYTICAL&amp;quot; and the velocity-Verlet solution (i.e. ERROR should always be positive -- make sure you leave the half step rows blank!), and &amp;quot;ENERGY&amp;quot; should contain the total energy of the oscillator for the velocity-Verlet solution. Remember that the position of a classical harmonic oscillator is given by &amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt; (the values of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; are worked out for you in the sheet).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: For the default timestep value, 0.1, estimate the positions of the maxima in the ERROR column as a function of time. Make a plot showing these values as a function of time, and fit an appropriate function to the data.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Experiment with different values of the timestep. What sort of a timestep do you need to use to ensure that the total energy does not change by more than 1% over the course of your &amp;quot;simulation&amp;quot;? Why do you think it is important to monitor the total energy of a physical system when modelling its behaviour numerically? &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015Analytical.png|480px|thumb|center|]]&lt;br /&gt;
[[File:ft1015Error.png|480px|thumb|center|]]&lt;br /&gt;
[[File:ft1015Energy5.png|480px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
The total energy of a classical harmonic system is given by &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt; for the kinetic and potential energies respectively. Combing these give the total energy of the system which should be a constant for an isolated system as no energy enters or leaves the system. A time-step value of 0.2 s gives a maximum difference in energy of 1% of the total starting energy, and so ensures a good approximation to realistic behavior. The Velocity-Verlet algorithm will have fluctuations in the total energy of the system as it is only an approximation through a Taylor-series expansion, however, minimizing these fluctuations provides a more accurate simulation and therefore for a physical system would provide more accurate thermodynamic properties of the system. Decreasing the time-step, and so decreasing the energy fluctuations will provide more accurate results at the cost of increased simulation time needed for the same time frame of a system, and so is a trade-off between time and accuracy for the simulation.&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&#039;&#039;&#039;For a single Lennard-Jones interaction, &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;, find the separation, &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;, at which the potential energy is zero. What is the force at this separation? Find the equilibrium separation, &amp;lt;math&amp;gt;r_{eq}&amp;lt;/math&amp;gt;, and work out the well depth &amp;lt;math&amp;gt;(\phi\left(r_{eq}\right))&amp;lt;/math&amp;gt;. Evaluate the integrals &amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\int_{3\sigma}^\infty \phi\left(r\right)\mathrm{d}r&amp;lt;/math&amp;gt; when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For the separation &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi\left(r\right) = 4\epsilon \left( \frac{\sigma^{12}}{r_0^{12}} - \frac{\sigma^6}{r_0^6} \right)&amp;lt;/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{\sigma^{12}}{r_0^{12}} - \frac{\sigma^6}{r_0^6} =0&amp;lt;/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{\sigma^{12}}{r_0^{12}}=\frac{\sigma^6}{r_0^6} &amp;lt;/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{\sigma^6}{r_0^6} =1&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\sigma^6=r_0^6 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r_0=\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The force experienced at &amp;lt;math&amp;gt;r_0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 4\epsilon \left( \frac{12\sigma^{12}}{r_0^{13}} -\frac{6\sigma^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 24\epsilon \left( \frac{2\sigma^{12}}{r_0^{13}} -\frac{\sigma^6}{r_0^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as&#039;&#039;&#039; &amp;lt;math&amp;gt;r_0=\sigma&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 24\epsilon \left( \frac{2\sigma^{12}}{\sigma^{13}} -\frac{\sigma^6}{\sigma^7} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;F = 24\epsilon \left( \frac{2}{\sigma} -\frac{1}{\sigma} \right)&amp;lt;/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{24\epsilon}{\sigma}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E&#039;&#039;&#039;quilibrium separation, &amp;lt;math&amp;gt;r_{eq}&amp;lt;/math&amp;gt;, is given by finding the minimum of the potential well:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr}= 24\epsilon \bigg( \frac{2\sigma^{12}}{r^{13}} -\frac{1\sigma^6}{r^7}\bigg)=0&amp;lt;/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{2\sigma^{12}}{r^{13}} = \frac{\sigma^6}{r^7}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;2\sigma^6=r^6&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; r_{eq} = 2^{1/6}\sigma&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Potential well depth:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr} = 4\epsilon \bigg( \frac{\sigma^{12}}{(2^{1/6}\sigma)^{12}} - \frac{\sigma^6}{(2^{1/6}\sigma)^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = 4\epsilon \bigg( \frac{\sigma^{12}}{4\sigma^{12}} - \frac{\sigma^6}{2\sigma^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = 4\epsilon \bigg( \frac{1}{4} - \frac{1}{2}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = -\epsilon &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Integrals when &amp;lt;math&amp;gt;\sigma = \epsilon = 1.0&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{2\sigma}^\infty \phi\left(r\right)\mathrm{d}r=4\int_{2\sigma}^\infty \bigg( \frac{1}{r^{12}} - \frac{1}{r^6}\bigg)\mathrm{d}r&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{2\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-0.0248&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{2.5\sigma}^\infty \phi\left(r\right)\mathrm{d}r=\int_{2.5\sigma }^{\infty} 4\left ( \frac{1}{r^{12}}- \frac{1}{r^{6}}\right ) dr&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{2.5\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-8.18\times10^{-3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\int_{3\sigma}^\infty \phi\left(r\right)\mathrm{d}r=\int_{3\sigma }^{\infty} 4\left ( \frac{1}{r^{12}}- \frac{1}{r^{6}}\right ) dr&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=4\bigg[\frac{1}{-11r^{11}} + \frac{1}{5r^{5}}\bigg]_{3\sigma}^{\infty}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-3.29\times10^{-3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Estimate the number of water molecules in 1ml of water under standard conditions. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming  1 mL of water has a mass of 1 g under standard conditions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;N=\frac{M}{M(H_2 O)}N_a&amp;lt;/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\times 6.022 \times 10^{23}}{18.0}=3.35 \times 10^{22}\ &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;:Estimate the volume of &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt; water molecules under standard conditions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming standard conditionsː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;M =\frac{10000 \times M(H_2 O)}{N_a}&amp;lt;/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{10000 \times 18.0}{6.022 \times 10^{23}}=2.989 \times 10^{-19}\ g &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{M}{\rho }&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;V=\frac{2.989 \times 10^{-19}}{1 \times 10^{-6}}= 2.989 \times 10^{-25}\ m^{3}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Consider an atom at position &amp;lt;math&amp;gt;\left(0.5, 0.5, 0.5\right)&amp;lt;/math&amp;gt; in a cubic simulation box which runs from &amp;lt;math&amp;gt;\left(0, 0, 0\right)&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\left(1, 1, 1\right)&amp;lt;/math&amp;gt;. In a single timestep, it moves along the vector &amp;lt;math&amp;gt;\left(0.7, 0.6, 0.2\right)&amp;lt;/math&amp;gt;. At what point does it end up, &#039;&#039;after the periodic boundary conditions have been applied&#039;&#039;?&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
After the periodic boundary conditions are applied, the atom ends up atː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\left(0.2, 0.1, 0.7\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: The Lennard-Jones parameters for argon are &amp;lt;math&amp;gt;\sigma = 0.34\mathrm{nm}, \epsilon\ /\ k_B= 120 \mathrm{K}&amp;lt;/math&amp;gt;. If the LJ cutoff is &amp;lt;math&amp;gt;r^* = 3.2&amp;lt;/math&amp;gt;, what is it in real units? What is the well depth in &amp;lt;math&amp;gt;\mathrm{kJ\ mol}^{-1}&amp;lt;/math&amp;gt;? What is the reduced temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt; in real units?&lt;br /&gt;
&lt;br /&gt;
For the LJ cutoffː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r^*=\frac{r}{\sigma}=3.2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;3.2 \times 0.34 \times 10^{-9}=r&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=1.09 \times 10^{-9} \ m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the well depth, from aboveː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\frac{\phi (r)}{dr} = 4\epsilon \bigg( \frac{\sigma^{12}}{(2^{1/6}\sigma)^{12}} - \frac{\sigma^6}{(2^{1/6}\sigma)^{6}}\bigg)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = -\epsilon &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thereforeː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; -\epsilon = -120k_B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-1.657^{-21} \ J&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;=-0.9977 \ kJ \ mol^{-1}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the reduced temperatureː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T^* = \frac{T}{\epsilon}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1.5 = \frac{T}{120}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=1.5 \times 120&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;T=180 \ K&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
&lt;br /&gt;
=== Creating the simulation box ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Why do you think giving atoms random starting coordinates causes problems in simulations? Hint: what happens if two atoms happen to be generated close together?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Atoms could be generated very close to one another which would cause them to shoot out at a high speed due to the extremely large repulsive forces between the atoms. This would affect the simulation by disturbing the other atoms around it due to the high speed atoms travelling away from each other and effecting the interactions between all the other particles. By using a lattice, favorable distances can be chosen for a simulation to run smoothly and take a short amount of time to reach equilibrium.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Satisfy yourself that this lattice spacing corresponds to a number density of lattice points of &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt;. Consider instead a face-centred cubic lattice with a lattice point number density of 1.2. What is the side length of the cubic unit cell?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{1}{0.8} = 1.25&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;= 1.25^\frac{1}{3} = 1.07722&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a face-centred cubic latticeː&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = \sqrt[3](\frac{4}{1.2})=1.4938&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = (\frac{4}{1.2})^\frac{1}{3} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = 1.49380 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Consider again the face-centred cubic lattice from the previous task. How many atoms would be created by the create_atoms command if you had defined that lattice instead?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An FCC lattice contains 4 lattice points, therefore for a box of side length 10, there are 4000 lattice points and therefore 4000 atoms will be generated.&lt;br /&gt;
&lt;br /&gt;
=== Setting the properties of the atoms ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Using the [http://lammps.sandia.gov/doc/Section_commands.html#cmd_5 LAMMPS manual], find the purpose of the following commands in the input script:&#039;&#039;&#039;&lt;br /&gt;
&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;
&lt;br /&gt;
&#039;mass 1 1.0&#039; Relates to the mass of &#039;&#039;&#039;atom type&#039;&#039;&#039; &#039;&#039;&#039;1&#039;&#039;&#039; being &#039;&#039;&#039;1.0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;pair_style lj/cut 3.0&#039; computes the standard LJ potential, but gives a cutoff point for the potential at point &amp;lt;&amp;lt;math&amp;gt;r_c&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; being the distance between the atoms, along with having no colombic attractions between the atoms.&lt;br /&gt;
&lt;br /&gt;
&#039;pair_coeff * * 1.0 1.0&#039; Sets the coefficents for all l,J pairs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Given that we are specifying &amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;, which integration algorithm are we going to use?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We will be using the velocity Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|centre|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
=== Running the simulation ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Look at the lines below.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
variable timestep equal 0.001&lt;br /&gt;
variable n_steps equal floor(100/${timestep})&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION ###&lt;br /&gt;
run ${n_steps}&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;The second line (starting &amp;quot;variable timestep...&amp;quot;) tells LAMMPS that if it encounters the text ${timestep} on a subsequent line, it should replace it by the value given. In this case, the value ${timestep} is always replaced by 0.001. In light of this, what do you think the purpose of these lines is? Why not just write:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timestep 0.001&lt;br /&gt;
run 100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;This is so timestep is defined as a variable and so can be changed later after the code has been run so it does not need to be defined again and again throughout the code, but can be overwritten easily for use.&lt;br /&gt;
&lt;br /&gt;
=== Checking equilibration ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: make plots of the energy, temperature, and pressure, against time for the 0.001 timestep experiment (attach a picture to your report). Does the simulation reach equilibrium? How long does this take? When you have done this, make a single plot which shows the energy versus time for all of the timesteps (again, attach a picture to your report). Choosing a timestep is a balancing act: the shorter the timestep, the more accurately the results of your simulation will reflect the physical reality; short timesteps, however, mean that the same number of simulation steps cover a shorter amount of actual time, and this is very unhelpful if the process you want to study requires observation over a long time. Of the five timesteps that you used, which is the largest to give acceptable results? Which one of the five is a &#039;&#039;particularly&#039;&#039; bad choice? Why?&#039;&#039;&#039;&lt;br /&gt;
[[File:Ft1015Equilibrium7.PNG|600px|thumb|centre|A zoomed in plot of the total energy vs time plot to show that the system equilibrates after 0.002 ps]]&lt;br /&gt;
[[File:Ft1015Energy7.PNG|600px|thumb|centre|Total energy vs time for a 0.001 time step]]&lt;br /&gt;
[[File:Ft1015Pressure7.PNG|600px|thumb|centre|Pressure vs time for a 0.001 time step]]&lt;br /&gt;
[[File:Ft1015Temperature7.PNG|600px|thumb|centre|Temperature vs time for a 0.001 time step]]&lt;br /&gt;
[[File:ft1015_Timestep_Graph_Plots.PNG|600px|thumb|centre|A plot five different timesteps and the energies they converge on]]&lt;br /&gt;
The largest timestep of 0.015 is a particularly bad choice as the energy does not converge, but increases dramatically, something which should not happen. The largest to give acceptable results is 0.0025, as though 0.001 and 0.0025 both converge to the same value, 0.0025 allows a simulation which simulates 250% more time than the 0.001 timestep. This is more practical as it allows more simulations and longer simulations to be done in the same time-frame as the smaller timestep, without losing accuracy or precision.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
=== Temperature and Pressure Control ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Choose 5 temperatures (above the critical temperature ), and two pressures (you can get a good idea of what a reasonable pressure is in Lennard-Jones units by looking at the average pressure of your simulations from the last section). This gives ten phase points — five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen  points. You should be able to use the results of the previous section to choose a timestep. Submit these ten jobs to the HPC portal. While you wait for them to finish, you should read the next section.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: We need to choose &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt; so that the temperature is correct &amp;lt;math&amp;gt;T = \mathfrak{T}&amp;lt;/math&amp;gt; if we multiply every velocity &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;. We can write two equations:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solve these to determine &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2}{\frac{1}{2}\sum_i v_i^2} = \frac{\frac{3}{2} N k_B \mathfrak{T}}{\frac{3}{2} N k_B T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\sum_i \left(\gamma v_i\right)^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\sum_i \gamma^2 v_i^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \frac{\gamma^2 \sum_i v_i^2}{\sum_i v_i^2} = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \gamma^2 = \frac{\mathfrak{T}}{T} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;width: auto; margin-left: auto; margin-right: auto;&amp;quot;&amp;gt;&amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Use the manual page to find out the importance of the three numbers &#039;&#039;100 1000 100000&#039;&#039;. How often will values of the temperature, etc., be sampled for the average? How many measurements contribute to the average? Looking to the following line, how much time will you simulate?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first number defines the length of the timestep between data points taken for the calculation of the average, the second number relates to how many timesteps will be used to calculate the average at the specificed time, the last number specifies at what timestep will an average be taken. Thus 100 1000 100000 means that data points for the average will be taken every 100 timesteps, and 1000 will be used to calculate the average at 100000 timesteps. The time simulated will be 100000 * the timestep in seconds, which for 0.0025 s per timestep means that 250 s will be simulated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: When your simulations have finished, download the log files as before. At the end of the log file, LAMMPS will output the values and errors for the pressure, temperature, and density &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt;. Use software of your choice to plot the density as a function of temperature for both of the pressures that you simulated.  Your graph(s) should include error bars in both the x and y directions. You should also include a line corresponding to the density predicted by the ideal gas law at that pressure. Is your simulated density lower or higher? Justify this. Does the discrepancy increase or decrease with pressure?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015_Standard_Error_plots_graph.PNG|600px|thumb|centre| A plot of average density against average critical temperature of the system with standard error error bars]]&lt;br /&gt;
&lt;br /&gt;
The discrepancies between the idealised and simulated number density results can be attributed to the simulation being non-ideal. The basis of a L-J system is that the particles interact with each other, with a short range repulsive term, and a longer range attractive term. The ideal gas law however, assumes that there are no interactions between particles and thus, due to the short range highly repulsive term, the particles are further apart than in a system with no interactions and therefore the number density of the simulated systems are lower than their idealised counterparts.&lt;br /&gt;
&lt;br /&gt;
At higher pressures the deviations from ideality are larger than that of a lower pressure simulation. This arises from the fact that at higher pressures, the number density is higher due to decreased cell volume, leading to decreased distances between particles and therefore increased interactions between them as they collide with each other more frequently. This increase in interactions between particles leads to a large deviation from ideality and so a larger difference between simulated and ideal law data for higher pressures.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
===Heat Capacity Calculation===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: As in the last section, you need to run simulations at ten phase points. In this section, we will be in density-temperature &amp;lt;math&amp;gt;\left(\rho^*, T^*\right)&amp;lt;/math&amp;gt; phase space, rather than pressure-temperature phase space. The two densities required at &amp;lt;math&amp;gt;0.2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt;, and the temperature range is &amp;lt;math&amp;gt;2.0, 2.2, 2.4, 2.6, 2.8&amp;lt;/math&amp;gt;. Plot &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; as a function of temperature, where &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; is the volume of the simulation cell, for both of your densities (on the same graph). Is the trend the one you would expect? Attach an example of one of your input scripts to your report.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Ft1015HeatCapacityScript.PNG|600px|thumb|centre|An image of one of the scripts used for the heat capacity calculations]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015HeatCapacity.png|600px|thumb|centre|A plot of &amp;lt;math&amp;gt; {C_{V}}/{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; {T}/{T*} &amp;lt;/math&amp;gt; for two different densities]]&lt;br /&gt;
&lt;br /&gt;
The decrease of heat capacity with temperature increase excluding phase changes, can be explained through the Density of States. Similar to the anharmonic oscillator model for electron excitation for an atom or particles where as the energy levels are increased, the spacing between the levels decrease,  as the temperature of our system is increased the spacing between energy levels contracts, and thus the higher energy levels come down in energy and become more accessible. This leads to more modes available for promotion in the system, thus ease of promotion of an atom increases, leading to a reduced energy needed to promote and atom and so heat capacity decreases with temperature.&lt;br /&gt;
&lt;br /&gt;
The large jumps in heat capacity seen in both data sets at &amp;lt;math&amp;gt;T^* = 2.6&amp;lt;/math&amp;gt; can be explained through phase changes. As the particles simulated are totally symmetric there are no extra degrees of freedom to be reached through an increase in temperature as only translational modes are active through equipartition theorem, therefore the jump in heat capacity must be due to a phase change. Assuming a second order phase transition; as an NVT ensemble is used, and in a first order transition density is discontinuous which is impossible for a system with fixed &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, Heat capacity rises to infinity until after the transition has been completed, after which it lowers again, which can be seen at &amp;lt;math&amp;gt;T^* = 2.8&amp;lt;/math&amp;gt;, due to thermal energy needing to be expended in order to complete the phase transition.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
===Simulations in this section===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: perform simulations of the Lennard-Jones system in the three phases. When each is complete, download the trajectory and calculate &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\int g(r)\mathrm{d}r&amp;lt;/math&amp;gt;. Plot the RDFs for the three systems on the same axes, and attach a copy to your report. Discuss qualitatively the differences between the three RDFs, and what this tells you about the structure of the system in each phase. In the solid case, illustrate which lattice sites the first three peaks correspond to. What is the lattice spacing? What is the coordination number for each of the first three peaks?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r).png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r).png]]&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015G(r)N.png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015G(r)N.png]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the gas one broad peak that drops to 1 quickly after the peak finishes, leading to there being no long range order as the probability of finding an particle outside of the first shell is equal everywhere. This shows that there is no long range order in a gas, only extremely short range order. The peak could be broad due to weak attractive effects holding the nearest neighbors close, but not tightly holding them in place.&lt;br /&gt;
&lt;br /&gt;
The liquid RDF has three broad peaks, leading to 3 co-ordination spheres of particles held tightly, but not so tightly that the particles cannot move, therefore the spheres are very lightly diffuse, but like the gas the RDF drops to 1 after the last peaking, leading to no long range order in a liquid.&lt;br /&gt;
&lt;br /&gt;
The RDF of the solid has many sharp peaks corresponding to the solid atoms fixed positions and long range order in the crystal lattice. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is the minimum distance between lattice unit cells which is equal to 1.175.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! r&lt;br /&gt;
! Integrated g(r)&lt;br /&gt;
! Co-ordination Number&lt;br /&gt;
|-&lt;br /&gt;
| 1.175&lt;br /&gt;
| 11.85813&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
| 1.675&lt;br /&gt;
| 18.44288&lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| 1.975&lt;br /&gt;
| 42.26256&lt;br /&gt;
| 24 &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Dynamical properties and the diffusion coefficient =&lt;br /&gt;
&lt;br /&gt;
=== Simulations in this Section ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: In the D subfolder, there is a file &#039;&#039;liq.in&#039;&#039; that will run a simulation at specified density and temperature to calculate the mean squared displacement and velocity autocorrelation function of your system. Run one of these simulations for a vapour, liquid, and solid. You have also been given some simulated data from much larger systems (approximately one million atoms). You will need these files later.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: make a plot for each of your simulations (solid, liquid, and gas), showing the mean squared displacement (the &amp;quot;total&amp;quot; MSD) as a function of timestep. Are these as you would expect? Estimate &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; in each case. Be careful with the units! Repeat this procedure for the MSD data that you were given from the one million atom simulations.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
From https://en.wikipedia.org/wiki/Mean_squared_displacementː&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; MSD = \langle (x(t)-x_0)^2 \rangle = 2Dt &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ft1015GasMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: ft1015GasMSD.png]]&lt;br /&gt;
[[File:ft1015GasMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: ft1015GasMSD_1m.png]]&lt;br /&gt;
[[File:ft1015LiquidMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;: ft1015LiquidMSD.png]]&lt;br /&gt;
[[File:ft1015LiquidMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;: ft1015LiquidMSD_1m.png]]&lt;br /&gt;
[[File:ft1015SolidMSD.png|720px|thumb|centre|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;: ft1015SolidMSD.png]]&lt;br /&gt;
[[File:ft1015SolidMSD_1m.png|720px|thumb|centre|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;: ft1015SolidMSD_1m.png]]&lt;br /&gt;
&lt;br /&gt;
=== EXTENSION: Velocity Autocorrelation Function ===&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: In the theoretical section at the beginning, the equation for the evolution of the position of a 1D harmonic oscillator as a function of time was given. Using this, evaluate the normalised velocity autocorrelation function for a 1D harmonic oscillator (it is analytic!):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Be sure to show your working in your writeup. On the same graph, with x range 0 to 500, plot &amp;lt;math&amp;gt;C\left(\tau\right)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\omega = 1/2\pi&amp;lt;/math&amp;gt; and the VACFs from your liquid and solid simulations. What do the minima in the VACFs for the liquid and solid system represent? Discuss the origin of the differences between the liquid and solid VACFs. The harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. Why is this? Attach a copy of your plot to your writeup.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK&amp;lt;/big&amp;gt;: Use the trapezium rule to approximate the integral under the velocity autocorrelation function for the solid, liquid, and gas, and use these values to estimate &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; in each case. You should make a plot of the running integral in each case. Are they as you expect? Repeat this procedure for the VACF data that you were given from the one million atom simulations. What do you think is the largest source of error in your estimates of D from the VACF?&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep_talk:Mod:NPG11041993&amp;diff=821983</id>
		<title>Rep talk:Mod:NPG11041993</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep_talk:Mod:NPG11041993&amp;diff=821983"/>
		<updated>2025-09-17T11:24:46Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Talk:Wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:NPG11041993 to Rep talk:Mod:NPG11041993 without leaving a redirect: Move to report namespace&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Very good exercise, complemented with much extra information and insight. Pity that some parts of the exercise were not completed. Nice go at introduction to the theory. Computational chemistry is not only limited at finding the electronic energy of the molecule (this branch is informally called quantum chemistry) as done in this exercise, it does not even need to solve the Schrödinger equation in any form: there is a lot of computational chemistry out there! When optimizing conformers, were frequencies all positive? You correctly compare the energies at different levels of theory. Are the geometries comparable? In the IRC section you mention the system goes through a syn conformation. Is there a stable syn conformer? Which stable conformer is the end of the IRC in each case? You don&#039;t seem to have reoptimised the transition state at higher level or compared the activation energies with experimental values. In your diagram showing the secondary orbital effect on the activation energy, should the products have the same energy? Missing analysis of the orbitals of the butadiene-ethene transition state and connection with reactants orbitals. Regarding your comment on bond length in the Maleic Anhydride + Cyclopentadiene reaction, why would you not expect a large bond distance at the transition state when bonds are forming? [[User:Jbettenc|Jbettenc]] ([[User talk:Jbettenc|talk]]) 11:51, 4 December 2014 (UTC)&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:NPG11041993&amp;diff=821982</id>
		<title>Rep:Mod:NPG11041993</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:NPG11041993&amp;diff=821982"/>
		<updated>2025-09-17T11:24:46Z</updated>

		<summary type="html">&lt;p&gt;Jbettenc: Jbettenc moved page Wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:NPG11041993 to Rep:Mod:NPG11041993 without leaving a redirect: Move to report namespace&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Abstract==&lt;br /&gt;
&lt;br /&gt;
Computational chemistry has been developed over the last half-century and is now one of the most powerful methods of analyzing the dynamics of chemical reactions. The subject area is primarily occupied with obtaining numerical solutions to the Schrodinger equation, which allows for the calculation of energy for a given system of atoms and/or molecules. Calculations over an collection of different configurations for any such system will yield a potential energy hypersurface, which can be interrogated to give information about the dynamics of reactions and other processes. &lt;br /&gt;
&lt;br /&gt;
In this experiment, a number of different computations are carried out to determine the energies and dynamics of three key areas in organic chemistry: the conformations of molecules; the properties of the cope rearrangement; and the stereoselectivity of a Diels-Alder reaction. Key concept in the theory of organic chemistry are applied and rationalized through the use of these computations. The results are then used to explain various phenomena associated with these three processes.&lt;br /&gt;
&lt;br /&gt;
== Background And Motivation ==&lt;br /&gt;
&lt;br /&gt;
===The Shrödinger Equation===&lt;br /&gt;
&lt;br /&gt;
The use of the Schrödinger Equation has been a key aspect of the study of atoms and molecules since its inception in 1926. &lt;br /&gt;
&lt;br /&gt;
Any given system of atoms (such as a molecule, or a number of molecules) has associated with it a mathematical function, the wavefunction (Ψ), which can be interrogated to give observable information about the system. This interrogation takes place through the use of operators, and will return the product of the original wavefunction and a value for the desired observable. This is known as the &#039;&#039;eigenvalue equation&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{\Omega}\,\psi =o\cdot\psi&amp;lt;/math&amp;gt; &#039;&#039;&#039;(1)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;\hat{\Omega}&amp;lt;/math&amp;gt; is the operator, &amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt; is the value of the observable, and &amp;lt;math&amp;gt;\psi&amp;lt;/math&amp;gt; is the wavefunction .&lt;br /&gt;
&lt;br /&gt;
The Time independent Schrödinger Equation (TISE) uses one such operator - the Hamiltonian - to return the total energy of the system &amp;lt;ref&amp;gt;Hinchliffe, Alan. Computational Quantum Chemistry. p.3, Chichester: Wiley, 1988. Print.&amp;lt;/ref&amp;gt; :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{H}\,\psi =E\cdot\psi &amp;lt;/math&amp;gt; &#039;&#039;&#039;(2)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Exact solutions of the Schrodinger equation for one electron systems - such as the hydrogen atom and the dihydrogen cation - are known. However, analytical solutions for multiple electron systems cannot be calculated exactly and thus must be approximated. Using successively more complicated Hamiltonian operators allows for better approximation of the energy of a molecular system. These calculations cannot be easily performed by hand and are thus must be solved iteratively using computers. Performing these calculations forms the basis of computational chemistry.&amp;lt;ref&amp;gt;Hinchliffe, Alan. Computational Quantum Chemistry. p.12, Chichester: Wiley, 1988. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Hartree Matrix Description===&lt;br /&gt;
&lt;br /&gt;
Let the Hamiltonian for a multiple electron system be described as the total energy arising from three separate contributions:&lt;br /&gt;
&lt;br /&gt;
* Kinetic energy&lt;br /&gt;
* Coulomb attraction energy&lt;br /&gt;
* Coulomb repulsion energies with all other electrons in the system&lt;br /&gt;
&lt;br /&gt;
Thus, the Hamiltonian becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{H}= \hat{T}+\hat{V}_{en}+\hat{V}_{ee}&amp;lt;/math&amp;gt; &#039;&#039;&#039;(3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{H}&amp;lt;/math&amp;gt; is the Hamiltonian and the terms on the right represent the operators for kinetic, attractive and repulsive energies respectively&amp;lt;ref&amp;gt;Hinchliffe, Alan. Computational Quantum Chemistry. p.19, Chichester: Wiley, 1988. Print.&amp;lt;/ref&amp;gt;. Thus the energy of the system may be extracted by operating on some Hartree orbital &amp;lt;math&amp;gt;\left \langle  \phi_i\right |&amp;lt;/math&amp;gt;. This Hartree orbital can, in turn be represented using the LCAO method, becoming a linear combination of basis orbitals, thus:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \left \langle  \phi_i\right | = \sum_{n}C_{i,n}\cdot \chi_n &amp;lt;/math&amp;gt; &#039;&#039;&#039;(4)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting equation 4 into the Schrödinger equation yields the &#039;&#039;Hartree Matrix Equation&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \sum_{n}C_{i,n} \cdot \left \langle \chi_n \left | \hat{H} \right | \chi_m \right \rangle = E_n \cdot \sum_{n}C_{i,n} \cdot \left \langle \chi_n | \chi_m \right \rangle &amp;lt;/math&amp;gt; &#039;&#039;&#039;(5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This equation is analogous to the eigenvalue equation outlined above. Here the energy &amp;lt;math&amp;gt;E_n&amp;lt;/math&amp;gt; and weighting coefficients &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; are the eigenvalues and eigenvectors of the equation respectively. The terms &amp;lt;math&amp;gt; \left \langle \chi_n \left | \hat{H} \right | \chi_m \right \rangle &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \left \langle \chi_n | \chi_m \right \rangle &amp;lt;/math&amp;gt; are referred to as the Hamiltonian and overlap matrices respectively. &lt;br /&gt;
&lt;br /&gt;
Both the Hamiltonian matrix and &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; must be solved. However, in order to find &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt;, one must solve the Hamiltonian matrix. Paradoxically, in order to solve the Hamiltonian matrix, one must know &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt;. This can be resolved using the &#039;&#039;self-consistent field&#039;&#039; (SCF) technique, in which an initial guess for &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; is made. This allows for computation of the Hamiltonian matrix, which in turn allows for construction of equation 5. The equation can then be solved iteratively using the values for &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; derived in each previous iteration. This is repeated until the difference in values between &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; in the n&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt; and (n+1)&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt; iteration have become negligible. When this occurs, it is said that a &#039;&#039;self-consistent field&#039;&#039; has been derived. The final value of &amp;lt;math&amp;gt;C_{i,n}&amp;lt;/math&amp;gt; can be plugged back into the Hartree Matrix Equation and a value for &amp;lt;math&amp;gt;E_n&amp;lt;/math&amp;gt; can be extracted&amp;lt;ref&amp;gt;Hinchliffe, Alan. Computational Quantum Chemistry. p.21, Chichester: Wiley, 1988. Print.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Additional corrections for orbital symmetry under electron interchange must be made. The combination of the Hartree Matrix Equation with symmetry corrections is referred to as the &#039;&#039;Hartree-Fock Approximation&#039;&#039;. More complex mothods (such as Density Functional Theory) exist and can be used in place of the Hartree-Fock approximation.&lt;br /&gt;
&lt;br /&gt;
===The Basis Orbitals (χ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;)===&lt;br /&gt;
&lt;br /&gt;
The basis set of orbitals (χ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;) can typically be one of three types:&lt;br /&gt;
&lt;br /&gt;
*Screened Hydrogenic Orbitals&lt;br /&gt;
*Slater-Type Orbitals&lt;br /&gt;
*Gaussian-Type Orbitals&lt;br /&gt;
&lt;br /&gt;
Hydrogenic orbitals are typically not used in computational chemistry and thus may be ignored entirely. Slater orbitals are typically used for linear systems of molecules and diatoms, but the integrals that result from higher order or non-linear systems cannot be computed. Gaussian type orbitals (so named, because they include a gaussian distribution function e&amp;lt;sup&amp;gt;-αr&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/sup&amp;gt;) however are perfectly solvable for these systems and can be modified to ensure the presence of a derivative &#039;cusp&#039; st their zero vector. These modified orbitals are referred to as &#039;&#039;contracted Gaussian-type orbitals&#039;&#039; and comprise the basis of the orbital sets used in the Gaussian software package&amp;lt;ref&amp;gt;Hinchliffe, Alan. Computational Quantum Chemistry. p.22, Chichester: Wiley, 1988. Print.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Generating a Potential Energy Surface===&lt;br /&gt;
&lt;br /&gt;
Both the approximation method and the basis orbital set are freely selected and are collectively referred to as the &#039;&#039;level of theory&#039;&#039; at which a calculation is carried out. Larger basis sets and more intricate operators will generate more precise numerical values, but require a greater amount of processing time. Thus a balance must be struck between system resources and the desired accuracy of the answer.&lt;br /&gt;
&lt;br /&gt;
Once a particular value for an equation is derived, further calculations can be conducted to find how the energy of the system would change under differing arrangements of the atoms within the system. A system with N atoms will require 3 individual co-ordinates per atom, a total of 3N co-ordinates per system. Translation and rotation of the system as a whole will not effect the energy whatsoever, and can therefore be discounted, meaning only 3N-6 co-ordinates are required. The energy can be therefore be represented as a function of these co-ordinates:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E_{sys}=f(\textbf{r}_{1},\textbf{r}_{2},\cdots )&amp;lt;/math&amp;gt; &#039;&#039;&#039;(6)&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;f(\textbf{r}_{1},\textbf{r}_{2},\cdots )&amp;lt;/math&amp;gt; represents the functional form of a &#039;plot&#039; resulting from the solution of the Schrodinger equation for each individual configuration of atoms &amp;lt;math&amp;gt;\textbf{r}_{1},\textbf{r}_{2},\cdots&amp;lt;/math&amp;gt;. The result is a hypersurface of dimension 3N-6 which yields the energy of the system as a function of the position vectors for each atom. We define this as the &#039;&#039;potential energy hypersurface&#039;&#039; and may utilise it to analyse the dynamics of chemical reactions. &amp;lt;ref&amp;gt;Leach, Andrew R. Molecular Modelling: Principles and Applications. p.4, Harlow, England: Prentice Hall, 2001. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conformational study of 1,5-hexadiene ==&lt;br /&gt;
&lt;br /&gt;
1,5-Hexadiene can exist in a number of different interchangeable conformations, with the dihedral angles between the central four carbon atoms providing the primary route of conformational interchange. The terminal carbon atoms are conformationally locked by virtue of their C=C bond and can thus be largely neglected. The resultant manifold conformers of 1,5-Hexadiene can therefore be broadly arranged into 3 types:&amp;lt;ref&amp;gt;Isaacs, Neil S. Physical Organic Chemistry. p.341 Harlow: Longman, 1995. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;i) Syn Conformers:&#039;&#039;&#039; The central chain of four carbon atoms are eclipsed and have a dihedral angle of approximately 0 degrees.&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;ii) Anti Conformers:&#039;&#039;&#039; The dihedral angle between the central carbon atoms angle is approximately 180 degrees. &lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;iii) Gauche Conformers:&#039;&#039;&#039; Central carbon atoms have a dihedral angle of 60 degrees.&lt;br /&gt;
&lt;br /&gt;
The relative energies of these three classes of conformer are governed by 3 key effects: &amp;lt;ref&amp;gt;Isaacs, Neil S. Physical Organic Chemistry. p.342 Harlow: Longman, 1995. Print.&amp;lt;/ref&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;i) σ - σ* Orbital Overlap&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Overlap between the bonding σ orbital and an adjacent σ* anti bonding orbital results in an overall stabilization of the filled bonding orbital by an energy &amp;lt;math&amp;gt;E_{Stab}&amp;lt;/math&amp;gt;, and a destabilization of the empty anti-bonding orbital by an energy &amp;lt;math&amp;gt;E_{stab}+\epsilon&amp;lt;/math&amp;gt;. The result is an overall stabilization of the filled natural bonding orbital (NBO, resulting in a stabilisation of the molecule itself. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &#039;&#039;&#039;ii) Pauli Repulsion&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In a similar manner to the σ - σ* overlap mentioned above. If two σ bonds overlap then the resulting NBO has both bonding and anti-bonding character. The anti-bonding orbital is more destabilising than the bonding orbital is stabilising, however, and thus the result is an overall destabilization of the molecule.   &lt;br /&gt;
&lt;br /&gt;
Other effects - such as dispersion forces - manifest themselves in larger molecules but will largely be discounted here. &lt;br /&gt;
&lt;br /&gt;
In 1,5-hexadiene, the terminal C=C bonds are fixed and therefore do not play a major role in the generation of conformers. However, the central alkyl chain is free to rotate and thus determine the overall configuration of the molecule. These four atoms can therefore be: gauche, antiperiplanar, eclipsed, or some combination of the three. We would expect a fully antiperiplanar configuration to generate the most stable species, as this would maximize σ - σ* overlap while minimizing Pauli repulsion. Conversely, the eclipsed - or synperiplanar - conformation would maximize Pauli repulsion and minimize σ - σ* overlap, resulting in maximum destabilization. The gauche conformation would lie somewhere in between the two.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Experimental ===&lt;br /&gt;
&lt;br /&gt;
The relative stabilities of these conformers was assessed using the Gaussian software package. A 1,5-hexadiene molecule was generated with an antiperiplanar linkage between each of the 4 central carbon atoms, symmetrised and was optimised at the HF/3-21G level of theory. The resulting energy of the optimised molecule was noted. The molecule was symmetrised and re-optimised at the same level of theory, yielding a Ci point group. The process was then repeated at the same level of theory for a gauche conformer of the molecule. Vibrational calculations were then generated at the same level of theory for both molecules. &lt;br /&gt;
&lt;br /&gt;
The Ci Conformer molecule was optimized again at the B3LYP/6-31G* level of theory and compared to the results of the HF/3-21G calculations.&lt;br /&gt;
&lt;br /&gt;
=== Results and Discussion ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;       &lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Anti Hexa-1,5-diene (Ci Symmetry)&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;zoom 5;moveto 4 0 2 0 90 120;spin 2;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;ANTI_Ci_CLN_OPT.mol&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Gauche Hexa-1,5-diene (C2 Symmetry)&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;zoom 5;moveto 4 0 2 0 90 120;spin 2;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;GaucheC6OPTIMISED.mol&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 1: The optimized conformers of 1,5,-hexadiene&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!!! colspan=&amp;quot;3&amp;quot; | Energy (Hartrees)&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Species&#039;&#039;&#039; || &#039;&#039;&#039;Absolute&#039;&#039;&#039; || &#039;&#039;&#039;+ ZPE&#039;&#039;&#039; || &#039;&#039;&#039;Thermal Correction&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Gauche&#039;&#039;&#039; || -231.68771615  || -231.539540 || -231.527699&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Anti (Ci)&#039;&#039;&#039; || -231.69253528 || -231.534385 || -231.532567 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 2: Relative energies of the HF/3-21G optimized species displayed in Figure 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Figure 2 shows the energy of the bare potential energy surface at its minimum point, along with corrections for zero-point energy (ZPE) and thermal energy input. It can be seen that the thermally corrected energy for the anti (Ci) conformation is lower than that of the Gauche conformer. This is largely in line with the predictions outlined in the introduction, where the anti configuration maximizes σ - σ* interactions while minimizing Pauli repulsions. Furthermore the trend observed in these computations is in line with those reported by Gung et al (2010).&amp;lt;ref&amp;gt;doi:10.1021/ja00111a016&amp;lt;/ref&amp;gt; and in the lab script.&lt;br /&gt;
&lt;br /&gt;
It has also reported that the global minimum for the system as a gauche conformer in which an interaction between a vinyl proton and an opposing π - orbital provides an additional stabilization energy.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!!! Colspan=&amp;quot;7&amp;quot; | Energy (Hartrees)&lt;br /&gt;
|-&lt;br /&gt;
|||colspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;HF/3-21G&#039;&#039;&#039; || colspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;B3LYP/6-31G*&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Species&#039;&#039;&#039;|| &#039;&#039;&#039;Absolute&#039;&#039;&#039; || &#039;&#039;&#039;+ZPE&#039;&#039;&#039; || &#039;&#039;&#039;Thermal Correction&#039;&#039;&#039; || &#039;&#039;&#039;Absolute&#039;&#039;&#039; || &#039;&#039;&#039;+ZPE&#039;&#039;&#039; || &#039;&#039;&#039;Thermal Correction&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Anti Ci&#039;&#039;&#039; || -231.699508 || -231.539540 || -231.532567 || -234.611711 || -234.469217 ||  -234.461867&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Gauche&#039;&#039;&#039;  || -231.687716 || -231.534385 || -231.527699 || -234.607883 || -234.465193 || -234.458096&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 3: Comparison of the energies (absolute) obtained by the HF/3-21G and the B3LYP/6-31G* levels of theory&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Figure 1.3 shows a comparison between the results obtained for both conformers through application of the HF/3-21G and B3LYP/6-31G* levels of theory. In every case, the results obtained by through application B3LYP/6-31G* are significantly lower (by approximately 1 Hartree) than those obtained through calculation with the HF/3-21G level of theory. This suggests that the the Hartree-Fock method significantly overestimates the energy of the molecule.&lt;br /&gt;
&lt;br /&gt;
== The Cope Rearrangement ==&lt;br /&gt;
&lt;br /&gt;
The Cope Rearrangement is a widely studied pericyclic reaction involving the  [3,3]-sigmatropic rearrangement of 1,5-dienes. The reaction can occur in both directions, with the stability of both species determining the overall position of the resulting equilibrium. The mechanism for the rearrangement has been hotly debated, although the literature generally agrees that the rearrangement takes place through a concerted diradical transition state.&amp;lt;ref&amp;gt;Clayden, Jonathan. Organic Chemistry. Oxford: Oxford UP, 2001. Print.&amp;lt;/ref&amp;gt; This allows for two seperate transition structures, referred to as the &#039;boat-like&#039; and &#039;chair-like&#039; transition structures to take place in equal proportion. Both Transition states are 6-electron [π2s + σ2s + π2s] thermally allowed processes and thus are expected to have approximately similar energies. If all else is equal, then the chair transition state is slightly favoured over that of the boat transition state.&amp;lt;ref&amp;gt;Fleming, Ian. Pericyclic Reactions. p. 78 Oxford: Oxford UP, 1999. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Cope_110493NG.jpg|center]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 2.1: The cope rearrangement, showing the boat and chair transition states&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Computing a Transition State====&lt;br /&gt;
&lt;br /&gt;
From figure 2.1 it can be seen that the transition state consists of 2 allyl fragments arranged in the boat and chair conformation respectively. Thus it is a relatively trivial exercise to generate these fragments separately and arrange them into the appropriate conformation. An optimization to a transition state can therefore take place from this initial configuration.&lt;br /&gt;
&lt;br /&gt;
The transition state may be defined as a saddle point along the minimum reaction pathway. Thus, it is a minimum with respect to the potential energy surface and a maximum with respect to the energy of the intrinsic reaction co-ordinate. The nature of the curvature of these points can thus be probed by computing the force constants at any particular reaction co-ordinate while observing that the force constants of the molecule are equal to the second derivative of the potential energy surface. Thus the nature of the force constant can be interrogated to yield information about any given reaction co-ordinate. Negative curvature of the potential energy surface (i.e a local maximum) for some given direction will generate a negative second derivative and thus will result in a negative force constant.&amp;lt;ref&amp;gt;Leach, Andrew R. Molecular Modelling: Principles and Applications. p.5, Harlow, England: Prentice Hall, 2001. Print.&amp;lt;/ref&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Thus a number of different methods for computing the transition state may be utilized:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method I:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
A guess structure may be inputted and optimized to a transition state through stepwise computation of force constants. For small perturbations from the true transition structure, this method will almost always converge. However, if the guess structure is significantly different from that of the true transition structure, than no convergence will occur and the computation will fail. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method II:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A guess structure is input, with bond making atoms set to their approximate bond making distances. These atoms are then &#039;frozen&#039; (i.e locked to their present co-ordinates) and the remainder of the system is optimized. Movement of the bond making atoms is then allowed and the new structure is optimized to the transition state through calculation of force constants for all bond making atoms.&lt;br /&gt;
&lt;br /&gt;
Conceptually, this optimization takes place in two phases. The first phase relaxes the molecule so the it is close to the potential energy minimum, or &#039;&#039;reaction channel&#039;&#039;. The second phase &#039;tracks&#039; this potential energy minimum to the local maximum (i.e.: the transition state). This therefore has the advantage of being able to arrive at a transition state for more dissociated geometries, but may still be divergent for extremely abnormal systems.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method III:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Both the starting molecule(s) and the product are defined. Both molecules are then optimized forwards and backwards respectively to their transition states. If the starting system and the product both converge on the same transition structure, then the transition state for this particular reaction has been arrived at. This method can be implemented through the QTS2 functionality present on Gaussian.&lt;br /&gt;
&lt;br /&gt;
In this exercise, all three methods will be utilized to probe the nature of the boat and chair transition states of the cope rearrangement.&lt;br /&gt;
&lt;br /&gt;
=== Experimental ===&lt;br /&gt;
&lt;br /&gt;
Both transition structures were treated as 2 allyl fragments. The allyl fragment was generated and optimized to a minimum using the HF/3-21G level of theory. The optimized fragment was then copied and the two resulting fragments arranged into a boat and chair conformation. These conformations were then optimized using the three different methods outlined above:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method I:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The molecule was optimized directly to a transition state using the Berny Algorithm at the HF/3-21G level of theory. The force constant (Hessian) matrix was computed once and the keyword Opt=NoEigen was used to prevent early termination of the calculation upon detection of imaginary negative vibrational modes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method II:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The terminal ends of each allyl group were frozen at approximately 2.2 Å from each other. The resulting system was then optimized at the HF/3-21G level of theory, keeping the terminal ends frozen. The bonds were unfrozen and the molecule was then optimized to a transition state at the HF/3-21G level of theory using a numerical Hessian and the Berny Algorithm. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Method III:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The precise nature of the transition state was elucidated through the use of the QTS2 method. The initial and final forms of the 1,5-hexadiene were inputted and allowed allowed to converge to a transition state.&lt;br /&gt;
&lt;br /&gt;
Arrival at a transition structure was confirmed by the presence of imaginary negative frequencies which imply negative curvature of the potential energy surface.&lt;br /&gt;
&lt;br /&gt;
==== IRC Calculations From the Transition State ====&lt;br /&gt;
&lt;br /&gt;
Further computations were performed using the IRC functionality on Gaussian with the boat and chair transition structures utilized as a starting point. Computations were performed at the HF/3-21G level of theory. Computations were carried out in the forward direction only due to symmetric nature of the rearrangement.&lt;br /&gt;
&lt;br /&gt;
=== Results ===&lt;br /&gt;
[[File:Chair_ts_PartB_OPT_OPT_OPT.gif|thumb|Animation of the imaginary bond making vibration for the chair conformer at -817.96 wavenumbers]]&lt;br /&gt;
[[File:Cope_Rearrangement_Vibration.gif|thumb|Animation of the vibration for the boat conformer at -840.27]]&lt;br /&gt;
&lt;br /&gt;
The vibrational modes of the Boat-like and chair-like transition states were confirmed through identification of imaginary negative wavelengths. Imaginary bond making vibrations at -817.96 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and -840.27 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; for the chair and boat conformers respectively were identified. These are shown below. &lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!            !! colspan=&amp;quot;4&amp;quot; | Energy (Hartrees)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Method&#039;&#039;&#039;|| colspan=&amp;quot;2&amp;quot; | &#039;&#039;&#039;Boat TS&#039;&#039;&#039; || colspan=&amp;quot;2&amp;quot; | &#039;&#039;&#039;Chair TS&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|            || +&#039;&#039;&#039;ZPE&#039;&#039;&#039; || &#039;&#039;&#039;Thermal Correction&#039;&#039;&#039; || &#039;&#039;&#039;+ZPE&#039;&#039;&#039; || &#039;&#039;&#039;Thermal Correction&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Method I&#039;&#039;&#039;|| - || - || -231.466699 || -231.461340&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Method II&#039;&#039;&#039;||-231.450933||-231.445305|| -231.466700 ||-231.461338&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Method III&#039;&#039;&#039;|| -234.414612 || -234.408690|| - || -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 2.2: Table showing the energies of the boat-like and chair-like transition states.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Figure 2.1 shows the energies of the the boat like and chair like transition states using the three methods outlined in the experimental. Methods I and II give very similar answers for the energy of the chair and boat transition states, with a discrepancy of approximately 0.0000001 hartrees. This strongly suggests that both methods have converged to the same transition state. Furthermore, the very low level of discrepancy suggests that both methods could be used interchangeably with little detriment to the accuracy of the final answer. A significant discrepancy exists in the energies computed using method II and method III, suggesting that one method may lack accuracy. It can also be seen that the derived transition state for the chair conformer is slightly lower in energy than that of the boat conformer.&lt;br /&gt;
&lt;br /&gt;
==== IRC Calculations ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It may be observed that the boat and chair transition states both link separate conformers of hexa-1,5-diene. Thus, one particular configuration of the starting compound will generate one specific transition structure.&amp;lt;br&amp;gt; Because the reaction pathway for the cope rearrangement is symmetrical, it may be observed that the one particular configuration of hexa-1,5-diene will generate one particular transition structure and vice-versa.&amp;lt;br&amp;gt; This is illustrated below:&lt;br /&gt;
&lt;br /&gt;
[[File:CHAIR_TS_IRC_NPG110493.gif|200px|thumb|right|Figure2.4: Visualisation of the IRC calculation for the chair transition state]] [[File:BOAT_IRC_Output_110493NPG.gif|200px|thumb|right|Figure2.5: Visualisation of the IRC calculation for the boat transition state]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Configurational_preservation.jpg | center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 2.3: Diagram illustrating how the dihedral angle of the propylene groups in hexa-1,5-diene are preserved during the cope rearrangement. In this case, the two propylene side chains are oriented in the gauche configuration. By the same rationale, two synperiplanar propylene groups will rearrange through the boat transition state. Antiperiplanar systems can be ignored as the resulting transition structure would be too high in energy to occur&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This was confirmed through the &#039;IRC method&#039; outlined in the experimental. The boat and chair transition states were used as starting points and the intrinsic traction pathway was calculated in the forward direction. The symmetric nature of the cope rearrangement meant that IRC calculations could be carried out in one direction only without loss of pertinent information.&lt;br /&gt;
&lt;br /&gt;
Figures 2.4 and 2.5 show the outcomes of these calculations. Viewing the animation for figure 2.4, it is easily seen that the initial result of the rearrangement is a gauche conformer, which subsequently relaxes to a lower energy state. A similar outcome is seen in Figure 2.5, in which the result of the rearrangement is the synperiplanar conformer. However, the strong Pauli repulsions and favourability of σ-σ* interactions result in a relaxation away from the synperiplanar to the gauche configuration. &lt;br /&gt;
&lt;br /&gt;
The results of the IRC calculations also shed light on the favourability of the chair transition state with respect to the boat transition state. In order for the reaction to proceed via the boat transition state, the starting molecule must adopt an energetically disfavored synperiplanar conformation. This provides an additional energy requirement, thus elevating the overall energy of the transition state. A higher energy transition state results in kinetically disfavored reaction. This conforms for the calculated energies of the boat and chair transition state outlined in Figure 2.2, and with the expectations outlined in the literature. The calculated activation energies (Figure 2.5) also corroborate these observations, with the chair transition state possessing a marginally lower activation energy barrier. &lt;br /&gt;
&lt;br /&gt;
[[File:IRCFINAL2110493.jpg|500px|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 2.4: Plot of the energy of the reaction system as it moves away from the transition state.&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Species !! Activation Energy (Hartrees) &lt;br /&gt;
|-&lt;br /&gt;
|Boat TS || 0.08164&lt;br /&gt;
|-&lt;br /&gt;
|Chair TS || 0.07225&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 2.5: Activation energies for the system derived from the IRC calculations&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== The Diels-Alder Reaction ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction and Background ===&lt;br /&gt;
&lt;br /&gt;
The Diels-Alder reaction is one particular subset of a group of reactions known as cycloadditions. Diels-Alder reactions can be characterised by the concerted mature of the bond forming and breaking, which proceeds through a cyclic, aromatic transition structure. Thus reactions of this type are typically Hückel 4n+2 processes. Photochemical 4n process are also present but are beyond the remit of this exercise.&amp;lt;ref&amp;gt;Fleming, Ian. Pericyclic Reactions. p.32 Oxford: Oxford UP, 1999. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:DA_Mechanism.jpg|center]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.1: Mechanism of a Diels-Alder Cycloaddition&#039;&#039;&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This affinity for 4n+2 electrons can be rationalized through consideration of the frontier orbitals involved in the reaction. In order for the concerted formation and breakage of bonds to occur, each interacting orbital must be of the correct parity to constructively interfere and thus form a bond. This can be further developed through consideration of the change of orbital parity over a mirror plane passing through the center of the molecule. A &#039;&#039;symmetric&#039;&#039; orbital system will not result in any parity change across the mirror plane, while an antisymmetric system will exhibit a parity change. Symmetric-Symmetric and Antisymmetric-Antisymmetric orbital interactions will always give rise to constructive interactions and thus allow the concerted formation of bonds. Symmetric-Antisymmetric interactions, however, will always possess one anti-bonding interaction and thus cannot result in concerted bond formation (stepwise bond formation, however, is still possible in certain cases).&amp;lt;ref&amp;gt;Fleming, Ian. Pericyclic Reactions. p.33 Oxford: Oxford UP, 1999. Print.&amp;lt;/ref&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
This leads to the so called &#039;&#039;Woodward-Hoffan Selection Rule&#039;&#039;, which states that:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;A pericyclic reaction is symmetry allowed if the  sum total of suprafacial components involving 4j+2 π electrons &#039;&#039;&#039;And&#039;&#039;&#039; antarafacial components containing 4K π electrons is odd.&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Untitled11041993NPG116.jpg|center]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.2: diagram showing the change in orbital parity over a mirror plane (σ). On the left, two antisymmetric (A) interactions result in concerted constructive interactions. On the right, a symmetric-antisymmetric interaction precludes concerted bond formation.&#039;&#039;&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
It is also vital the stereochemical outcome of the reaction. Two major modes of attack may be expected, and are referred to as the &#039;&#039;endo&#039;&#039; and &#039;&#039;exo&#039;&#039; modes of attack. These designations refer to the position of the diene relative to the attacking dienophile, as shown below.&amp;lt;ref&amp;gt;Fleming, Ian. Pericyclic Reactions. p.8 Oxford: Oxford UP, 1999. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[File:Endoexoatknpg110493.jpg|center]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.3: Diagram illustrating the difference between endo and exo attack. In the endo attack, the residual portion of the dieneophile faces inwards towards the main portion of the diene, while in an exo attack the residual group of the dieneophile faces away from the bulk of the diene system&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Endo and Exo attacks will result in differing stereochemistry for their respective products. The endo product will result in a trans configuration between the residual groups on the dieneophile and the central bridging carbon chain. Conversely, a product in which the central bridging carbon chain is cis to the Diels-Alder adduct.&amp;lt;ref&amp;gt;Fleming, Ian. Pericyclic Reactions. p.8 Oxford: Oxford UP, 1999. Print.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The exo product results from an exo attack, in which the orientation of reactants is less sterically hindered and is therefore expected to dominant isomer in any reaction. However, experimentally this is often not the case. The reason for this anomalous selectivity results from the constructive overlap of orbitals on the residual group on the dieneophile with the diene system. This stabilizes the transition state, thus lowering it in energy. The result in increased favourability of the endo product. This increased favourability is referred to as Alder&#039;s &#039;&#039;Endo Rule&#039;&#039;. The phenomenon of favorable orbital overlap between the diene system and dienophile resudual is dubbed the &#039;&#039;Secondary Orbital Effect&#039;&#039; &amp;lt;ref&amp;gt;doi:jo00384a016&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:SOOE_Diag.jpg|300px|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.4: Diagram illustrating the Secondary Orbital Effect.&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Figure 3.4 illustrates this effect. In cartoon A, the residual chain is oriented inward (i.e.: the endo position), which allows constructive secondary orbital interactions (blue) to stabilize the transition state, thus lowering the overall energy of the profile (green) compared to the violet energy profile (no secondary orbital interactions). In contrast, the exo form has no secondary orbital interactions, and thus the energy of the transitions state will be correspondingly higher. Thus, the endo product will be formed more rapidly than the exo product. Further heating however will allow interconversion between the two isomers, where the more stable exo product would be expected to dominate.&lt;br /&gt;
&lt;br /&gt;
=== The Butadiene + Ethene Addition ===&lt;br /&gt;
&lt;br /&gt;
Figure 3.1 shows the addition of ethene to butadiene. The product of the reaction is symmetric and thus there are no stereochemical considerations to account for in the resulting Diels-Alder Adduct. As outlined above, The HOMO and LUMO of the reactant and product must be of appropriate symmetry to permit the concerted formation of bonds. Computing of the HOMO and LUMO for butadiene and ethene will allow for prediction of the orbital symmetry and thus will allow for determination of the pericyclec nature of the reaction.  &lt;br /&gt;
&lt;br /&gt;
====Experimental====&lt;br /&gt;
&lt;br /&gt;
Butadiene and Ethene were generated separately and optimized to a minimum at the B3LYP/6-31G* level of theory. The resulting HOMO and LUMO of both molecules was generated and saved as an image file. The symmetry of these orbitals was determined and plotted on an orbital correlation diagram.&lt;br /&gt;
&lt;br /&gt;
The reactant system and expected product were used as inputs in a QTS2 calculation at the HF/3-21G level of theory. The computation was found to converge to a transition state and the resulting transition structure was elucidated.&lt;br /&gt;
&lt;br /&gt;
==== Results ====&lt;br /&gt;
&lt;br /&gt;
[[File:Butadiene+ethen_RXN_scheme.jpg|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt; &#039;&#039;Figure 3.3: MO diagram showing the frontier orbitals of butadiene and ethene.&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:DA_RXN_bond_making_vibration_110493NPG.gif|200px|thumb|right|Figure 3.4: Animation of the imaginary bond making frequency for the Butadiene/Ethene reaction]]&lt;br /&gt;
&lt;br /&gt;
Figure 3.3 illustrates the computed HOMO and LUMO of both butadiene and ethene. It can be seen that the HOMO of each molecule is of the same symmetry as the LUMO of its counterpart. Thus the reaction is expected to be symmetry allowed. We therefore expect a cyclic, aromatic transition state for this reaction, which exhibits concerted bond formation at an imaginary frequency.&lt;br /&gt;
&lt;br /&gt;
The results of this experiment are displayed below. The presence of a product forming transition state was confirmed through the presence of an imaginary bond forming frequency at -XXXX cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. From Figure 3.4 it is easily seen that the movement of the ethene molecule and the flanking C=C substituents on the butadiene molecule were concerted. It can therefore be inferred that a pericyclic transition state has been reached for this reaction system. &lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Colspan=&amp;quot;2&amp;quot;|Energy (Hartrees)&lt;br /&gt;
|-&lt;br /&gt;
|Absolute+ZPE || +Thermal Correction&lt;br /&gt;
|-&lt;br /&gt;
|-234.403320 || -234.396903&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Maleic Anhydride + Cyclopentadiene ===&lt;br /&gt;
&lt;br /&gt;
[[file:endoexo.jpg|center]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.3: Reaction of Maleic Anhydride and Cyclopentadiene, displaying the exo and endo forms of the resulting Diels-Alder adduct. &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Figure 3.3 Shows the reaction between maleic anhydride and cyclohexadiene. The resulting Diels-Alder adduct has a bridging carbon chain and thus competition between the exo and endo forms will manifest. Due to secondary orbital interactions, the endo form is expected as the kinetic product, as predicted using Alder&#039;s Endo Rule. Thus, the endo transition state is likely to be lower in energy compared to the exo transition state. The energy of these transition states can then be probed using computational methods.&lt;br /&gt;
&lt;br /&gt;
====Method====&lt;br /&gt;
&lt;br /&gt;
The maleic anhydride and cyclohexadiene were generated separately and optimized at the B3LYP/6-31G** level of theory. The resulting HOMO and LUMO of both molecules was computed and saved as an image file. The symmetry of these orbitals was determined and plotted on an orbital correlation diagram.&lt;br /&gt;
&lt;br /&gt;
Transition state calculations were performed using the semi-empirical AM1 Model and the &#039;&#039;Frozen Co-ordinate Method&#039;&#039; (Method II) described in Section 2. An initial guess structure for the exo and endo adducts was made. All bond making atoms were frozen through use of the &#039;redundant co-ordinate&#039; functionality on Gaussian. The molecule was optimized to a minimum at the AM1 level of theory. The atoms were unfrozen and a second optimization to a transition state (Berny) was made at the same level of theory. The resulting transition structures were then optimized a second time to a TS(Berny) at the B3LYP/6-31G** level of theory, allowing free computation of force constants. The structure was found to converge and a negative frequency was found corresponding to concerted bond formation at -447.45 cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; and -448.45cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; for the endo and exo structures respectively. The orbitals of the resulting transition states were computed and saved. IRC calculations were then performed in the forward and reverse directions using the AM1 derived transition state at the AM1 level of theory.&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
[[File: DA2OrbitalCorrelDiag.jpg|800px|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&#039;&#039;Figure 3.5: Orbital Correlation diagram for the Maleic Anhydride/Cyclohexadiene reaction displaying the symmetry of the HOMO AND LUMO of each species&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: EXO_bond_making_NPG11041993.gif|200px|thumb|right|Figure 3.6: Animation of the bond forming frequency for the exo transition state at -448.45cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;]]&lt;br /&gt;
[[File: ENDO_bond_making_vibr_110493.gif|200px|thumb|right|Figure 3.7: Animation of the bond forming frequency for the endo transition state at -447.45cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;]]&lt;br /&gt;
[[File: ENDO_FULL_RXN_MOVIE110493.gif|200px|thumb|right|Figure 3.9: Animation of the Diels-Alder cycloaddition yielding the endo isomer]]&lt;br /&gt;
[[File: EXO_IRC_3110493.gif|200px|thumb|right|Figure 3.10: Animation of the Diels-Alder cycloaddition yielding the exo isomer]] &lt;br /&gt;
&lt;br /&gt;
Figure 3.5 shows the Orbital Correlation diagram for the reaction outline in Figure 3.3. As was the case for the Butadiene/Ethene reaction, the HOMO of ane species and the LUMO of its counterpart are of the correct symmetry to react in a concerted fashion. Thus a pericyclic reaction is expected to take place for both the exo and endo forms. A visualization of the imaginary vibrations for the exo and endo transition states is shown in Figures 3.6 and 3.7. In each case, the observed vibration corresponds to concerted bond formation and breakage, thus confirming that the correct transition structure has been reached. &lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!!! Colspan=&amp;quot;2&amp;quot; | Energy (Hartrees, Temperature Corrected)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Species&#039;&#039;&#039;|| &#039;&#039;&#039;AM1 (Semi-Empirical)&#039;&#039;&#039; || &#039;&#039;&#039;B3LYP/6-31G**&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Endo-Adduct&#039;&#039;&#039; || 0.143677 || -612.491788 &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Exo-Adduct&#039;&#039;&#039; || 0.144881 || -612.487661&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 3.8: Tabulated thermally corrected energies of the endo and exo transition states using the AM1 and B3LYP/6-31G** levels of theory.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Figure 3.8 displays the energies of the Endo and Exo transition state. A lower energy is observed for the endo transition state, in line with Alder&#039;s Endo Rule and the predictions outlined by the secondary orbital effect. A plot of the HOMO for the endo transition state allows for visual confirmation of this effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:TSORBS.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 3.11: Surface plots of the HOMO and LUMO of the Exo (Right) and Endo (Left) transition states. All transition state orbitals are antisymmetic with respect to a central mirror plane.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Figures 3.9 and 3.10 show visualizations of the Diels-Alder cycloaddition for the endo and exo forms of the adduct. The resulting secondary orbital interactions can be seen in figure 3.11. The inward facing anhydride group is able to interact with additional MO&#039;s on the cyclobenzadiene, thus generating a stabilizing effect. This lowers the energy of the corresponding transition state, thus accounting for the discrepancy in energy of the two forms.&lt;br /&gt;
&lt;br /&gt;
Figure 3.12 displays the lengths of the bonds affected as the reaction system approaches the transition structure. The C-C bonds between maleic anhydride and the cyclohexadiene molecule are much longer than typical C-C bonds, which have a length of approximately 154pm. This large discrepancy is most likely an artifact of the &#039;Frozen Co-ordinate method&#039; and should not be taken as indicative of the true mechanism to the reaction. An elongation of double bonds is observed, with double bond distances averaging around 140nm, part way in between those of a C-C single bond and a C-C double bond, suggesting the conversion of a double bond to a single bond. The bond lengths are similar in size to those of aromatic C-C bonds, suggesting the possibility of an aromatic transition state. &lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Endo Isomer&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;400&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;measure 2 3;measure  3 10;measure  2 13;measure  10 11;measure  11 12;measure  12 13&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;ENDO-B3LYP_OPT.mol&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|&amp;lt;jmol&amp;gt;&lt;br /&gt;
&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Exo Isomer&amp;lt;/title&amp;gt;&amp;lt;color&amp;gt;white&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;400&amp;lt;/size&amp;gt;&amp;lt;script&amp;gt;measure 2 10;measure  3 13;measure  13 12;measure  12 11;measure  11 10;measure  2 3&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;EXO_B3LYP_OPT.mol&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;/jmol&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Figure 3.11: JMOl files of the endo and exo isomer displaying the distances of the bonds that are being made and broken.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
&lt;br /&gt;
In the first exercise, the relative stabilities of a gauche and an antiperiplanar conformation of hexa-1,5-diene were studied. The gauche and antiperiplanar conformers were found to have C2 and Ci symmetry respectively, and the gauche C2 conformer was found to be significantly higher in energy compared to the Anti Ci conformer, suggesting that the gauche conformation is significantly less stable than its counterpart. Furthermore, it was shown that the results obtained by the HF/3-21G level of theory significantly overestimate the energy of the optimized structure. This in turn suggests that more powerful methods and larger basis sets will be needed to generate more numerically precise answers.&lt;br /&gt;
&lt;br /&gt;
In the second excercise, three idfferent methods were utilised to probe the nature of a transition structure. These methods were found to yield vary similar results and could therefore be used interchangeably. The activation energy for the cope rearrangement was computed and the results were found to conform to theory. &lt;br /&gt;
&lt;br /&gt;
In the third exercise, two Diels-Alder reactions were studied. The transitions states for both reactions were found and confirmed. Additional calculations demonstrated the favourability of the endo transition state over the exo transition state, in keeping with Alder&#039;s rule. The Molecular Orbitals were also calculated and found to agree with the Woodward-Hoffman selection rules, in addition to permitting rationalization of the secondary orbital effect. &lt;br /&gt;
&lt;br /&gt;
These exercises have demonstrated the power of computational chemistry in providing information about molecules and chemical reactions, enabling one to retrieve data about a molecule that could not be easily determined experimentally without leaving one&#039;s desk.&lt;br /&gt;
&lt;br /&gt;
==Citations==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jbettenc</name></author>
	</entry>
</feed>