<?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=Fbresme</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=Fbresme"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Fbresme"/>
	<updated>2026-05-16T10:41:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814383</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814383"/>
		<updated>2023-09-20T07:01:03Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The best approach to get help is to attend the Teams sessions. The demonstrators will be available to answer questions between 10-12 and 3-4 on Mon, Tue, Thu and Fri. Please feel free to contact the demonstrators via Teams, and ask for help during the lab sessions. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). &#039;&#039;Please feel free to contact Prof. Bresme via email if you have questions about the molecular dynamics method, the theoretical background behind molecular dynamics (statistical thermodynamics) or questions about the exercises. &#039;&#039;&#039;&#039;&#039;  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!--- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7] ---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814197</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814197"/>
		<updated>2023-01-25T10:54:20Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The best approach to get help is to attend the Teams sessions. The demonstrators will be available to answer questions between 10-12 and 3-4 on Mon, Tue, Thu and Fri. Please feel free to contact the demonstrators via Teams, and ask for help during the lab sessions. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). &#039;&#039;Please feel free to contact Prof. Bresme via email if you have questions about the molecular dynamics method, the theoretical background behind molecular dynamics (statistical thermodynamics) or questions about the exercises. You can also contact Prof F. Bresme via email the week after you have completed your session, and before you submit your report.&#039;&#039;&#039;&#039;&#039;  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!--- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7] ---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=814061</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=814061"/>
		<updated>2022-11-19T19:08:02Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Getting the files for the experiment */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&amp;lt;!--- &#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long a few minutes. &#039;&#039;&#039; ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. Each simulation should take a few minutes. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK_LS.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK_LS.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK_LS.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK_LS&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter the password provided in the invitation email to &#039;Register for the Lab&#039;.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run lammps==&lt;br /&gt;
&lt;br /&gt;
Once connected to the Microsoft Azure Window virtual machine, click on Lammps-shell  (bottom left icon) to open a special lammps terminal,&amp;lt;br&amp;gt;&lt;br /&gt;
then click on the yellow folder as indicated by the arrow and drag-and-drop it in the terminal after &amp;quot;cd &amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-lammps-vm.png|600px|center|&#039;&#039;&#039;Lammps&#039;&#039;&#039;: How to run lammps]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To run, type:&lt;br /&gt;
          source melt_crystal.in&lt;br /&gt;
&lt;br /&gt;
Remember to open a new Lammps-shell for each calculation&lt;br /&gt;
&lt;br /&gt;
In your windows folder, edit the input file with Notepad or Code&lt;br /&gt;
    &lt;br /&gt;
VMD is available as an icon on the desktop (and anaconda is installed).&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://imperialcollegelondon.box.com/s/mjxn9zxl67y10pgn8wkwlin05hmyqdsn from this address] or from this [https://imperiallondon-my.sharepoint.com/:u:/g/personal/fbresme_ic_ac_uk/EcxHpQ9p09BIs81A7vnpYSIBOIaxGzTVp9aj_kDjKYqCMw address] [[this address .|.]] You should copy the folder &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039; to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ or VSCode which you can find on Software Hub. VSCode is also on the Virtual Machines). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814048</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814048"/>
		<updated>2022-11-16T08:52:12Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The best approach to get help is to attend the Teams sessions. The demonstrators will be available to answer questions between 10-12 and 3-4 on Mon, Tue, Thu and Fri. Please feel free to contact the demonstrators via Teams, and ask for help during the lab sessions. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). &#039;&#039;Please feel free to contact Prof. Bresme via email if you have questions about the molecular dynamics method, the theoretical background behind molecular dynamics (statistical thermodynamics) or questions about the exercises. You can also contact Prof F. Bresme via email the week after you have completed your session, and before you submit your report.&#039;&#039;  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!--- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7] ---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814047</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=814047"/>
		<updated>2022-11-16T08:50:43Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
The best approach to get help is to attend the Teams sessions. The demonstrators will be available to answer questions between 10-12 and 3-4 on Mon, Tue, Thu and Fri. Please feel free to contact the demonstrators via Teams, and ask for help during the lab sessions. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). &#039;&#039;Please feel free to contact Prof. Bresme via email if you have questions about the molecular dynamics method and the theoretical background behind molecular dynamics (statistical thermodynamics). You can also contact Prof F. Bresme via email the week after your session, before you submit your report.&#039;&#039;  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!--- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7] ---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813987</id>
		<title>Third year simulation experiment/Running simulations under specific conditions</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813987"/>
		<updated>2022-10-10T17:09:36Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Temperature and Pressure Control */&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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function| Structural Properties and the Radial Distribution Functions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;NpT&amp;quot; SUBFOLDER.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Changing Ensemble==&lt;br /&gt;
&lt;br /&gt;
So far, we have been able to do some simulations in which the number of particles and the volume of the simulation cell are held constant. The energy is also constant (within a certain degree of error, which is introduced by the approximations that we make to do the simulation). If the simulation is a working properly, then the pressure and temperature of the system should also reach a constant &#039;&#039;average&#039;&#039; value (although there will again be fluctuations). As mentioned in the introductory questions in this lab ensembles are used in statistical thermodynamics to represent different sorts of experimental conditions. The simulations we have done so far are described by the &#039;&#039;microcanonical&#039;&#039;, or NVE ensemble (the letters represent those thermodynamic quantities which are constant).&lt;br /&gt;
&lt;br /&gt;
As chemists, we often want to understand what happens under particular experimental conditions &amp;amp;mdash; at 298K under 1 atmosphere of pressure, for example. These sorts of conditions are described by different ensembles in statistical thermodynamics, such as the NVT (&#039;&#039;canonical&#039;&#039;) or NpT (&#039;&#039;isobaric-isothermal&#039;&#039;) ensembles.&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to modify our simulations from the previous section to run under NpT conditions, and sketch an equation of state for our model fluid at atmospheric pressure.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
&lt;br /&gt;
The file npt.in can be used to perform a constant temperature/pressure simulation of our model fluid. It starts by melting a simple cubic crystal, just as before, so much of this file will look familiar to you. You will notice a new section near the top, however, called &#039;&#039;&#039;### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&#039;&#039;&#039;. It contains three &#039;&#039;variables&#039;&#039; &amp;amp;mdash; these are used by the script later on to define the desired temperature, pressure, and timestep. The ellipses need to be replaced by the actual temperature, pressure and timestep that you want to use, so&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable T equal 0.5&lt;br /&gt;
variable p equal 1.0&lt;br /&gt;
variable timestep equal 0.75&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would run a simulation at &amp;lt;math&amp;gt;T=0.5,\  p=1.0,\  \delta t=0.75&amp;lt;/math&amp;gt;. You should remember from the [[Third_year_simulation_experiment/Equilibration|Equilibration]] section that this is a poor choice of timestep!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8: Choose 5 temperatures (above the critical temperature, e.g. &amp;lt;math&amp;gt;T^* \ge 1.5&amp;lt;/math&amp;gt;), 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 &amp;amp;mdash; five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen &amp;lt;math&amp;gt;\left(p, T\right)&amp;lt;/math&amp;gt; points. You should be able to use the results of the previous section to choose a timestep. Run these 10 scripts on the virtual machine. 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;. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Plot the density as a function of temperature for both pressures that you simulated. Include a line corresponding to the predictions made by the ideal gas law. [3] ===&lt;br /&gt;
&lt;br /&gt;
=== How do your results compare to the ideal gas law? Do deviations increase/decrease with temperature and pressure? Explain. [7] ===&lt;br /&gt;
&lt;br /&gt;
=== Do you expect your simulation results to be in better or worse agreement with the Van der Waals equation of state? Why? [3] ===&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats - controlling the thermodynamic properties===&lt;br /&gt;
The 2nd year Solids, Liquid and Interfaces lectures will have introduced you to the &#039;&#039;equipartition theorem&#039;&#039;, which states that, on average, every degree of freedom in a system at equilibrium will have &amp;lt;math&amp;gt;\frac{1}{2}k_B T&amp;lt;/math&amp;gt; of energy. In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms, each with 3 degrees of freedom, we can write&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the end of every timestep, we use the left hand side of this equation to calculate the kinetic energy, then divide by &amp;lt;math&amp;gt;\frac{3}{2}Nk_B&amp;lt;/math&amp;gt; to get the &#039;&#039;instantaneous&#039;&#039; temperature &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. In general, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; will fluctuate, and will be different to our &#039;&#039;target&#039;&#039; temperature, &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt; (this is whatever value we specify in the input script). We can change the temperature by multiplying every velocity by a constant factor, &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;gt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too high, and we need to reduce it. &amp;lt;math&amp;gt;\gamma &amp;lt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;lt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too low, and we need to increase it. &amp;lt;math&amp;gt;\gamma &amp;gt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to choose a scaling parameter &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;
&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;
By combining these equations, one can see that &amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt; (satisfy yourself that this is true!). A target value of &amp;lt;math&amp;gt; \gamma &amp;lt;/math&amp;gt; of 1 is required and thus, dependent on whether it&#039;s larger or smaller than 1 the simulation can target the desired temperature.&lt;br /&gt;
&lt;br /&gt;
Controlling the pressure is a little more involved, but the principle is largely the same: at each timestep, the pressure of the system is calculated; if the pressure is too high, then the simulation box is made a little larger, while if the pressure is too low the box is made smaller. Simulations in which the pressure is controlled are thus in the NpT ensemble &amp;amp;mdash; the volume of the simulation box is not constant!&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&lt;br /&gt;
Open one of your input scripts (it doesn&#039;t matter which), and look at the section &#039;&#039;&#039;### BRING SYSTEM TO REQUIRED STATE ###&#039;&#039;&#039;. The line &amp;lt;pre&amp;gt;fix npt all npt temp ${T} ${T} ${tdamp} iso ${p} ${p} ${pdamp}&amp;lt;/pre&amp;gt; is the one responsible for switching on the temperature and pressure control. LAMMPS actually allows us to heat or cool the system over the course of a simulation, if we want to &amp;amp;mdash; this is the reason that the temperature appears twice in this line. The first ${T} is the desired starting temperature, and the second is the desired temperature at the end of the simulation. We want a constant average temperature, so we specify the same value twice. The same goes for the pressure.&lt;br /&gt;
&lt;br /&gt;
Now look at the lines near the end of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density&lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable dens2 equal density*density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable press equal press&lt;br /&gt;
variable press2 equal press*press&lt;br /&gt;
fix aves all ave/time 100 1000 30000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 30000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command, &#039;&#039;thermo_style&#039;&#039;, controls which thermodynamic properties are recorded, as before. The next lines are used to measure &#039;&#039;average&#039;&#039; thermodynamic properties for the system. To draw our equations of state, we need to know the average temperature, pressure, and density, and the statistical errors in those quantities. The six variable lines link those quantities (and their squared values, needed for the errors), to variable names that we can use in the averaging command, which is the line starting &#039;&#039;fix aves...&#039;&#039;. This command takes a number of input values and averages them every so many timesteps. Exactly how often this happens depends in the values of the three numbers which follow &#039;&#039;ave/time&#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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</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=813975</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=813975"/>
		<updated>2022-03-09T16:51:43Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year CMP experiment. You can return to the previous page, [[Third_year_CMP_compulsory_experiment/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Third year CMP compulsory experiment|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 &amp;lt;math&amp;gt;T = T_C&amp;lt;/math&amp;gt;. 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 &amp;lt;math&amp;gt;T_{C, L}&amp;lt;/math&amp;gt; is the Curie temperature of an &amp;lt;math&amp;gt;L\times L&amp;lt;/math&amp;gt;lattice, &amp;lt;math&amp;gt;T_{C,\infty}&amp;lt;/math&amp;gt; is the Curie temperature of an infinite lattice, and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is a constant in which we are not especially interested.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8a&amp;lt;/big&amp;gt;: A C++ program has been used to run some much longer simulations than would be possible on the college computers in Python. Each file contains six columns: &amp;lt;math&amp;gt;T, E, E^2, M, M^2, C&amp;lt;/math&amp;gt; (the final five quantities are per spin), and you can read them with the NumPy loadtxt function as before. For each lattice size, plot the C++ data against your data. For &#039;&#039;one&#039;&#039; lattice size, save a PNG of this comparison and add it to your report &amp;amp;mdash; add a legend to the graph to label which is which. To do this, you will need to pass the label=&amp;quot;...&amp;quot; keyword to the plot function, then call the legend() function of the axis object (documentation [http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.legend here]).&#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 has its maximum, 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 polyfit] and [http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyval.html#numpy.polyval polyval] functions for this purpose. 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 C vs T, 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 PNG 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 &amp;lt;math&amp;gt;T_{\mathrm{min}}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T_{\mathrm{max}}&amp;lt;/math&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 of the heat capacity! 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: peak_T_range, containing 1000 equally spaced temperature values between &amp;lt;math&amp;gt;T_{\mathrm{min}}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T_{\mathrm{max}}&amp;lt;/math&amp;gt; (whatever you chose those values to be), and fitted_C_values, containing the fitted heat capacity at each of those points. Use the NumPy max function to find the maximum in C. If you store the maximum value of C in the variable Cmax, 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 C occurs for each datafile that you were given or generated with Python. Make a text file containing two colums: the lattice side length (2,4,8, etc.), and the temperature at which C is a maximum. This is your estimate of &amp;lt;math&amp;gt;T_C&amp;lt;/math&amp;gt; for that side length. Make a plot that uses the scaling relation given above to determine &amp;lt;math&amp;gt;T_{C,\infty}&amp;lt;/math&amp;gt;. By doing a little research online, 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 PNG 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 third year CMP experiment. You can return to the previous page, [[Third_year_CMP_compulsory_experiment/Determining the heat capacity|Determining the heat capacity]], or go back to the [[Third year CMP compulsory experiment|Introduction]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Programming_a_2D_Ising_Model/The_effect_of_system_size&amp;diff=813974</id>
		<title>Programming a 2D Ising Model/The effect of system size</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_system_size&amp;diff=813974"/>
		<updated>2022-03-09T16:48:52Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Scaling the System Size */&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 sixth section of the third year CMP experiment. You can return to the previous page, [[Third_year_CMP_compulsory_experiment/The effect of temperature|The effect of temperature]], or jump ahead to the next section, [[Third year CMP compulsory experiment/Determining the heat capacity|Determining the heat capacity]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Scaling the System Size==&lt;br /&gt;
&lt;br /&gt;
Your plots from the previous section showed how the magnetisation and energy vary with temperature, and you should be able to see the onset of the phase transition. In this region, the energetic and entropic driving forces are of almost equal importance, and large fluctuations in the state of the system can take place. In fact, it is a characteristic of phase transitions that fluctuations within a system start to take place over very long ranges. This is a big problem in our simulation &amp;amp;mdash; so far, we only have 64 spins (or &amp;quot;atoms&amp;quot;, if you prefer), so our system may not be big enough for these long ranged fluctuations to be correctly modelled.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 6&amp;lt;/big&amp;gt;: Repeat the final task of the previous section for the following lattice sizes: 2x2, 4x4, 8x8, 16x16, 32x32. Make sure that you name each datafile that your produce after the corresponding lattice size! Write a Python script to make a plot showing the energy &#039;&#039;per spin&#039;&#039; versus temperature for each of your lattice sizes. Hint: the NumPy loadtxt function is the reverse of the savetxt function, and can be used to read your previously saved files into the script. Repeat this for the magnetisation. As before, use the plot controls to save your a PNG image of your plot and attach this to the report. How big a lattice do you think is big enough to capture the long range correlations?&#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 sixth section of the third year CMP experiment. You can return to the previous page, [[Third_year_CMP_compulsory_experiment/The effect of temperature|The effect of temperature]], or jump ahead to the next section, [[Third year CMP compulsory experiment/Determining the heat capacity|Determining the heat capacity]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813867</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813867"/>
		<updated>2021-10-24T11:04:28Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!--- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7] ---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813866</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813866"/>
		<updated>2021-10-24T11:03:01Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [4] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [4] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813865</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813865"/>
		<updated>2021-10-24T11:02:16Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase (and by extension a critical point) if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? What interaction strength is required to generate a liquid phase? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - see &amp;quot;Phase transitions of pure substances&amp;quot;&#039;&#039;) [3] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813864</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813864"/>
		<updated>2021-10-24T10:59:59Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase if the LJ interaction strength,&amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;, is very weak? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - Phase transitions of pure substances&#039;&#039;) [3] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813863</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813863"/>
		<updated>2021-10-24T10:57:30Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials. What additional elements would you need to add to the interaction potential to model a molecule, e.g. water?   [6] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? (&#039;&#039;Hint: consider here the balance of computational cost vs accuracy in describing the properties of a system&#039;&#039;.) [3] &lt;br /&gt;
#In this lab you have investigated the properties of solids, liquids and gases. Would you observe a liquid phase if the LJ interaction strength is very weak? (&#039;&#039;Hint: to address this question you may want to revise the 2nd year Solids, Liquid and Interfaces lecture notes - Phase transitions of pure substances&#039;&#039;) [3] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE are widely used to model molecular systems as they allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function&amp;diff=813862</id>
		<title>Third year simulation experiment/Structural properties and the radial distribution function</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function&amp;diff=813862"/>
		<updated>2021-10-24T10:41:16Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]], or jump ahead to the next section, [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We can characterise the structure of systems that we simulate using [http://en.wikipedia.org/wiki/Radial_distribution_function radial distribution functions], which we denote &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt;. Calculating the RDF for a simulation is very useful &amp;amp;mdash; it can tell us the distances from an atom at which it is more likely to find it&#039;s nearest neighbour, second nearest neighbour, and so on; it is also a quantity that can be accessed [[experimentally]], and so provides a good check that the forcefield in our simulation is correctly reproducing the structural features.&lt;br /&gt;
&lt;br /&gt;
In this section, you are going to use VMD to calculate the radial distribution function for the solid, liquid, and vapour phases of the Lennard-Jones fluid.&lt;br /&gt;
&lt;br /&gt;
===Simulations in this section===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;RDF&#039;&#039;&#039; subfolder contains an example input script that you can use to record an atomic trajectory to generate RDFs for the solid, liquid, and vapour phase Lennard Jones systems. Make three copies of that script (one for each phase), and modify the density and temperature parameters to give the phase that you want (a phase diagram for the Lennard-Jones system can be found [http://journals.aps.org/pr/abstract/10.1103/PhysRev.184.151 here]). &amp;lt;big&amp;gt;&#039;&#039;&#039;Note: when simulating the solid, you will need to change the lattice type in the lattice command to fcc, rather than sc. &#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 9: perform simulations of the Lennard-Jones system in the three phases (solid, liquid and vapour). When each is complete, open the trajectories (.dump files) and calculate &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4\pi \int g(r) r^{2}\mathrm{d}r&amp;lt;/math&amp;gt;.  See instructions at the end of this page.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Briefly explain what a Radial Distribution Function is. What is the relationship between the coordination number and RDF? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Plot the RDFs for the three systems. [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Discuss qualitatively the differences between the three RDFs, and what this tells you about the structure of the system in each phase. [5] ===&lt;br /&gt;
&lt;br /&gt;
=== In the solid case, illustrate which lattice sites the first three peaks correspond to [2]. What is the lattice spacing [1]? What are the coordination number for each of the first three peaks [1]? ===&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 sixth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Running simulations under specific conditions|Running simulations under specific conditions]], or jump ahead to the next section, [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Calculating &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; in VMD===&lt;br /&gt;
&lt;br /&gt;
# Start VMD as before and load the trajectory that you want to analyse.&lt;br /&gt;
# Select &#039;&#039;&#039;Extensions&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Analysis&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Radial Pair Distribution Function g(r)&#039;&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;&#039;Selection 1&#039;&#039;&#039; to &#039;&#039;&#039;all&#039;&#039;&#039; and &#039;&#039;&#039;Selection 2&#039;&#039;&#039; to &#039;&#039;&#039;all&#039;&#039;&#039;&lt;br /&gt;
# Change &#039;&#039;&#039;delta r&#039;&#039;&#039; to &#039;&#039;&#039;0.05&#039;&#039;&#039; &amp;amp;mdash; this is the distance between points in the generated RDF.&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Use PBC&#039;&#039;&#039;, &#039;&#039;&#039;Display g(r)&#039;&#039;&#039;, &#039;&#039;&#039;Display Int(g(r))&#039;&#039;&#039;, and &#039;&#039;&#039;Save to File&#039;&#039;&#039; are checked&lt;br /&gt;
# Click &#039;&#039;&#039;Compute g(r)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a short pause while it performs the calculation, VMD will display both the RDF, and its running integral. You will then be prompted to save this data &amp;amp;mdash; choose a location for the file that you will be able to find easily later.&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function&amp;diff=813861</id>
		<title>Third year simulation experiment/Structural properties and the radial distribution function</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function&amp;diff=813861"/>
		<updated>2021-10-24T10:39:54Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]], or jump ahead to the next section, [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We can characterise the structure of systems that we simulate using [http://en.wikipedia.org/wiki/Radial_distribution_function radial distribution functions], which we denote &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt;. Calculating the RDF for a simulation is very useful &amp;amp;mdash; it can tell us the distances from an atom at which it is more likely to find it&#039;s nearest neighbour, second nearest neighbour, and so on; it is also a quantity that can be accessed [[experimentally]], and so provides a good check that the forcefield in our simulation is correctly reproducing the structural features.&lt;br /&gt;
&lt;br /&gt;
In this section, you are going to use VMD to calculate the radial distribution function for the solid, liquid, and vapour phases of the Lennard-Jones fluid.&lt;br /&gt;
&lt;br /&gt;
===Simulations in this section===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;RDF&#039;&#039;&#039; subfolder contains an example input script that you can use to record an atomic trajectory to generate RDFs for the solid, liquid, and vapour phase Lennard Jones systems. Make three copies of that script (one for each phase), and modify the density and temperature parameters to give the phase that you want (a phase diagram for the Lennard-Jones system can be found [http://journals.aps.org/pr/abstract/10.1103/PhysRev.184.151 here]). &amp;lt;big&amp;gt;&#039;&#039;&#039;Note: when simulating the solid, you will need to change the lattice type in the lattice command to fcc, rather than sc. &#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 9: perform simulations of the Lennard-Jones system in the three phases. When each is complete, open the trajectories (.dump files) and calculate &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;4\pi \int g(r) r^{2}\mathrm{d}r&amp;lt;/math&amp;gt;.  See instructions at the end of this page.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Briefly explain what a Radial Distribution Function is. What is the relationship between the coordination number and RDF? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Plot the RDFs for the three systems. [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Discuss qualitatively the differences between the three RDFs, and what this tells you about the structure of the system in each phase. [5] ===&lt;br /&gt;
&lt;br /&gt;
=== In the solid case, illustrate which lattice sites the first three peaks correspond to [2]. What is the lattice spacing [1]? What are the coordination number for each of the first three peaks [1]? ===&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 sixth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Running simulations under specific conditions|Running simulations under specific conditions]], or jump ahead to the next section, [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Calculating &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; in VMD===&lt;br /&gt;
&lt;br /&gt;
# Start VMD as before and load the trajectory that you want to analyse.&lt;br /&gt;
# Select &#039;&#039;&#039;Extensions&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Analysis&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Radial Pair Distribution Function g(r)&#039;&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;&#039;Selection 1&#039;&#039;&#039; to &#039;&#039;&#039;all&#039;&#039;&#039; and &#039;&#039;&#039;Selection 2&#039;&#039;&#039; to &#039;&#039;&#039;all&#039;&#039;&#039;&lt;br /&gt;
# Change &#039;&#039;&#039;delta r&#039;&#039;&#039; to &#039;&#039;&#039;0.05&#039;&#039;&#039; &amp;amp;mdash; this is the distance between points in the generated RDF.&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Use PBC&#039;&#039;&#039;, &#039;&#039;&#039;Display g(r)&#039;&#039;&#039;, &#039;&#039;&#039;Display Int(g(r))&#039;&#039;&#039;, and &#039;&#039;&#039;Save to File&#039;&#039;&#039; are checked&lt;br /&gt;
# Click &#039;&#039;&#039;Compute g(r)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After a short pause while it performs the calculation, VMD will display both the RDF, and its running integral. You will then be prompted to save this data &amp;amp;mdash; choose a location for the file that you will be able to find easily later.&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813860</id>
		<title>Third year simulation experiment/Running simulations under specific conditions</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813860"/>
		<updated>2021-10-24T08:53:05Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function| Structural Properties and the Radial Distribution Functions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;NpT&amp;quot; SUBFOLDER.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Changing Ensemble==&lt;br /&gt;
&lt;br /&gt;
So far, we have been able to do some simulations in which the number of particles and the volume of the simulation cell are held constant. The energy is also constant (within a certain degree of error, which is introduced by the approximations that we make to do the simulation). If the simulation is a working properly, then the pressure and temperature of the system should also reach a constant &#039;&#039;average&#039;&#039; value (although there will again be fluctuations). As mentioned in the introductory questions in this lab ensembles are used in statistical thermodynamics to represent different sorts of experimental conditions. The simulations we have done so far are described by the &#039;&#039;microcanonical&#039;&#039;, or NVE ensemble (the letters represent those thermodynamic quantities which are constant).&lt;br /&gt;
&lt;br /&gt;
As chemists, we often want to understand what happens under particular experimental conditions &amp;amp;mdash; at 298K under 1 atmosphere of pressure, for example. These sorts of conditions are described by different ensembles in statistical thermodynamics, such as the NVT (&#039;&#039;canonical&#039;&#039;) or NpT (&#039;&#039;isobaric-isothermal&#039;&#039;) ensembles.&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to modify our simulations from the previous section to run under NpT conditions, and sketch an equation of state for our model fluid at atmospheric pressure.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
&lt;br /&gt;
The file npt.in can be used to perform a constant temperature/pressure simulation of our model fluid. It starts by melting a simple cubic crystal, just as before, so much of this file will look familiar to you. You will notice a new section near the top, however, called &#039;&#039;&#039;### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&#039;&#039;&#039;. It contains three &#039;&#039;variables&#039;&#039; &amp;amp;mdash; these are used by the script later on to define the desired temperature, pressure, and timestep. The ellipses need to be replaced by the actual temperature, pressure and timestep that you want to use, so&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable T equal 0.5&lt;br /&gt;
variable p equal 1.0&lt;br /&gt;
variable timestep equal 0.75&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would run a simulation at &amp;lt;math&amp;gt;T=0.5,\  p=1.0,\  \delta t=0.75&amp;lt;/math&amp;gt;. You should remember from the [[Third_year_simulation_experiment/Equilibration|Equilibration]] section that this is a poor choice of timestep!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8: Choose 5 temperatures (above the critical temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt;), 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 &amp;amp;mdash; five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen &amp;lt;math&amp;gt;\left(p, T\right)&amp;lt;/math&amp;gt; points. You should be able to use the results of the previous section to choose a timestep. Run these 10 scripts on the virtual machine. 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;. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Plot the density as a function of temperature for both pressures that you simulated. Include a line corresponding to the predictions made by the ideal gas law. [3] ===&lt;br /&gt;
&lt;br /&gt;
=== How do your results compare to the ideal gas law? Do deviations increase/decrease with temperature and pressure? Explain. [7] ===&lt;br /&gt;
&lt;br /&gt;
=== Do you expect your simulation results to be in better or worse agreement with the Van der Waals equation of state? Why? [3] ===&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats - controlling the thermodynamic properties===&lt;br /&gt;
The 2nd year Solids, Liquid and Interfaces lectures will have introduced you to the &#039;&#039;equipartition theorem&#039;&#039;, which states that, on average, every degree of freedom in a system at equilibrium will have &amp;lt;math&amp;gt;\frac{1}{2}k_B T&amp;lt;/math&amp;gt; of energy. In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms, each with 3 degrees of freedom, we can write&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the end of every timestep, we use the left hand side of this equation to calculate the kinetic energy, then divide by &amp;lt;math&amp;gt;\frac{3}{2}Nk_B&amp;lt;/math&amp;gt; to get the &#039;&#039;instantaneous&#039;&#039; temperature &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. In general, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; will fluctuate, and will be different to our &#039;&#039;target&#039;&#039; temperature, &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt; (this is whatever value we specify in the input script). We can change the temperature by multiplying every velocity by a constant factor, &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;gt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too high, and we need to reduce it. &amp;lt;math&amp;gt;\gamma &amp;lt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;lt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too low, and we need to increase it. &amp;lt;math&amp;gt;\gamma &amp;gt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to choose a scaling parameter &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;
&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;
By combining these equations, one can see that &amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt; (satisfy yourself that this is true!). A target value of &amp;lt;math&amp;gt; \gamma &amp;lt;/math&amp;gt; of 1 is required and thus, dependent on whether it&#039;s larger or smaller than 1 the simulation can target the desired temperature.&lt;br /&gt;
&lt;br /&gt;
Controlling the pressure is a little more involved, but the principle is largely the same: at each timestep, the pressure of the system is calculated; if the pressure is too high, then the simulation box is made a little larger, while if the pressure is too low the box is made smaller. Simulations in which the pressure is controlled are thus in the NpT ensemble &amp;amp;mdash; the volume of the simulation box is not constant!&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&lt;br /&gt;
Open one of your input scripts (it doesn&#039;t matter which), and look at the section &#039;&#039;&#039;### BRING SYSTEM TO REQUIRED STATE ###&#039;&#039;&#039;. The line &amp;lt;pre&amp;gt;fix npt all npt temp ${T} ${T} ${tdamp} iso ${p} ${p} ${pdamp}&amp;lt;/pre&amp;gt; is the one responsible for switching on the temperature and pressure control. LAMMPS actually allows us to heat or cool the system over the course of a simulation, if we want to &amp;amp;mdash; this is the reason that the temperature appears twice in this line. The first ${T} is the desired starting temperature, and the second is the desired temperature at the end of the simulation. We want a constant average temperature, so we specify the same value twice. The same goes for the pressure.&lt;br /&gt;
&lt;br /&gt;
Now look at the lines near the end of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density&lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable dens2 equal density*density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable press equal press&lt;br /&gt;
variable press2 equal press*press&lt;br /&gt;
fix aves all ave/time 100 1000 30000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 30000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command, &#039;&#039;thermo_style&#039;&#039;, controls which thermodynamic properties are recorded, as before. The next lines are used to measure &#039;&#039;average&#039;&#039; thermodynamic properties for the system. To draw our equations of state, we need to know the average temperature, pressure, and density, and the statistical errors in those quantities. The six variable lines link those quantities (and their squared values, needed for the errors), to variable names that we can use in the averaging command, which is the line starting &#039;&#039;fix aves...&#039;&#039;. This command takes a number of input values and averages them every so many timesteps. Exactly how often this happens depends in the values of the three numbers which follow &#039;&#039;ave/time&#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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813859</id>
		<title>Third year simulation experiment/Running simulations under specific conditions</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813859"/>
		<updated>2021-10-24T08:52:41Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function| Structural Properties and the Radial Distribution Functions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;NpT&amp;quot; SUBFOLDER.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Changing Ensemble==&lt;br /&gt;
&lt;br /&gt;
So far, we have been able to do some simulations in which the number of particles and the volume of the simulation cell are held constant. The energy is also constant (within a certain degree of error, which is introduced by the approximations that we make to do the simulation). If the simulation is a working properly, then the pressure and temperature of the system should also reach a constant &#039;&#039;average&#039;&#039; value (although there will again be fluctuations). As mentioned in the introductory questions in this lab ensembles are used in statistical thermodynamics to represent different sorts of experimental conditions. The simulations we have done so far are described by the &#039;&#039;microcanonical&#039;&#039;, or NVE ensemble (the letters represent those thermodynamic quantities which are constant).&lt;br /&gt;
&lt;br /&gt;
As chemists, we often want to understand what happens under particular experimental conditions &amp;amp;mdash; at 298K under 1 atmosphere of pressure, for example. These sorts of conditions are described by different ensembles in statistical mechanics, such as the NVT (&#039;&#039;canonical&#039;&#039;) or NpT (&#039;&#039;isobaric-isothermal&#039;&#039;) ensembles.&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to modify our simulations from the previous section to run under NpT conditions, and sketch an equation of state for our model fluid at atmospheric pressure.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
&lt;br /&gt;
The file npt.in can be used to perform a constant temperature/pressure simulation of our model fluid. It starts by melting a simple cubic crystal, just as before, so much of this file will look familiar to you. You will notice a new section near the top, however, called &#039;&#039;&#039;### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&#039;&#039;&#039;. It contains three &#039;&#039;variables&#039;&#039; &amp;amp;mdash; these are used by the script later on to define the desired temperature, pressure, and timestep. The ellipses need to be replaced by the actual temperature, pressure and timestep that you want to use, so&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable T equal 0.5&lt;br /&gt;
variable p equal 1.0&lt;br /&gt;
variable timestep equal 0.75&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would run a simulation at &amp;lt;math&amp;gt;T=0.5,\  p=1.0,\  \delta t=0.75&amp;lt;/math&amp;gt;. You should remember from the [[Third_year_simulation_experiment/Equilibration|Equilibration]] section that this is a poor choice of timestep!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8: Choose 5 temperatures (above the critical temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt;), 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 &amp;amp;mdash; five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen &amp;lt;math&amp;gt;\left(p, T\right)&amp;lt;/math&amp;gt; points. You should be able to use the results of the previous section to choose a timestep. Run these 10 scripts on the virtual machine. 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;. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Plot the density as a function of temperature for both pressures that you simulated. Include a line corresponding to the predictions made by the ideal gas law. [3] ===&lt;br /&gt;
&lt;br /&gt;
=== How do your results compare to the ideal gas law? Do deviations increase/decrease with temperature and pressure? Explain. [7] ===&lt;br /&gt;
&lt;br /&gt;
=== Do you expect your simulation results to be in better or worse agreement with the Van der Waals equation of state? Why? [3] ===&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats - controlling the thermodynamic properties===&lt;br /&gt;
The 2nd year Solids, Liquid and Interfaces lectures will have introduced you to the &#039;&#039;equipartition theorem&#039;&#039;, which states that, on average, every degree of freedom in a system at equilibrium will have &amp;lt;math&amp;gt;\frac{1}{2}k_B T&amp;lt;/math&amp;gt; of energy. In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms, each with 3 degrees of freedom, we can write&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the end of every timestep, we use the left hand side of this equation to calculate the kinetic energy, then divide by &amp;lt;math&amp;gt;\frac{3}{2}Nk_B&amp;lt;/math&amp;gt; to get the &#039;&#039;instantaneous&#039;&#039; temperature &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. In general, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; will fluctuate, and will be different to our &#039;&#039;target&#039;&#039; temperature, &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt; (this is whatever value we specify in the input script). We can change the temperature by multiplying every velocity by a constant factor, &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;gt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too high, and we need to reduce it. &amp;lt;math&amp;gt;\gamma &amp;lt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;lt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too low, and we need to increase it. &amp;lt;math&amp;gt;\gamma &amp;gt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to choose a scaling parameter &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;
&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;
By combining these equations, one can see that &amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt; (satisfy yourself that this is true!). A target value of &amp;lt;math&amp;gt; \gamma &amp;lt;/math&amp;gt; of 1 is required and thus, dependent on whether it&#039;s larger or smaller than 1 the simulation can target the desired temperature.&lt;br /&gt;
&lt;br /&gt;
Controlling the pressure is a little more involved, but the principle is largely the same: at each timestep, the pressure of the system is calculated; if the pressure is too high, then the simulation box is made a little larger, while if the pressure is too low the box is made smaller. Simulations in which the pressure is controlled are thus in the NpT ensemble &amp;amp;mdash; the volume of the simulation box is not constant!&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&lt;br /&gt;
Open one of your input scripts (it doesn&#039;t matter which), and look at the section &#039;&#039;&#039;### BRING SYSTEM TO REQUIRED STATE ###&#039;&#039;&#039;. The line &amp;lt;pre&amp;gt;fix npt all npt temp ${T} ${T} ${tdamp} iso ${p} ${p} ${pdamp}&amp;lt;/pre&amp;gt; is the one responsible for switching on the temperature and pressure control. LAMMPS actually allows us to heat or cool the system over the course of a simulation, if we want to &amp;amp;mdash; this is the reason that the temperature appears twice in this line. The first ${T} is the desired starting temperature, and the second is the desired temperature at the end of the simulation. We want a constant average temperature, so we specify the same value twice. The same goes for the pressure.&lt;br /&gt;
&lt;br /&gt;
Now look at the lines near the end of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density&lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable dens2 equal density*density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable press equal press&lt;br /&gt;
variable press2 equal press*press&lt;br /&gt;
fix aves all ave/time 100 1000 30000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 30000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command, &#039;&#039;thermo_style&#039;&#039;, controls which thermodynamic properties are recorded, as before. The next lines are used to measure &#039;&#039;average&#039;&#039; thermodynamic properties for the system. To draw our equations of state, we need to know the average temperature, pressure, and density, and the statistical errors in those quantities. The six variable lines link those quantities (and their squared values, needed for the errors), to variable names that we can use in the averaging command, which is the line starting &#039;&#039;fix aves...&#039;&#039;. This command takes a number of input values and averages them every so many timesteps. Exactly how often this happens depends in the values of the three numbers which follow &#039;&#039;ave/time&#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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813858</id>
		<title>Third year simulation experiment/Equilibration</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813858"/>
		<updated>2021-10-24T08:49:19Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
We will be using the LAMMPS program to carry out our molecular dynamics simulations.&lt;br /&gt;
&#039;&#039;&#039;In several places in this section, we will ask you to consult the LAMMPS manual to find out things about how the software works. You can find the manual [https://lammps.sandia.gov/doc/Manual.html here].&#039;&#039;&#039; We appreciate that the format of this document can make it a little hard to navigate, but it is the definitive resource on how different commands in LAMMPS work, and is therefore invaluable. The files you will need for this section can be found in the intro folder downloaded previously.&lt;br /&gt;
&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
In the previous section, it was pointed out that before we can start a simulation, we need to know the initial states of all of the atoms in the system. Exactly what information we need about each atom depends on which method of numerical integration we need, but at the very least we need to specify the starting position of each atom. If we wanted to simulate a crystal, this information would be quite easy to come by &amp;amp;mdash; we could just look up the crystal structure, and use that to generate coordinates for however many unit cells we wanted. For this purpose, LAMMPS includes a command which generates crystal lattice structures.&lt;br /&gt;
&lt;br /&gt;
Generating coordinates for atoms in a liquid is more difficult. There is no long range order, so we can&#039;t use a single point of reference to work out the positions of every other atom like we can in a solid. We could generate a random position for each atom. This would certainly create a disordered structure, but causes larger problems when we try to run the simulation.&lt;br /&gt;
&lt;br /&gt;
Instead, we are going to place the atoms on the lattice points of a simple cubic lattice. This, of course, is not a situation in which the system is likely to be found physically. It turns out, though, that if we simulate for enough time we will find that the atoms rearrange themselves into more realistic configurations. We will discuss towards the end of this section exactly what is meant by &amp;quot;enough time&amp;quot;!&lt;br /&gt;
&lt;br /&gt;
Consider the line in the input file &amp;lt;pre&amp;gt;lattice sc 0.8&amp;lt;/pre&amp;gt; This command [https://lammps.sandia.gov/doc/lattice.html (further info)] creates a grid of points forming a simple cubic lattice (one lattice point per unit cell). The parameter &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt; specifies the number density (number of lattice points per unit volume). In a corresponding output file, you will see the line &amp;lt;pre&amp;gt;Lattice spacing in x,y,z = 1.07722 1.07722 1.07722&amp;lt;/pre&amp;gt; This indicates that the distance between the points of this lattice is &amp;lt;math&amp;gt;1.07722&amp;lt;/math&amp;gt; (in reduced units, remember!).&lt;br /&gt;
&lt;br /&gt;
The next lines in the input file are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
region box block 0 5 0 5 0 5&lt;br /&gt;
create_box 1 box&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The corresponding log file output is &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Created orthogonal box = (0.0000000 0.0000000 0.0000000) to (5.3860867 5.3860867 5.3860867)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The region command [https://lammps.sandia.gov/doc/region.html (further info)] simply defines a geometrical region in space, which we call &amp;quot;box&amp;quot;. In this case, &amp;quot;box&amp;quot; is a cube extending ten lattice spacings from the origin in all three dimensions. The subsequent create_box command [https://lammps.sandia.gov/doc/create_box.html (further info)] tells LAMMPS to use the geometrical region called &amp;quot;box&amp;quot; as a template for the simulation box. The number 1 between &amp;quot;create_box&amp;quot; and &amp;quot;box&amp;quot; indicates that our simulation will contain only one type (species) of atom.&lt;br /&gt;
&lt;br /&gt;
So far we have defined a simulation box which is based around a virtual simple cubic lattice. Our box contains 125 (5x5x5) unit cells of this lattice, and so contains 125 lattice points. We now need to fill our simulation box with atoms. The input command is &amp;lt;pre&amp;gt;create_atoms 1 box&amp;lt;/pre&amp;gt; [https://lammps.sandia.gov/doc/create_atoms.html (further info)] while the log file simply contains an acknowledgement of this &amp;lt;pre&amp;gt;Created 125 atoms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The create_atoms command has two arguments; the first tells LAMMPS that all of the atoms that we create will be of type 1. Every atom in the simulation has a type &amp;amp;mdash; because we will be simulating a pure fluid, containing only one chemical species, every atom will have the same type. The actual type that we assign to each atom is arbitrary &amp;amp;mdash; type 1 does not, for example, need to correspond to the element with atomic number 1 (hydrogen). If we wanted to simulate water, we might make the hydrogen atoms type 1 and the oxygen atoms type 2. We will specify the physical and chemical properties of each atom type later in the input script.&lt;br /&gt;
&lt;br /&gt;
The remaining data in the log file isn&#039;t very instructive as it stands &amp;amp;mdash; it simply contains a list of the thermodynamic properties of the simulation at certain intervals. In a few sections time, we will plot this data, but for now you can close the log file. Keep the input script open.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&lt;br /&gt;
In addition to their positions, we also need the physical properties of the atoms to be able to perform the simulation. We set these properties on a &#039;per-type&#039; basis, so that every atom of the same type has the same mass and the same interactions.&lt;br /&gt;
&lt;br /&gt;
So far we have created 125 atoms, and we know the starting (&amp;lt;math&amp;gt;t = 0&amp;lt;/math&amp;gt;) position for each of them. We have also set their masses, and told LAMMPS what sort of forces to calculate between them. The final thing we need to specify to completely specify the initial conditions is the velocity of each atom.&lt;br /&gt;
&lt;br /&gt;
Choosing initial velocities for the atoms is a little easier than choosing initial positions. From the 1st year lectures, you should know that, at equilibrium, the velocities of atoms in any system must be distributed according to the [http://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution Maxwell-Boltzmann (MB) distribution]. If we know the masses of the atoms, and we know what temperature we want to simulate, then we can determine the relevant MB distribution function. LAMMPS is able to give every atom a random velocity whilst ensuring that overall the MB distribution is followed. This is the purpose of the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity all create 1.5 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the manual page for this command [http://lammps.sandia.gov/doc/velocity.html here], but the key sections are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;all&#039;&#039;&#039;: the &#039;&#039;group&#039;&#039; of atoms on which the command acts. &#039;&#039;&#039;all&#039;&#039;&#039; simply specifies that we want every atom to have a velocity assigned to it.&lt;br /&gt;
* &#039;&#039;&#039;1.5&#039;&#039;&#039;: the temperature, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, needed to calculate the MB distribution(in reduced units, as always)&lt;br /&gt;
&lt;br /&gt;
===Monitoring thermodynamic properties===&lt;br /&gt;
&lt;br /&gt;
We need to be sure that our simulation is correctly modelling whatever physical system we want to study. It is relatively easy to set up simulations, but how can we be sure that the &amp;quot;results&amp;quot; we get make sense? One of the best ways is to calculate from the simulation things that we can measure in experiment, and see if they agree. For example, we might want to simulate our system at a particular temperature and pressure, and measure the resulting density. If we repeat this over a range of temperatures at the same pressure, we will be able to plot an &#039;&#039;equation of state&#039;&#039;, which we could compare to experimental measurements.&lt;br /&gt;
&lt;br /&gt;
LAMMPS is able to calculate a great deal of thermodynamic information for us (you can see a full list of the properties it is able to calculate [http://lammps.sandia.gov/doc/thermo_style.html here]), but in these first simulations we are only interested in those properties specified in these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first controls which properties will be printed out in the log file. In this case, we print how much time we have simulated so far (which is &#039;&#039;not&#039;&#039; the same as how long it has taken us to simulate it!), the total energy of the atoms, their temperature, and their pressure. The second line tells LAMMPS to print this information on every 10th timestep.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;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(50/${timestep})&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION ###&lt;br /&gt;
run ${n_steps}&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.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; It is now time to run your first simulation, submit the input script with the data file in the intro folder of the files you have downloaded Try changing the timestep - what happens when you make the timestep larger?. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Visualising the trajectory===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;trajectory files&#039;&#039;&#039; contain the positions of all the atoms in the simulation, recorded at a set interval (for all of these simulations, this was every ten timesteps &amp;amp;mdash; this is controlled by the &#039;&#039;&#039;dump&#039;&#039;&#039; command in the input scripts). We use a programme called [http://www.ks.uiuc.edu/Research/vmd/ &#039;&#039;&#039;VMD&#039;&#039;&#039;] to view these trajectories, which you should find is already installed on both the desktop and laptop computers. You can run VMD from the start menu with &#039;&#039;&#039;Start&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;All Programs&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;University of Illinois&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;VMD&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Loading a Trajectory====&lt;br /&gt;
&lt;br /&gt;
We&#039;ll start by looking at the output of the 0.02 timestep simulation. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;File&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;New Molecule&#039;&#039;&#039;. Click the &#039;&#039;&#039;Browse&#039;&#039;&#039; button, then select the relevant trajectory file. In the &#039;&#039;&#039;Determine file type&#039;&#039;&#039; dropdown, select &#039;&#039;&#039;LAMMPS Trajectory&#039;&#039;&#039;. Then click &#039;&#039;&#039;Load&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
You will see that the &#039;&#039;&#039;VMD 1.9.1 OpenGL Display&#039;&#039;&#039; window now shows a horrible mess. VMD&#039;s default behaviour is to draw lines between atoms which it thinks might be chemically bonded. Our system doesn&#039;t model chemical bonds, so we want to turn this off. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;Graphics&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Representations&#039;&#039;&#039;. This shows a list of &amp;quot;representations&amp;quot; of our atoms. You will see that at the moment, there is a single representation listed, and it is selected. It will have the &#039;&#039;Lines&#039;&#039; style, the &#039;&#039;Name&#039;&#039; colour, and the selection &#039;&#039;all&#039;&#039;. &amp;quot;Selection&amp;quot; simply tells VMD which atoms we want it to draw. We want to show every atom, so the current selection is fine. The &#039;&#039;name&#039;&#039; colouring method just makes VMD give atoms colours according to their specified type. The colour isn&#039;t important to us, so we can leave this be too. The &amp;quot;style&amp;quot; tells VMD what we want it to display for each atom. Change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; from &#039;&#039;Lines&#039;&#039; to &#039;&#039;VDW&#039;&#039;. You will see that the mess of lines is replaced by a mess of low resolution, overlapping spheres. Change the &#039;&#039;&#039;Sphere Scale&#039;&#039;&#039; to 0.3, and the &#039;&#039;&#039;Sphere Resolution&#039;&#039;&#039; to 17. The result should look a little smoother. Close the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window. You will notice that in the bottom right of the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, there is a small play button. Click this, and you will see the animated version of your simulation trajectory.&lt;br /&gt;
&lt;br /&gt;
By clicking and dragging with the mouse, you can rotate the simulation box (though this may be sluggish). At any time, you can reset the view by pressing the equals key.&lt;br /&gt;
&lt;br /&gt;
====Tracking a Single Particle====&lt;br /&gt;
To illustrate the periodic boundary conditions that we are using, we are going to draw almost all of the atoms as points, but we will pick a single atom at random to draw as a sphere. This will make it easy to see how a single atom moves through the box. Reset the display using the equals key, then use the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window controls to pause the trajectory and reset it to the first trajectory (play with the different buttons until you find the one that does this). You should see the perfect cubic lattice. Use the option &#039;&#039;&#039;Display&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Orthographic&#039;&#039;&#039; to change the drawing mode, then rotate the displayed crystal so that you are looking at one vertex (looking down the 111 direction, in crystallographic terms).&lt;br /&gt;
&lt;br /&gt;
Open the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window again. Change the representation style from &#039;&#039;&#039;VDW&#039;&#039;&#039; to points, then click the &#039;&#039;&#039;Create Rep&#039;&#039;&#039; button. This creates a second representation, allowing a subset of the atoms to be drawn in a different way. The &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; box allows us to choose which atoms this representation applies to. We just want to pick two of them at random &amp;amp;mdash; VMD assigns every atom an index, from 0 to N-1. In our case, there are 125 atoms, so choose two numbers between 0 and 124. Changed the &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; field to &amp;lt;pre&amp;gt;index i or index j&amp;lt;/pre&amp;gt; where i and j are your chosen numbers, press return, then change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; to &#039;&#039;&#039;VDW&#039;&#039;&#039;. You should now see only two atoms represented by spheres, with the rest shown as small points. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, click play. Try rotating the box, and changing the playback speed.&lt;br /&gt;
&lt;br /&gt;
You will see that sometimes one of the spheres seems to change position across the box very rapidly &amp;amp;mdash; this occurs when it reaches one periodic boundary, and is reflected back across the other face. Try playing with some of the other representation types in VMD &amp;amp;mdash; it  is a very powerful package, which is often used to render images of simulated proteins, so many of its options aren&#039;t relevant to our simple system!&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
&lt;br /&gt;
When we first set up a simulation, it is very important to make sure that our system reaches an equilibrium state. We characterise equilibrium by the average values of thermodynamic quantities becoming constant (due to the approximations that we have made, there will always be fluctuations, but the average values will become constant).&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to plot the thermodynamic output of the simulation to see how long it takes to reach the equilibrium state (and indeed, whether this happens at all). Instructions are given below to import data from the LAMMPS log file into Microsoft Excel. Once you have the data in a spreadsheet, you can plot it. If you know how to use some of the other plotting software available on the chemistry computers (like Origin), you are welcome to use it.&lt;br /&gt;
&lt;br /&gt;
# Open a blank Excel workbook&lt;br /&gt;
# Copy the data in the textfile into the first cell&lt;br /&gt;
# With these data highlighted, click the Data tab and &amp;quot;Text to Columns&amp;quot;&lt;br /&gt;
# Click &amp;quot;Delimited&amp;quot;, continue and let it be space delimited&lt;br /&gt;
# Click finish&lt;br /&gt;
You can then export this and data as a .csv and analyse in Python or Excel, as you wish. &lt;br /&gt;
&lt;br /&gt;
Challenge: Can you write a python script or function that extracts this data for a given file automatically?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 7: &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== What does it mean for a simulation to &amp;quot;reach equilibrium&amp;quot;? Why is this important in terms of sampling from an ensemble using molecular dynamics? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Plot the energy (potential, kinetic and total), temperature and pressure, against time for the 0.001 timestep experiment [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Does the simulation reach equilibrium? How can you tell? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Make a single plot which shows the energy vs. time for the timesteps you have simulated [2]. ===&lt;br /&gt;
&lt;br /&gt;
=== Of the timesteps that you used, which timestep will you use for subsequent simulations and why? [6] ===&lt;br /&gt;
&#039;&#039;(Think about what is happening &amp;quot;physically&amp;quot; as you increase/decrease the timestep. Also, what features of each timeseries are indicative of the simulation&#039;s &amp;quot;health&amp;quot;?)&#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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813857</id>
		<title>Third year simulation experiment/Introduction to molecular dynamics simulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813857"/>
		<updated>2021-10-24T08:40:45Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Files to download|Downloading Files]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;This section contains background information about the theory of molecular dynamics simulations. It contains a number of relatively short exercises that you must complete as part of your lab write-up. These are labelled in bold and preceded by the word TASK in large print. It is recommended that you read the information on this page before carrying on with the rest of the experiment, but you are encouraged to save the TASKS for later; you can attempt them while you wait for long simulations to finish.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this section, we briefly discuss the theory behind molecular dynamics (MD) simulations. When we perform MD, we calculate how a particular set of atoms move over time. Using statistical physics, we can use the positions, velocities, and forces, of the atoms to calculate thermodynamic quantities like temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
==Theory==&lt;br /&gt;
&lt;br /&gt;
===The Classical Particle Approximation===&lt;br /&gt;
&lt;br /&gt;
As you may remember from your quantum chemistry lectures, it is very straightforward to write down the Schroedinger equation that describes the behaviour of any particular chemical system. For anything more complicated than a hydrogen atom, however, it is impossible to solve exactly. Even approximate solutions can be extremely computationally demanding. To be able to simulate a real system, we have to make some approximations.&lt;br /&gt;
&lt;br /&gt;
It turns out that, to a very good approximation, we can assume that atoms behave as classical particles. Imagine a collection of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms. Each one of them will interact with all of the others, and so each atom will feel a force. Newton&#039;s second law tell us that that force causes the atom to accelerate.&lt;br /&gt;
&lt;br /&gt;
Throughout this section, we are going to use the following notation:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt; is the force acting on atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;m_i&amp;lt;/math&amp;gt; is the mass of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{a}_i&amp;lt;/math&amp;gt; is the acceleration of atom i, the rate of change of its velocity.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{v}_i&amp;lt;/math&amp;gt; is the velocity of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{x}_i&amp;lt;/math&amp;gt; is the position of atom i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = m_i \mathbf{a}_i = m_i \frac{\mathrm{d}\mathbf{v}_i}{\mathrm{d}t} = m_i \frac{\mathrm{d}^2 \mathbf{x}_i}{\mathrm{d}t^2} \ \ (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a second order differential equation for the positions of the atoms &amp;amp;mdash; if we know how the force, &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt;, behaves as a function of time, then we can determine the atomic positions and velocities at any time we like. Our system of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms has &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; of these equations, one for each atom. This is one of the reasons that computer simulations are needed &amp;amp;mdash; if we want to model the behaviour of a liquid, we can hardly solve the necessary number of equations by hand.&lt;br /&gt;
&lt;br /&gt;
===Numerical Integration===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numerical integration is a rather complex topic. In particular, the notation used below can be quite intimidating. Remember that you are encouraged to ask for help from the demonstrator if you want to discuss any part of this experiment!&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a number of numerical algorithms to perform a molecular dynamics simulation, two are presented here- The Classical Verlet algorithm and The Velocity-Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
====Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
To solve these equations numerically we have to &#039;&#039;discretise&#039;&#039; the problem: rather than treating the atomic positions, velocities, and forces as continuous functions of time, we break our simulation up into a sequence of &#039;&#039;&#039;timesteps&#039;&#039;&#039;, each of length &amp;lt;math&amp;gt;\delta t&amp;lt;/math&amp;gt;. This process is illustrated for a simple function in &#039;&#039;&#039;figure 1&#039;&#039;&#039;. The method that we are going to use to solve Newton&#039;s law for our atoms is usually called the Verlet algorithm (although it is an old method, and has been &#039;rediscovered&#039; many times!). To understand its origin, we will begin with a brief derivation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Discretisation.png|300px|thumb|center|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Discretisation of sin(x) between 0 and &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We denote the position of an atom, &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;, at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\mathbf{x}_i \left(t\right)&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;\mathbf{v}_i \left(t\right)&amp;lt;/math&amp;gt; is the velocity of that atom at the same time. What we want to know is the position of the atoms at the next timestep, &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;. The basic Verlet algorithm is shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; - knowing a set of initial conditions the algorithm calculates forces and by Newton&#039;s second law, we can update the positions of a set of particles are a time &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Verlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: Steps to implement the classic Verlet algorithm.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 1: By taking Taylor expansions of  &amp;lt;math&amp;gt;x(t + \delta t)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x(t - \delta t)&amp;lt;/math&amp;gt;, write general expressions for them up to the fourth order &amp;lt;math&amp;gt;\mathcal{O}\left(\delta t^4\right)&amp;lt;/math&amp;gt; &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; Having written these expressions, derive the formula in figure 2 to update positions as used in the classical Verlet algorithm &amp;lt;math&amp;gt; x(t + \delta t) \approx 2x_{i}(t) - x_{i}(t-\delta t) + \frac{F_{i}(t)}{m} \delta t^{2}&amp;lt;/math&amp;gt; by using Newton&#039;s second law to replace &amp;lt;math&amp;gt;\frac{\mathrm{d}^2\mathbf{x}_i\left(t\right)}{\mathrm{d}t^2}&amp;lt;/math&amp;gt; [4 marks] &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using this last equation, we can use a sequence of steps like those shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; to get the positions. At no point are the velocities calculated in this method!&lt;br /&gt;
&lt;br /&gt;
====Velocity Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
If we assume that the acceleration of an atom depends only on its position and not its velocity, then we are able to come up with a new algorithm that lets us calculate atomic velocities explicitly as shown in &#039;&#039;&#039;figure 3&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We start by noting that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t\right) + \frac{\mathbf{a}_i\left(t\right) + \mathbf{a}_i\left(t + \delta t\right)}{2}\delta t \ \ (6)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can Taylor expand the velocity by half a step, instead of a full step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) = \mathbf{v}_i\left(t\right) + \frac{1}{2} \mathbf{a}_i\left(t\right)\delta t \ \ (7)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We then substitute this into your expansion for &amp;lt;math&amp;gt; x_{i} (t + \delta t) &amp;lt;/math&amp;gt; to obtain an accuracy up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt;. Notice that terms up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt; in your expansion can be written:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \mathbf{x}_{i} (t + \delta t) = \mathbf{x}_{i} (t) + \mathbf{v}(t) \delta t + \frac{1}{2} \mathbf{a}(t) \delta t ^{2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ (8)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When we know the updated atomic positions, we can calculate new forces, &amp;lt;math&amp;gt;\mathbf{a}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;. Finally, we substitute equation (7) into equation (6) to get the new velocities &amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) + \frac{1}{2}\mathbf{a}_i\left(t + \delta t\right)\delta t \ \ (9)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that for both numerical integration algorithms, the first step is &amp;quot;specify initial conditions&amp;quot;. When using the Verlet algorithm, we need to know the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;), and their positions one timestep in the past (&amp;lt;math&amp;gt;\mathbf{x}_i\left(-\delta t\right)&amp;lt;/math&amp;gt;). If the velocity-Verlet algorithm is used, then we have to know the  the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;) and their velocities at the same time (&amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;). For this reason, we often start new simulations by using the output of older ones. If, however, you are performing your first simulations of a system (as we are now), then you must choose your initial conditions. The simulation software that we will use is able to do this for us, and this will be explained in the next section.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 2: What could be an advantage of the Velocity-Verlet algorithm over the classical Verlet algorithm? [2 marks]&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&lt;br /&gt;
Since we can&#039;t reasonably solve the exact equations from quantum mechanics necessary to determine the forces acting on a given configuration of N atoms, we have to make approximations. We know from classical physics that the force acting on an object is determined by the potential that it experiences:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The shorthand notation &amp;lt;math&amp;gt;\mathbf{r}^N&amp;lt;/math&amp;gt; stands for the position vectors of &#039;&#039;&#039;every&#039;&#039;&#039; atom in system. In principle, the force that a single atom feels is determined by the position of every other atom in the simulation. All we then need to do is to find a function &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt;, the potential energy, that captures all the key physics of the interatomic interactions in the system. For many simple liquids, it turns out that we can model the interactions between each pair of atoms extremely well using the Lennard-Jones potential. Overall, U takes the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;U\left(\mathbf{r}^N\right) = \sum_{i=1}^{N-1} \sum_{j &amp;gt; i}^{N} \left\{ 4\epsilon \left( \frac{\sigma^{12}}{r_{ij}^{12}} - \frac{\sigma^6}{r_{ij}^6} \right) \right\} \ \ (10)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== TASK 3: Consider the Lennard-Jones pair potential. What physical interaction(s) does it describe? What is the physical significance for the r^(-6) and r^(-12) terms? [3 marks] ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 4: 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; [4 marks]&amp;lt;/big&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Periodic Boundary Conditions====&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Box.png|200px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: Diagram of a simulation box containing 2139 atoms. The blue lines indicate the boundaries of the box.]]&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Periodic.svg|300px|thumb|left|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: Periodic boundary conditions in two dimensions.]]&lt;br /&gt;
&lt;br /&gt;
We cannot simulate realistic volumes of liquid. In fact, in our simulations, &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; will be between &amp;lt;math&amp;gt;1000&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt;. The following task should illustrate why this must be so.&lt;br /&gt;
&lt;br /&gt;
In order for our simulations to approximate a bulk liquid, we have to use a computational trick. The atoms in the simulation are enclosed in a simulation box, of fixed dimensions (&#039;&#039;&#039;figure 4&#039;&#039;&#039;). This box is very often a cuboid, but parallelepipeds can also be used (and this can be very useful when simulating crystal structures). We pretend that we have repeated our box infinitely in all directions, so that the atoms at the very edges are not exposed to a vacuum. This is illustrated in two dimensions in &#039;&#039;&#039;figure 5&#039;&#039;&#039;. The darker coloured atoms in the central box are the &amp;quot;real&amp;quot; atoms. The faded atoms in the outer four boxes are the replicas. When an atom crosses the boundary of the box, one of its replicas enters the box through the opposite face. In this way, the number of atoms inside the box is always constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5: 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;? [1 marks]&#039;&#039;&#039; &amp;lt;/big&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Truncation====&lt;br /&gt;
&lt;br /&gt;
Periodic boundary conditions introduce their own problems. When we defined our potential function (equation 10), we specified that it depended on all possible pairs of atoms. If we have an infinite number of replicas of our system, how can we avoid calculating an infinite number of pair interactions?&lt;br /&gt;
&lt;br /&gt;
Think about the three integrals you calculated for the Lennard-Jones potential task. They represent the area under the Lennard-Jones potential curve between some specified distance (&amp;lt;math&amp;gt;2\sigma&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;), and infinite separation (where there is no interaction). You should find that this value becomes rather small as the near distance is increased! The attractive &amp;lt;math&amp;gt;\frac{1}{r^6}&amp;lt;/math&amp;gt; part of the potential dominates here, and this decays rapidly with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. We assume that this means that there is a distance beyond which the interaction is so small that we can safely ignore it. In fact, in most simulations this is chosen to be something close to &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;. When the forces are calculated, we only calculate interactions between a pair of atoms if their separation is less than this cutoff.&lt;br /&gt;
&lt;br /&gt;
====Reduced Units====&lt;br /&gt;
&lt;br /&gt;
It is typical when using Lennard-Jones interactions to work in reduced units. By this, we mean that all quantities in our simulation are divided by scaling factors &amp;amp;mdash; for example, distances are divided by &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;. The result of this is that the values become more manageable: all values that we might work out are typically around 1, rather than &amp;lt;math&amp;gt;1\times 10^{-10}&amp;lt;/math&amp;gt; (in the case of distance), &amp;lt;math&amp;gt;300&amp;lt;/math&amp;gt; (in the case of temperature), or &amp;lt;math&amp;gt;1\times 10^{-19}&amp;lt;/math&amp;gt; (in the case of energy).&lt;br /&gt;
&lt;br /&gt;
We denote these reduced quantities by a star, and they take the following conversion factors:&lt;br /&gt;
&lt;br /&gt;
* distance &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}&amp;lt;/math&amp;gt;&lt;br /&gt;
* energy &amp;lt;math&amp;gt;E^* = \frac{E}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
* temperature &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 6: 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? [1 marks]&amp;lt;/big&amp;gt; &#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 second section of the third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Running your first simulation|Files to Download]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813856</id>
		<title>Third year simulation experiment/Introduction to molecular dynamics simulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813856"/>
		<updated>2021-10-24T08:40:06Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Files to download|Downloading Files]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;This section contains background information about the theory of molecular dynamics simulations. It contains a number of relatively short exercises that you must complete as part of your lab write-up. These are labelled in bold and preceded by the word TASK in large print. It is recommended that you read the information on this page before carrying on with the rest of the experiment, but you are encouraged to save the TASKS for later; you can attempt them while you wait for long simulations to finish.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this section, we briefly discuss the theory behind molecular dynamics (MD) simulations. When we perform MD, we calculate how a particular set of atoms move over time. Using statistical physics, we can use the positions, velocities, and forces, of the atoms to calculate thermodynamic quantities like temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
==Theory==&lt;br /&gt;
&lt;br /&gt;
===The Classical Particle Approximation===&lt;br /&gt;
&lt;br /&gt;
As you may remember from your quantum chemistry lectures, it is very straightforward to write down the Schroedinger equation that describes the behaviour of any particular chemical system. For anything more complicated than a hydrogen atom, however, it is impossible to solve exactly. Even approximate solutions can be extremely computationally demanding. To be able to simulate a real system, we have to make some approximations.&lt;br /&gt;
&lt;br /&gt;
It turns out that, to a very good approximation, we can assume that atoms behave as classical particles. Imagine a collection of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms. Each one of them will interact with all of the others, and so each atom will feel a force. Newton&#039;s second law tell us that that force causes the atom to accelerate.&lt;br /&gt;
&lt;br /&gt;
Throughout this section, we are going to use the following notation:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt; is the force acting on atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;m_i&amp;lt;/math&amp;gt; is the mass of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{a}_i&amp;lt;/math&amp;gt; is the acceleration of atom i, the rate of change of its velocity.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{v}_i&amp;lt;/math&amp;gt; is the velocity of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{x}_i&amp;lt;/math&amp;gt; is the position of atom i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = m_i \mathbf{a}_i = m_i \frac{\mathrm{d}\mathbf{v}_i}{\mathrm{d}t} = m_i \frac{\mathrm{d}^2 \mathbf{x}_i}{\mathrm{d}t^2} \ \ (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a second order differential equation for the positions of the atoms &amp;amp;mdash; if we know how the force, &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt;, behaves as a function of time, then we can determine the atomic positions and velocities at any time we like. Our system of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms has &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; of these equations, one for each atom. This is one of the reasons that computer simulations are needed &amp;amp;mdash; if we want to model the behaviour of a liquid, we can hardly solve the necessary number of equations by hand.&lt;br /&gt;
&lt;br /&gt;
===Numerical Integration===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numerical integration is a rather complex topic. In particular, the notation used below can be quite intimidating. Remember that you are encouraged to ask for help from the demonstrator if you want to discuss any part of this experiment!&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a number of numerical algorithms to perform a molecular dynamics simulation, two are presented here- The Classical Verlet algorithm and The Velocity-Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
====Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
To solve these equations numerically we have to &#039;&#039;discretise&#039;&#039; the problem: rather than treating the atomic positions, velocities, and forces as continuous functions of time, we break our simulation up into a sequence of &#039;&#039;&#039;timesteps&#039;&#039;&#039;, each of length &amp;lt;math&amp;gt;\delta t&amp;lt;/math&amp;gt;. This process is illustrated for a simple function in &#039;&#039;&#039;figure 1&#039;&#039;&#039;. The method that we are going to use to solve Newton&#039;s law for our atoms is usually called the Verlet algorithm (although it is an old method, and has been &#039;rediscovered&#039; many times!). To understand its origin, we will begin with a brief derivation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Discretisation.png|300px|thumb|center|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Discretisation of sin(x) between 0 and &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We denote the position of an atom, &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;, at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\mathbf{x}_i \left(t\right)&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;\mathbf{v}_i \left(t\right)&amp;lt;/math&amp;gt; is the velocity of that atom at the same time. What we want to know is the position of the atoms at the next timestep, &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;. The basic Verlet algorithm is shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; - knowing a set of initial conditions the algorithm calculates forces and by Newton&#039;s second law, we can update the positions of a set of particles are a time &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Verlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: Steps to implement the classic Verlet algorithm.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 1: By taking Taylor expansions of  &amp;lt;math&amp;gt;x(t + \delta t)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x(t - \delta t)&amp;lt;/math&amp;gt;, write general expressions for them up to the fourth order &amp;lt;math&amp;gt;\mathcal{O}\left(\delta t^4\right)&amp;lt;/math&amp;gt; &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; Having written these expressions, derive the formula in figure 2 to update positions as used in the classical Verlet algorithm &amp;lt;math&amp;gt; x(t + \delta t) \approx 2x_{i}(t) - x_{i}(t-\delta t) + \frac{F_{i}(t)}{m} \delta t^{2}&amp;lt;/math&amp;gt; by using Newton&#039;s second law to replace &amp;lt;math&amp;gt;\frac{\mathrm{d}^2\mathbf{x}_i\left(t\right)}{\mathrm{d}t^2}&amp;lt;/math&amp;gt; [4 marks] &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using this last equation, we can use a sequence of steps like those shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; to get the positions. At no point are the velocities calculated in this method!&lt;br /&gt;
&lt;br /&gt;
====Velocity Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
If we assume that the acceleration of an atom depends only on its position and not its velocity, then we are able to come up with a new algorithm that lets us calculate atomic velocities explicitly as shown in &#039;&#039;&#039;figure 3&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We start by noting that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t\right) + \frac{\mathbf{a}_i\left(t\right) + \mathbf{a}_i\left(t + \delta t\right)}{2}\delta t \ \ (6)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can Taylor expand the velocity by half a step, instead of a full step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) = \mathbf{v}_i\left(t\right) + \frac{1}{2} \mathbf{a}_i\left(t\right)\delta t \ \ (7)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We then substitute this into your expansion for &amp;lt;math&amp;gt; x_{i} (t + \delta t) &amp;lt;/math&amp;gt; to obtain an accuracy up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt;. Notice that terms up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt; in your expansion can be written:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \mathbf{x}_{i} (t + \delta t) = \mathbf{x}_{i} (t) + \mathbf{v}(t) \delta t + \frac{1}{2} \mathbf{a}(t) \delta t ^{2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ (8)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When we know the updated atomic positions, we can calculate new forces, &amp;lt;math&amp;gt;\mathbf{a}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;. Finally, we substitute equation (7) into equation (6) to get the new velocities &amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) + \frac{1}{2}\mathbf{a}_i\left(t + \delta t\right)\delta t \ \ (9)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that for both numerical integration algorithms, the first step is &amp;quot;specify initial conditions&amp;quot;. When using the Verlet algorithm, we need to know the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;), and their positions one timestep in the past (&amp;lt;math&amp;gt;\mathbf{x}_i\left(-\delta t\right)&amp;lt;/math&amp;gt;). If the velocity-Verlet algorithm is used, then we have to know the  the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;) and their velocities at the same time (&amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;). For this reason, we often start new simulations by using the output of older ones. If, however, you are performing your first simulations of a system (as we are now), then you must choose your initial conditions. The simulation software that we will use is able to do this for us, and this will be explained in the next section.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 2: What could be an advantage of the Velocity-Verlet algorithm over the classical Verlet algorithm? [2 marks]&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&lt;br /&gt;
Since we can&#039;t reasonably solve the exact equations from quantum mechanics necessary to determine the forces acting on a given configuration of N atoms, we have to make approximations. We know from classical physics that the force acting on an object is determined by the potential that it experiences:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The shorthand notation &amp;lt;math&amp;gt;\mathbf{r}^N&amp;lt;/math&amp;gt; stands for the position vectors of &#039;&#039;&#039;every&#039;&#039;&#039; atom in system. In principle, the force that a single atom feels is determined by the position of every other atom in the simulation. All we then need to do is to find a function &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt;, the potential energy, that captures all the key physics of the interatomic interactions in the system. For many simple liquids, it turns out that we can model the interactions between each pair of atoms extremely well using the Lennard-Jones potential. Overall, U takes the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;U\left(\mathbf{r}^N\right) = \sum_i^{N-1} \sum_{j &amp;gt; j}^{N} \left\{ 4\epsilon \left( \frac{\sigma^{12}}{r_{ij}^{12}} - \frac{\sigma^6}{r_{ij}^6} \right) \right\} \ \ (10)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== TASK 3: Consider the Lennard-Jones pair potential. What physical interaction(s) does it describe? What is the physical significance for the r^(-6) and r^(-12) terms? [3 marks] ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 4: 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; [4 marks]&amp;lt;/big&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Periodic Boundary Conditions====&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Box.png|200px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: Diagram of a simulation box containing 2139 atoms. The blue lines indicate the boundaries of the box.]]&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Periodic.svg|300px|thumb|left|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: Periodic boundary conditions in two dimensions.]]&lt;br /&gt;
&lt;br /&gt;
We cannot simulate realistic volumes of liquid. In fact, in our simulations, &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; will be between &amp;lt;math&amp;gt;1000&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt;. The following task should illustrate why this must be so.&lt;br /&gt;
&lt;br /&gt;
In order for our simulations to approximate a bulk liquid, we have to use a computational trick. The atoms in the simulation are enclosed in a simulation box, of fixed dimensions (&#039;&#039;&#039;figure 4&#039;&#039;&#039;). This box is very often a cuboid, but parallelepipeds can also be used (and this can be very useful when simulating crystal structures). We pretend that we have repeated our box infinitely in all directions, so that the atoms at the very edges are not exposed to a vacuum. This is illustrated in two dimensions in &#039;&#039;&#039;figure 5&#039;&#039;&#039;. The darker coloured atoms in the central box are the &amp;quot;real&amp;quot; atoms. The faded atoms in the outer four boxes are the replicas. When an atom crosses the boundary of the box, one of its replicas enters the box through the opposite face. In this way, the number of atoms inside the box is always constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5: 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;? [1 marks]&#039;&#039;&#039; &amp;lt;/big&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Truncation====&lt;br /&gt;
&lt;br /&gt;
Periodic boundary conditions introduce their own problems. When we defined our potential function (equation 10), we specified that it depended on all possible pairs of atoms. If we have an infinite number of replicas of our system, how can we avoid calculating an infinite number of pair interactions?&lt;br /&gt;
&lt;br /&gt;
Think about the three integrals you calculated for the Lennard-Jones potential task. They represent the area under the Lennard-Jones potential curve between some specified distance (&amp;lt;math&amp;gt;2\sigma&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;), and infinite separation (where there is no interaction). You should find that this value becomes rather small as the near distance is increased! The attractive &amp;lt;math&amp;gt;\frac{1}{r^6}&amp;lt;/math&amp;gt; part of the potential dominates here, and this decays rapidly with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. We assume that this means that there is a distance beyond which the interaction is so small that we can safely ignore it. In fact, in most simulations this is chosen to be something close to &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;. When the forces are calculated, we only calculate interactions between a pair of atoms if their separation is less than this cutoff.&lt;br /&gt;
&lt;br /&gt;
====Reduced Units====&lt;br /&gt;
&lt;br /&gt;
It is typical when using Lennard-Jones interactions to work in reduced units. By this, we mean that all quantities in our simulation are divided by scaling factors &amp;amp;mdash; for example, distances are divided by &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;. The result of this is that the values become more manageable: all values that we might work out are typically around 1, rather than &amp;lt;math&amp;gt;1\times 10^{-10}&amp;lt;/math&amp;gt; (in the case of distance), &amp;lt;math&amp;gt;300&amp;lt;/math&amp;gt; (in the case of temperature), or &amp;lt;math&amp;gt;1\times 10^{-19}&amp;lt;/math&amp;gt; (in the case of energy).&lt;br /&gt;
&lt;br /&gt;
We denote these reduced quantities by a star, and they take the following conversion factors:&lt;br /&gt;
&lt;br /&gt;
* distance &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}&amp;lt;/math&amp;gt;&lt;br /&gt;
* energy &amp;lt;math&amp;gt;E^* = \frac{E}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
* temperature &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 6: 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? [1 marks]&amp;lt;/big&amp;gt; &#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 second section of the third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Running your first simulation|Files to Download]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813855</id>
		<title>Third year simulation experiment/Introduction to molecular dynamics simulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813855"/>
		<updated>2021-10-24T08:39:16Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Files to download|Downloading Files]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;This section contains background information about the theory of molecular dynamics simulations. It contains a number of relatively short exercises that you must complete as part of your lab write-up. These are labelled in bold and preceded by the word TASK in large print. It is recommended that you read the information on this page before carrying on with the rest of the experiment, but you are encouraged to save the TASKS for later; you can attempt them while you wait for long simulations to finish.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this section, we briefly discuss the theory behind molecular dynamics (MD) simulations. When we perform MD, we calculate how a particular set of atoms move over time. Using statistical physics, we can use the positions, velocities, and forces, of the atoms to calculate thermodynamic quantities like temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
==Theory==&lt;br /&gt;
&lt;br /&gt;
===The Classical Particle Approximation===&lt;br /&gt;
&lt;br /&gt;
As you may remember from your quantum chemistry lectures, it is very straightforward to write down the Schroedinger equation that describes the behaviour of any particular chemical system. For anything more complicated than a hydrogen atom, however, it is impossible to solve exactly. Even approximate solutions can be extremely computationally demanding. To be able to simulate a real system, we have to make some approximations.&lt;br /&gt;
&lt;br /&gt;
It turns out that, to a very good approximation, we can assume that atoms behave as classical particles. Imagine a collection of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms. Each one of them will interact with all of the others, and so each atom will feel a force. Newton&#039;s second law tell us that that force causes the atom to accelerate.&lt;br /&gt;
&lt;br /&gt;
Throughout this section, we are going to use the following notation:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt; is the force acting on atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;m_i&amp;lt;/math&amp;gt; is the mass of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{a}_i&amp;lt;/math&amp;gt; is the acceleration of atom i, the rate of change of its velocity.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{v}_i&amp;lt;/math&amp;gt; is the velocity of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{x}_i&amp;lt;/math&amp;gt; is the position of atom i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = m_i \mathbf{a}_i = m_i \frac{\mathrm{d}\mathbf{v}_i}{\mathrm{d}t} = m_i \frac{\mathrm{d}^2 \mathbf{x}_i}{\mathrm{d}t^2} \ \ (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a second order differential equation for the positions of the atoms &amp;amp;mdash; if we know how the force, &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt;, behaves as a function of time, then we can determine the atomic positions and velocities at any time we like. Our system of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms has &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; of these equations, one for each atom. This is one of the reasons that computer simulations are needed &amp;amp;mdash; if we want to model the behaviour of a liquid, we can hardly solve the necessary number of equations by hand.&lt;br /&gt;
&lt;br /&gt;
===Numerical Integration===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numerical integration is a rather complex topic. In particular, the notation used below can be quite intimidating. Remember that you are encouraged to ask for help from the demonstrator if you want to discuss any part of this experiment!&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a number of numerical algorithms to perform a molecular dynamics simulation, two are presented here- The Classical Verlet algorithm and The Velocity-Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
====Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
To solve these equations numerically we have to &#039;&#039;discretise&#039;&#039; the problem: rather than treating the atomic positions, velocities, and forces as continuous functions of time, we break our simulation up into a sequence of &#039;&#039;&#039;timesteps&#039;&#039;&#039;, each of length &amp;lt;math&amp;gt;\delta t&amp;lt;/math&amp;gt;. This process is illustrated for a simple function in &#039;&#039;&#039;figure 1&#039;&#039;&#039;. The method that we are going to use to solve Newton&#039;s law for our atoms is usually called the Verlet algorithm (although it is an old method, and has been &#039;rediscovered&#039; many times!). To understand its origin, we will begin with a brief derivation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Discretisation.png|300px|thumb|center|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Discretisation of sin(x) between 0 and &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We denote the position of an atom, &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;, at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\mathbf{x}_i \left(t\right)&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;\mathbf{v}_i \left(t\right)&amp;lt;/math&amp;gt; is the velocity of that atom at the same time. What we want to know is the position of the atoms at the next timestep, &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;. The basic Verlet algorithm is shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; - knowing a set of initial conditions the algorithm calculates forces and by Newton&#039;s second law, we can update the positions of a set of particles are a time &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Verlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: Steps to implement the classic Verlet algorithm.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 1: By taking Taylor expansions of  &amp;lt;math&amp;gt;x(t + \delta t)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x(t - \delta t)&amp;lt;/math&amp;gt;, write general expressions for them up to the fourth order &amp;lt;math&amp;gt;\mathcal{O}\left(\delta t^4\right)&amp;lt;/math&amp;gt; &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; Having written these expressions, derive the formula in figure 2 to update positions as used in the classical Verlet algorithm &amp;lt;math&amp;gt; x(t + \delta t) \approx 2x_{i}(t) - x_{i}(t-\delta t) + \frac{F_{i}(t)}{m} \delta t^{2}&amp;lt;/math&amp;gt; by using Newton&#039;s second law to replace &amp;lt;math&amp;gt;\frac{\mathrm{d}^2\mathbf{x}_i\left(t\right)}{\mathrm{d}t^2}&amp;lt;/math&amp;gt; [4 marks] &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using this last equation, we can use a sequence of steps like those shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; to get the positions. At no point are the velocities calculated in this method!&lt;br /&gt;
&lt;br /&gt;
====Velocity Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
If we assume that the acceleration of an atom depends only on its position and not its velocity, then we are able to come up with a new algorithm that lets us calculate atomic velocities explicitly as shown in &#039;&#039;&#039;figure 3&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We start by noting that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t\right) + \frac{\mathbf{a}_i\left(t\right) + \mathbf{a}_i\left(t + \delta t\right)}{2}\delta t \ \ (6)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can Taylor expand the velocity by half a step, instead of a full step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) = \mathbf{v}_i\left(t\right) + \frac{1}{2} \mathbf{a}_i\left(t\right)\delta t \ \ (7)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We then substitute this into your expansion for &amp;lt;math&amp;gt; x_{i} (t + \delta t) &amp;lt;/math&amp;gt; to obtain an accuracy up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt;. Notice that terms up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt; in your expansion can be written:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \mathbf{x}_{i} (t + \delta t) = \mathbf{x}_{i} (t) + \mathbf{v}(t) \delta t + \frac{1}{2} \mathbf{a}(t) \delta t ^{2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ (8)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When we know the updated atomic positions, we can calculate new forces, &amp;lt;math&amp;gt;\mathbf{a}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;. Finally, we substitute equation (7) into equation (6) to get the new velocities &amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) + \frac{1}{2}\mathbf{a}_i\left(t + \delta t\right)\delta t \ \ (9)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that for both numerical integration algorithms, the first step is &amp;quot;specify initial conditions&amp;quot;. When using the Verlet algorithm, we need to know the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;), and their positions one timestep in the past (&amp;lt;math&amp;gt;\mathbf{x}_i\left(-\delta t\right)&amp;lt;/math&amp;gt;). If the velocity-Verlet algorithm is used, then we have to know the  the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;) and their velocities at the same time (&amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;). For this reason, we often start new simulations by using the output of older ones. If, however, you are performing your first simulations of a system (as we are now), then you must choose your initial conditions. The simulation software that we will use is able to do this for us, and this will be explained in the next section.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 2: What could be an advantage of the Velocity-Verlet algorithm over the classical Verlet algorithm? [2 marks]&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&lt;br /&gt;
Since we can&#039;t reasonably solve the exact equations from quantum mechanics necessary to determine the forces acting on a given configuration of N atoms, we have to make approximations. We know from classical physics that the force acting on an object is determined by the potential that it experiences:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The shorthand notation &amp;lt;math&amp;gt;\mathbf{r}^N&amp;lt;/math&amp;gt; stands for the position vectors of &#039;&#039;&#039;every&#039;&#039;&#039; atom in system. In principle, the force that a single atom feels is determined by the position of every other atom in the simulation. All we then need to do is to find a function &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt;, the potential energy, that captures all the key physics of the interatomic interactions in the system. For many simple liquids, it turns out that we can model the interactions between each pair of atoms extremely well using the Lennard-Jones potential. Overall, U takes the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;U\left(\mathbf{r}^N\right) = \sum_i^N \sum_{j &amp;gt; j}^{N} \left\{ 4\epsilon \left( \frac{\sigma^{12}}{r_{ij}^{12}} - \frac{\sigma^6}{r_{ij}^6} \right) \right\} \ \ (10)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== TASK 3: Consider the Lennard-Jones pair potential. What physical interaction(s) does it describe? What is the physical significance for the r^(-6) and r^(-12) terms? [3 marks] ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 4: 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; [4 marks]&amp;lt;/big&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Periodic Boundary Conditions====&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Box.png|200px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: Diagram of a simulation box containing 2139 atoms. The blue lines indicate the boundaries of the box.]]&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Periodic.svg|300px|thumb|left|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: Periodic boundary conditions in two dimensions.]]&lt;br /&gt;
&lt;br /&gt;
We cannot simulate realistic volumes of liquid. In fact, in our simulations, &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; will be between &amp;lt;math&amp;gt;1000&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt;. The following task should illustrate why this must be so.&lt;br /&gt;
&lt;br /&gt;
In order for our simulations to approximate a bulk liquid, we have to use a computational trick. The atoms in the simulation are enclosed in a simulation box, of fixed dimensions (&#039;&#039;&#039;figure 4&#039;&#039;&#039;). This box is very often a cuboid, but parallelepipeds can also be used (and this can be very useful when simulating crystal structures). We pretend that we have repeated our box infinitely in all directions, so that the atoms at the very edges are not exposed to a vacuum. This is illustrated in two dimensions in &#039;&#039;&#039;figure 5&#039;&#039;&#039;. The darker coloured atoms in the central box are the &amp;quot;real&amp;quot; atoms. The faded atoms in the outer four boxes are the replicas. When an atom crosses the boundary of the box, one of its replicas enters the box through the opposite face. In this way, the number of atoms inside the box is always constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5: 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;? [1 marks]&#039;&#039;&#039; &amp;lt;/big&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Truncation====&lt;br /&gt;
&lt;br /&gt;
Periodic boundary conditions introduce their own problems. When we defined our potential function (equation 10), we specified that it depended on all possible pairs of atoms. If we have an infinite number of replicas of our system, how can we avoid calculating an infinite number of pair interactions?&lt;br /&gt;
&lt;br /&gt;
Think about the three integrals you calculated for the Lennard-Jones potential task. They represent the area under the Lennard-Jones potential curve between some specified distance (&amp;lt;math&amp;gt;2\sigma&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;), and infinite separation (where there is no interaction). You should find that this value becomes rather small as the near distance is increased! The attractive &amp;lt;math&amp;gt;\frac{1}{r^6}&amp;lt;/math&amp;gt; part of the potential dominates here, and this decays rapidly with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. We assume that this means that there is a distance beyond which the interaction is so small that we can safely ignore it. In fact, in most simulations this is chosen to be something close to &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;. When the forces are calculated, we only calculate interactions between a pair of atoms if their separation is less than this cutoff.&lt;br /&gt;
&lt;br /&gt;
====Reduced Units====&lt;br /&gt;
&lt;br /&gt;
It is typical when using Lennard-Jones interactions to work in reduced units. By this, we mean that all quantities in our simulation are divided by scaling factors &amp;amp;mdash; for example, distances are divided by &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;. The result of this is that the values become more manageable: all values that we might work out are typically around 1, rather than &amp;lt;math&amp;gt;1\times 10^{-10}&amp;lt;/math&amp;gt; (in the case of distance), &amp;lt;math&amp;gt;300&amp;lt;/math&amp;gt; (in the case of temperature), or &amp;lt;math&amp;gt;1\times 10^{-19}&amp;lt;/math&amp;gt; (in the case of energy).&lt;br /&gt;
&lt;br /&gt;
We denote these reduced quantities by a star, and they take the following conversion factors:&lt;br /&gt;
&lt;br /&gt;
* distance &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}&amp;lt;/math&amp;gt;&lt;br /&gt;
* energy &amp;lt;math&amp;gt;E^* = \frac{E}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
* temperature &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 6: 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? [1 marks]&amp;lt;/big&amp;gt; &#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 second section of the third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Running your first simulation|Files to Download]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813854</id>
		<title>Third year simulation experiment/Introduction to molecular dynamics simulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation&amp;diff=813854"/>
		<updated>2021-10-24T08:36:35Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Files to download|Downloading Files]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;This section contains background information about the theory of molecular dynamics simulations. It contains a number of relatively short exercises that you must complete as part of your lab write-up. These are labelled in bold and preceded by the word TASK in large print. It is recommended that you read the information on this page before carrying on with the rest of the experiment, but you are encouraged to save the TASKS for later; you can attempt them while you wait for long simulations to finish.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this section, we briefly discuss the theory behind molecular dynamics (MD) simulations. When we perform MD, we calculate how a particular set of atoms move over time. Using statistical physics, we can use the positions, velocities, and forces, of the atoms to calculate thermodynamic quantities like temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
==Theory==&lt;br /&gt;
&lt;br /&gt;
===The Classical Particle Approximation===&lt;br /&gt;
&lt;br /&gt;
As you may remember from your quantum chemistry lectures, it is very straightforward to write down the Schroedinger equation that describes the behaviour of any particular chemical system. For anything more complicated than a hydrogen atom, however, it is impossible to solve exactly. Even approximate solutions can be extremely computationally demanding. To be able to simulate a real system, we have to make some approximations.&lt;br /&gt;
&lt;br /&gt;
It turns out that, to a very good approximation, we can assume that atoms behave as classical particles. Imagine a collection of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms. Each one of them will interact with all of the others, and so each atom will feel a force. Newton&#039;s second law tell us that that force causes the atom to accelerate.&lt;br /&gt;
&lt;br /&gt;
Throughout this section, we are going to use the following notation:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt; is the force acting on atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;m_i&amp;lt;/math&amp;gt; is the mass of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{a}_i&amp;lt;/math&amp;gt; is the acceleration of atom i, the rate of change of its velocity.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{v}_i&amp;lt;/math&amp;gt; is the velocity of atom i.&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathbf{x}_i&amp;lt;/math&amp;gt; is the position of atom i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = m_i \mathbf{a}_i = m_i \frac{\mathrm{d}\mathbf{v}_i}{\mathrm{d}t} = m_i \frac{\mathrm{d}^2 \mathbf{x}_i}{\mathrm{d}t^2} \ \ (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a second order differential equation for the positions of the atoms &amp;amp;mdash; if we know how the force, &amp;lt;math&amp;gt;\mathbf{F}_i&amp;lt;/math&amp;gt;, behaves as a function of time, then we can determine the atomic positions and velocities at any time we like. Our system of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms has &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; of these equations, one for each atom. This is one of the reasons that computer simulations are needed &amp;amp;mdash; if we want to model the behaviour of a liquid, we can hardly solve the necessary number of equations by hand.&lt;br /&gt;
&lt;br /&gt;
===Numerical Integration===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numerical integration is a rather complex topic. In particular, the notation used below can be quite intimidating. Remember that you are encouraged to ask for help from the demonstrator if you want to discuss any part of this experiment!&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a number of numerical algorithms to perform a molecular dynamics simulation, two are presented here- The Classical Verlet algorithm and The Velocity-Verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
====Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
To solve these equations numerically we have to &#039;&#039;discretise&#039;&#039; the problem: rather than treating the atomic positions, velocities, and forces as continuous functions of time, we break our simulation up into a sequence of &#039;&#039;&#039;timesteps&#039;&#039;&#039;, each of length &amp;lt;math&amp;gt;\delta t&amp;lt;/math&amp;gt;. This process is illustrated for a simple function in &#039;&#039;&#039;figure 1&#039;&#039;&#039;. The method that we are going to use to solve Newton&#039;s law for our atoms is usually called the Verlet algorithm (although it is an old method, and has been &#039;rediscovered&#039; many times!). To understand its origin, we will begin with a brief derivation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Discretisation.png|300px|thumb|center|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;: Discretisation of sin(x) between 0 and &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We denote the position of an atom, &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;, at time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\mathbf{x}_i \left(t\right)&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;\mathbf{v}_i \left(t\right)&amp;lt;/math&amp;gt; is the velocity of that atom at the same time. What we want to know is the position of the atoms at the next timestep, &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;. The basic Verlet algorithm is shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; - knowing a set of initial conditions the algorithm calculates forces and by Newton&#039;s second law, we can update the positions of a set of particles are a time &amp;lt;math&amp;gt;t + \delta t&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Verlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;: Steps to implement the classic Verlet algorithm.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 1: By taking Taylor expansions of  &amp;lt;math&amp;gt;x(t + \delta t)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x(t - \delta t)&amp;lt;/math&amp;gt;, write general expressions for them up to the fourth order &amp;lt;math&amp;gt;\mathcal{O}\left(\delta t^4\right)&amp;lt;/math&amp;gt; &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; Having written these expressions, derive the formula in figure 2 to update positions as used in the classical Verlet algorithm &amp;lt;math&amp;gt; x(t + \delta t) \approx 2x_{i}(t) - x_{i}(t-\delta t) + \frac{F_{i}(t)}{m} \delta t^{2}&amp;lt;/math&amp;gt; by using Newton&#039;s second law to replace &amp;lt;math&amp;gt;\frac{\mathrm{d}^2\mathbf{x}_i\left(t\right)}{\mathrm{d}t^2}&amp;lt;/math&amp;gt; [4 marks] &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using this last equation, we can use a sequence of steps like those shown in &#039;&#039;&#039;figure 2&#039;&#039;&#039; to get the positions. At no point are the velocities calculated in this method!&lt;br /&gt;
&lt;br /&gt;
====Velocity Verlet Algorithm====&lt;br /&gt;
&lt;br /&gt;
If we assume that the acceleration of an atom depends only on its position and not its velocity, then we are able to come up with a new algorithm that lets us calculate atomic velocities explicitly as shown in &#039;&#039;&#039;figure 3&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-VelocityVerlet-flowchart.svg|300px|thumb|center|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;: Steps to implement the velocity Verlet algorithm.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We start by noting that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t\right) + \frac{\mathbf{a}_i\left(t\right) + \mathbf{a}_i\left(t + \delta t\right)}{2}\delta t \ \ (6)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can Taylor expand the velocity by half a step, instead of a full step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) = \mathbf{v}_i\left(t\right) + \frac{1}{2} \mathbf{a}_i\left(t\right)\delta t \ \ (7)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We then substitute this into your expansion for &amp;lt;math&amp;gt; x_{i} (t + \delta t) &amp;lt;/math&amp;gt; to obtain an accuracy up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt;. Notice that terms up to &amp;lt;math&amp;gt; \delta t ^{2} &amp;lt;/math&amp;gt; in your expansion can be written:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \mathbf{x}_{i} (t + \delta t) = \mathbf{x}_{i} (t) + \mathbf{v}(t) \delta t + \frac{1}{2} \mathbf{a}(t) \delta t ^{2} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{x}_i\left(t + \delta t\right) = \mathbf{x}_i\left(t\right) + \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right)\delta t \ \ (8)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When we know the updated atomic positions, we can calculate new forces, &amp;lt;math&amp;gt;\mathbf{a}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;. Finally, we substitute equation (7) into equation (6) to get the new velocities &amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{v}_i\left(t + \delta t\right) = \mathbf{v}_i\left(t + \frac{1}{2}\delta t\right) + \frac{1}{2}\mathbf{a}_i\left(t + \delta t\right)\delta t \ \ (9)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that for both numerical integration algorithms, the first step is &amp;quot;specify initial conditions&amp;quot;. When using the Verlet algorithm, we need to know the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;), and their positions one timestep in the past (&amp;lt;math&amp;gt;\mathbf{x}_i\left(-\delta t\right)&amp;lt;/math&amp;gt;). If the velocity-Verlet algorithm is used, then we have to know the  the starting positions of the atoms (&amp;lt;math&amp;gt;\mathbf{x}_i\left(0\right)&amp;lt;/math&amp;gt;) and their velocities at the same time (&amp;lt;math&amp;gt;\mathbf{v}_i\left(0\right)&amp;lt;/math&amp;gt;). For this reason, we often start new simulations by using the output of older ones. If, however, you are performing your first simulations of a system (as we are now), then you must choose your initial conditions. The simulation software that we will use is able to do this for us, and this will be explained in the next section.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; TASK 2: What could be an advantage of the Velocity-Verlet algorithm over the classical Verlet algorithm? [2 marks]&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Atomic Forces===&lt;br /&gt;
&lt;br /&gt;
Since we can&#039;t reasonably solve the exact equations from quantum mechanics necessary to determine the forces acting on a given configuration of N atoms, we have to make approximations. We know from classical physics that the force acting on an object is determined by the potential that it experiences:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathbf{F}_i = - \frac{\mathrm{d}U\left(\mathbf{r}^N\right)}{\mathrm{d}\mathbf{r}_i}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The shorthand notation &amp;lt;math&amp;gt;\mathbf{r}^N&amp;lt;/math&amp;gt; stands for the position vectors of &#039;&#039;&#039;every&#039;&#039;&#039; atom in system. In principle, the force that a single atom feels is determined by the position of every other atom in the simulation. All we then need to do is to find a function &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; that captures all the key physics of the interatomic interactions in the system. For many simple liquids, it turns out that we can model the interactions between each pair of atoms extremely well using the Lennard-Jones potential. Overall, U takes the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;U\left(\mathbf{r}^N\right) = \sum_i^N \sum_{i \neq j}^{N} \left\{ 4\epsilon \left( \frac{\sigma^{12}}{r_{ij}^{12}} - \frac{\sigma^6}{r_{ij}^6} \right) \right\} \ \ (10)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== TASK 3: Consider the Lennard-Jones pair potential. What physical interaction(s) does it describe? What is the physical significance for the r^(-6) and r^(-12) terms? [3 marks] ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 4: 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; [4 marks]&amp;lt;/big&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Periodic Boundary Conditions====&lt;br /&gt;
&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Box.png|200px|thumb|right|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;: Diagram of a simulation box containing 2139 atoms. The blue lines indicate the boundaries of the box.]]&lt;br /&gt;
[[File:ThirdYearSimulationExpt-Intro-Periodic.svg|300px|thumb|left|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;: Periodic boundary conditions in two dimensions.]]&lt;br /&gt;
&lt;br /&gt;
We cannot simulate realistic volumes of liquid. In fact, in our simulations, &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; will be between &amp;lt;math&amp;gt;1000&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;10000&amp;lt;/math&amp;gt;. The following task should illustrate why this must be so.&lt;br /&gt;
&lt;br /&gt;
In order for our simulations to approximate a bulk liquid, we have to use a computational trick. The atoms in the simulation are enclosed in a simulation box, of fixed dimensions (&#039;&#039;&#039;figure 4&#039;&#039;&#039;). This box is very often a cuboid, but parallelepipeds can also be used (and this can be very useful when simulating crystal structures). We pretend that we have repeated our box infinitely in all directions, so that the atoms at the very edges are not exposed to a vacuum. This is illustrated in two dimensions in &#039;&#039;&#039;figure 5&#039;&#039;&#039;. The darker coloured atoms in the central box are the &amp;quot;real&amp;quot; atoms. The faded atoms in the outer four boxes are the replicas. When an atom crosses the boundary of the box, one of its replicas enters the box through the opposite face. In this way, the number of atoms inside the box is always constant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 5: 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;? [1 marks]&#039;&#039;&#039; &amp;lt;/big&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Truncation====&lt;br /&gt;
&lt;br /&gt;
Periodic boundary conditions introduce their own problems. When we defined our potential function (equation 10), we specified that it depended on all possible pairs of atoms. If we have an infinite number of replicas of our system, how can we avoid calculating an infinite number of pair interactions?&lt;br /&gt;
&lt;br /&gt;
Think about the three integrals you calculated for the Lennard-Jones potential task. They represent the area under the Lennard-Jones potential curve between some specified distance (&amp;lt;math&amp;gt;2\sigma&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;), and infinite separation (where there is no interaction). You should find that this value becomes rather small as the near distance is increased! The attractive &amp;lt;math&amp;gt;\frac{1}{r^6}&amp;lt;/math&amp;gt; part of the potential dominates here, and this decays rapidly with &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;. We assume that this means that there is a distance beyond which the interaction is so small that we can safely ignore it. In fact, in most simulations this is chosen to be something close to &amp;lt;math&amp;gt;2.5\sigma&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;3\sigma&amp;lt;/math&amp;gt;. When the forces are calculated, we only calculate interactions between a pair of atoms if their separation is less than this cutoff.&lt;br /&gt;
&lt;br /&gt;
====Reduced Units====&lt;br /&gt;
&lt;br /&gt;
It is typical when using Lennard-Jones interactions to work in reduced units. By this, we mean that all quantities in our simulation are divided by scaling factors &amp;amp;mdash; for example, distances are divided by &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt;. The result of this is that the values become more manageable: all values that we might work out are typically around 1, rather than &amp;lt;math&amp;gt;1\times 10^{-10}&amp;lt;/math&amp;gt; (in the case of distance), &amp;lt;math&amp;gt;300&amp;lt;/math&amp;gt; (in the case of temperature), or &amp;lt;math&amp;gt;1\times 10^{-19}&amp;lt;/math&amp;gt; (in the case of energy).&lt;br /&gt;
&lt;br /&gt;
We denote these reduced quantities by a star, and they take the following conversion factors:&lt;br /&gt;
&lt;br /&gt;
* distance &amp;lt;math&amp;gt;r^* = \frac{r}{\sigma}&amp;lt;/math&amp;gt;&lt;br /&gt;
* energy &amp;lt;math&amp;gt;E^* = \frac{E}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
* temperature &amp;lt;math&amp;gt;T^* = \frac{k_BT}{\epsilon}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 6: 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? [1 marks]&amp;lt;/big&amp;gt; &#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 second section of the third year simulation experiment. You can return to the previous section, [[Third year simulation experiment/Running your first simulation|Files to Download]], or jump ahead to the next section, [[Third year simulation experiment/Equilibration|Equilibration]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813853</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813853"/>
		<updated>2021-10-24T08:31:15Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&amp;lt;!--- &#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long a few minutes. &#039;&#039;&#039; ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. Each simulation should take a few minutes. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK_LS.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK_LS.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK_LS.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK_LS&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter the password provided in the invitation email to &#039;Register for the Lab&#039;.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://imperialcollegelondon.box.com/s/mjxn9zxl67y10pgn8wkwlin05hmyqdsn from this address]. You should copy the folder &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039; to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ or VSCode which you can find on Software Hub. VSCode is also on the Virtual Machines). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813852</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813852"/>
		<updated>2021-10-24T08:28:25Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Conclusion Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why.  [4] &lt;br /&gt;
#What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off?  [3] &lt;br /&gt;
#What are finite size effects? Do you think they are significant in the simulations you have performed? Why?  [3] &lt;br /&gt;
# Algorithms such as SHAKE and RATTLE allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813851</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813851"/>
		<updated>2021-10-24T08:24:08Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. The thermodynamic ensemble defines these conditions. Explain what is meant by the thermodynamic ensemble. Your answer should also provide three ensemble examples and briefly discuss what quantities are conserved in each ensemble. You may want to consult Atkins&#039; Physical Chemistry 11th edition (Focus 13D) to address this question. [5]   &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813850</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813850"/>
		<updated>2021-10-24T08:12:11Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Computer simulations are performed under specific &amp;quot;experimental&amp;quot; conditions. These conditions are defined by the ensemble. Explain what is meant by a thermodynamic ensemble, and what thermodynamic quantities are conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813849</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813849"/>
		<updated>2021-10-24T08:09:12Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore difficult to study experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813848</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813848"/>
		<updated>2021-10-24T08:07:28Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  [5]  &lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813847</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813847"/>
		<updated>2021-10-24T08:06:52Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813846</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813846"/>
		<updated>2021-10-24T07:56:53Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). Please feel free to contact Prof. Bresme if you have general questions about the molecular dynamics method and/or the theoretical background behind molecular dynamics (statistical thermodynamics).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813845</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813845"/>
		<updated>2021-10-24T07:55:01Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme). &lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).  &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations - &#039;&#039;&amp;lt;u&amp;gt;as noted above this exercise is not compulsory&amp;lt;/u&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813844</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813844"/>
		<updated>2021-10-24T07:52:26Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of an atomistic liquid.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations with state of the art software packages used by researchers all around the world, and used those simulations to investigate thermophysical and structural properties of liquids, solids and gases. You will learn to compute thermodynamic quantities such as temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
All the information that you need to complete the experiment is provided in these wiki pages. We have provided links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. &lt;br /&gt;
&lt;br /&gt;
You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (2nd year lectures by Prof. Fernando Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism. If you copy paste text, this will be flagged up as plagiarised. Think carefully what you write, and use your own words and conclusions.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; That  section provides information on calculations of dynamic properties. If you are interested in learning more about simulations, please give it a go. However, you should NOT submit this material as part of your lab report, as it will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk). &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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813843</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813843"/>
		<updated>2021-10-24T07:44:26Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need the molecular dynamics code [[LAMMPS]]. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813842</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813842"/>
		<updated>2021-10-24T07:43:48Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; To run this experiment, you will need molecular dynamics code LAMMPS. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813841</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813841"/>
		<updated>2021-10-24T07:43:27Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; &#039;&#039;&#039;To run this experiment, you will need molecular dynamics code LAMMPS. LAMMPS runs on laptops, desktop computers and supercomputers. &lt;br /&gt;
You will be provided with access to a Microsoft Azure Lab Virtual Machines (VM), which has LAMMPS pre-installed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve.  &amp;lt;!-- [5]  --&amp;gt;&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;.  &amp;lt;!-- [2]  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- # What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. &amp;lt;!-- [4] --&amp;gt;&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? &amp;lt;!-- [3] --&amp;gt;&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- # In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]   --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813818</id>
		<title>Third year simulation experiment/Equilibration</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813818"/>
		<updated>2021-10-20T10:44:32Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
We will be using the LAMMPS program to carry out our molecular dynamics simulations.&lt;br /&gt;
&#039;&#039;&#039;In several places in this section, we will ask you to consult the LAMMPS manual to find out things about how the software works. You can find the manual [https://lammps.sandia.gov/doc/Manual.html here].&#039;&#039;&#039; We appreciate that the format of this document can make it a little hard to navigate, but it is the definitive resource on how different commands in LAMMPS work, and is therefore invaluable. The files you will need for this section can be found in the intro folder downloaded previously.&lt;br /&gt;
&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
In the previous section, it was pointed out that before we can start a simulation, we need to know the initial states of all of the atoms in the system. Exactly what information we need about each atom depends on which method of numerical integration we need, but at the very least we need to specify the starting position of each atom. If we wanted to simulate a crystal, this information would be quite easy to come by &amp;amp;mdash; we could just look up the crystal structure, and use that to generate coordinates for however many unit cells we wanted. For this purpose, LAMMPS includes a command which generates crystal lattice structures.&lt;br /&gt;
&lt;br /&gt;
Generating coordinates for atoms in a liquid is more difficult. There is no long range order, so we can&#039;t use a single point of reference to work out the positions of every other atom like we can in a solid. We could generate a random position for each atom. This would certainly create a disordered structure, but causes larger problems when we try to run the simulation.&lt;br /&gt;
&lt;br /&gt;
Instead, we are going to place the atoms on the lattice points of a simple cubic lattice. This, of course, is not a situation in which the system is likely to be found physically. It turns out, though, that if we simulate for enough time we will find that the atoms rearrange themselves into more realistic configurations. We will discuss towards the end of this section exactly what is meant by &amp;quot;enough time&amp;quot;!&lt;br /&gt;
&lt;br /&gt;
Consider the line in the input file &amp;lt;pre&amp;gt;lattice sc 0.8&amp;lt;/pre&amp;gt; This command [https://lammps.sandia.gov/doc/lattice.html (further info)] creates a grid of points forming a simple cubic lattice (one lattice point per unit cell). The parameter &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt; specifies the number density (number of lattice points per unit volume). In a corresponding output file, you will see the line &amp;lt;pre&amp;gt;Lattice spacing in x,y,z = 1.07722 1.07722 1.07722&amp;lt;/pre&amp;gt; This indicates that the distance between the points of this lattice is &amp;lt;math&amp;gt;1.07722&amp;lt;/math&amp;gt; (in reduced units, remember!).&lt;br /&gt;
&lt;br /&gt;
The next lines in the input file are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
region box block 0 5 0 5 0 5&lt;br /&gt;
create_box 1 box&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The corresponding log file output is &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Created orthogonal box = (0 0 0) to (5.3861 5.3861 5.3861)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The region command [https://lammps.sandia.gov/doc/region.html (further info)] simply defines a geometrical region in space, which we call &amp;quot;box&amp;quot;. In this case, &amp;quot;box&amp;quot; is a cube extending ten lattice spacings from the origin in all three dimensions. The subsequent create_box command [https://lammps.sandia.gov/doc/create_box.html (further info)] tells LAMMPS to use the geometrical region called &amp;quot;box&amp;quot; as a template for the simulation box. The number 1 between &amp;quot;create_box&amp;quot; and &amp;quot;box&amp;quot; indicates that our simulation will contain only one type (species) of atom.&lt;br /&gt;
&lt;br /&gt;
So far we have defined a simulation box which is based around a virtual simple cubic lattice. Our box contains 125 (5x5x5) unit cells of this lattice, and so contains 125 lattice points. We now need to fill our simulation box with atoms. The input command is &amp;lt;pre&amp;gt;create_atoms 1 box&amp;lt;/pre&amp;gt; [https://lammps.sandia.gov/doc/create_atoms.html (further info)] while the log file simply contains an acknowledgement of this &amp;lt;pre&amp;gt;Created 125 atoms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The create_atoms command has two arguments; the first tells LAMMPS that all of the atoms that we create will be of type 1. Every atom in the simulation has a type &amp;amp;mdash; because we will be simulating a pure fluid, containing only one chemical species, every atom will have the same type. The actual type that we assign to each atom is arbitrary &amp;amp;mdash; type 1 does not, for example, need to correspond to the element with atomic number 1 (hydrogen). If we wanted to simulate water, we might make the hydrogen atoms type 1 and the oxygen atoms type 2. We will specify the physical and chemical properties of each atom type later in the input script.&lt;br /&gt;
&lt;br /&gt;
The remaining data in the log file isn&#039;t very instructive as it stands &amp;amp;mdash; it simply contains a list of the thermodynamic properties of the simulation at certain intervals. In a few sections time, we will plot this data, but for now you can close the log file. Keep the input script open.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&lt;br /&gt;
In addition to their positions, we also need the physical properties of the atoms to be able to perform the simulation. We set these properties on a &#039;per-type&#039; basis, so that every atom of the same type has the same mass and the same interactions.&lt;br /&gt;
&lt;br /&gt;
So far we have created 125 atoms, and we know the starting (&amp;lt;math&amp;gt;t = 0&amp;lt;/math&amp;gt;) position for each of them. We have also set their masses, and told LAMMPS what sort of forces to calculate between them. The final thing we need to specify to completely specify the initial conditions is the velocity of each atom.&lt;br /&gt;
&lt;br /&gt;
Choosing initial velocities for the atoms is a little easier than choosing initial positions. From the statistical thermodynamics lectures, you should know that, at equilibrium, the velocities of atoms in any system must be distributed according to the [http://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution Maxwell-Boltzmann (MB) distribution]. If we know the masses of the atoms, and we know what temperature we want to simulate, then we can determine the relevant MB distribution function. LAMMPS is able to give every atom a random velocity whilst ensuring that overall the MB distribution is followed. This is the purpose of the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity all create 1.5 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the manual page for this command [http://lammps.sandia.gov/doc/velocity.html here], but the key sections are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;all&#039;&#039;&#039;: the &#039;&#039;group&#039;&#039; of atoms on which the command acts. &#039;&#039;&#039;all&#039;&#039;&#039; simply specifies that we want every atom to have a velocity assigned to it.&lt;br /&gt;
* &#039;&#039;&#039;1.5&#039;&#039;&#039;: the temperature, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, needed to calculate the MB distribution(in reduced units, as always)&lt;br /&gt;
&lt;br /&gt;
===Monitoring thermodynamic properties===&lt;br /&gt;
&lt;br /&gt;
We need to be sure that our simulation is correctly modelling whatever physical system we want to study. It is relatively easy to set up simulations, but how can we be sure that the &amp;quot;results&amp;quot; we get make sense? One of the best ways is to calculate from the simulation things that we can measure in experiment, and see if they agree. For example, we might want to simulate our system at a particular temperature and pressure, and measure the resulting density. If we repeat this over a range of temperatures at the same pressure, we will be able to plot an &#039;&#039;equation of state&#039;&#039;, which we could compare to experimental measurements.&lt;br /&gt;
&lt;br /&gt;
LAMMPS is able to calculate a great deal of thermodynamic information for us (you can see a full list of the properties it is able to calculate [http://lammps.sandia.gov/doc/thermo_style.html here]), but in these first simulations we are only interested in those properties specified in these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first controls which properties will be printed out in the log file. In this case, we print how much time we have simulated so far (which is &#039;&#039;not&#039;&#039; the same as how long it has taken us to simulate it!), the total energy of the atoms, their temperature, and their pressure. The second line tells LAMMPS to print this information on every 10th timestep.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;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;
&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.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; It is now time to run your first simulation, submit the input script with the data file in the intro folder of the files you have downloaded Try changing the timestep - what happens when you make the timestep larger?. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Visualising the trajectory===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;trajectory files&#039;&#039;&#039; contain the positions of all the atoms in the simulation, recorded at a set interval (for all of these simulations, this was every ten timesteps &amp;amp;mdash; this is controlled by the &#039;&#039;&#039;dump&#039;&#039;&#039; command in the input scripts). We use a programme called [http://www.ks.uiuc.edu/Research/vmd/ &#039;&#039;&#039;VMD&#039;&#039;&#039;] to view these trajectories, which you should find is already installed on both the desktop and laptop computers. You can run VMD from the start menu with &#039;&#039;&#039;Start&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;All Programs&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;University of Illinois&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;VMD&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Loading a Trajectory====&lt;br /&gt;
&lt;br /&gt;
We&#039;ll start by looking at the output of the 0.02 timestep simulation. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;File&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;New Molecule&#039;&#039;&#039;. Click the &#039;&#039;&#039;Browse&#039;&#039;&#039; button, then select the relevant trajectory file. In the &#039;&#039;&#039;Determine file type&#039;&#039;&#039; dropdown, select &#039;&#039;&#039;LAMMPS Trajectory&#039;&#039;&#039;. Then click &#039;&#039;&#039;Load&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
You will see that the &#039;&#039;&#039;VMD 1.9.1 OpenGL Display&#039;&#039;&#039; window now shows a horrible mess. VMD&#039;s default behaviour is to draw lines between atoms which it thinks might be chemically bonded. Our system doesn&#039;t model chemical bonds, so we want to turn this off. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;Graphics&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Representations&#039;&#039;&#039;. This shows a list of &amp;quot;representations&amp;quot; of our atoms. You will see that at the moment, there is a single representation listed, and it is selected. It will have the &#039;&#039;Lines&#039;&#039; style, the &#039;&#039;Name&#039;&#039; colour, and the selection &#039;&#039;all&#039;&#039;. &amp;quot;Selection&amp;quot; simply tells VMD which atoms we want it to draw. We want to show every atom, so the current selection is fine. The &#039;&#039;name&#039;&#039; colouring method just makes VMD give atoms colours according to their specified type. The colour isn&#039;t important to us, so we can leave this be too. The &amp;quot;style&amp;quot; tells VMD what we want it to display for each atom. Change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; from &#039;&#039;Lines&#039;&#039; to &#039;&#039;VDW&#039;&#039;. You will see that the mess of lines is replaced by a mess of low resolution, overlapping spheres. Change the &#039;&#039;&#039;Sphere Scale&#039;&#039;&#039; to 0.3, and the &#039;&#039;&#039;Sphere Resolution&#039;&#039;&#039; to 17. The result should look a little smoother. Close the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window. You will notice that in the bottom right of the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, there is a small play button. Click this, and you will see the animated version of your simulation trajectory.&lt;br /&gt;
&lt;br /&gt;
By clicking and dragging with the mouse, you can rotate the simulation box (though this may be sluggish). At any time, you can reset the view by pressing the equals key.&lt;br /&gt;
&lt;br /&gt;
====Tracking a Single Particle====&lt;br /&gt;
To illustrate the periodic boundary conditions that we are using, we are going to draw almost all of the atoms as points, but we will pick a single atom at random to draw as a sphere. This will make it easy to see how a single atom moves through the box. Reset the display using the equals key, then use the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window controls to pause the trajectory and reset it to the first trajectory (play with the different buttons until you find the one that does this). You should see the perfect cubic lattice. Use the option &#039;&#039;&#039;Display&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Orthographic&#039;&#039;&#039; to change the drawing mode, then rotate the displayed crystal so that you are looking at one vertex (looking down the 111 direction, in crystallographic terms).&lt;br /&gt;
&lt;br /&gt;
Open the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window again. Change the representation style from &#039;&#039;&#039;VDW&#039;&#039;&#039; to points, then click the &#039;&#039;&#039;Create Rep&#039;&#039;&#039; button. This creates a second representation, allowing a subset of the atoms to be drawn in a different way. The &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; box allows us to choose which atoms this representation applies to. We just want to pick two of them at random &amp;amp;mdash; VMD assigns every atom an index, from 0 to N-1. In our case, there are 125 atoms, so choose two numbers between 0 and 124. Changed the &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; field to &amp;lt;pre&amp;gt;index i or index j&amp;lt;/pre&amp;gt; where i and j are your chosen numbers, press return, then change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; to &#039;&#039;&#039;VDW&#039;&#039;&#039;. You should now see only two atoms represented by spheres, with the rest shown as small points. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, click play. Try rotating the box, and changing the playback speed.&lt;br /&gt;
&lt;br /&gt;
You will see that sometimes one of the spheres seems to change position across the box very rapidly &amp;amp;mdash; this occurs when it reaches one periodic boundary, and is reflected back across the other face. Try playing with some of the other representation types in VMD &amp;amp;mdash; it  is a very powerful package, which is often used to render images of simulated proteins, so many of its options aren&#039;t relevant to our simple system!&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
&lt;br /&gt;
When we first set up a simulation, it is very important to make sure that our system reaches an equilibrium state. We characterise equilibrium by the average values of thermodynamic quantities becoming constant (due to the approximations that we have made, there will always be fluctuations, but the average values will become constant).&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to plot the thermodynamic output of the simulation to see how long it takes to reach the equilibrium state (and indeed, whether this happens at all). Instructions are given below to import data from the LAMMPS log file into Microsoft Excel. Once you have the data in a spreadsheet, you can plot it. If you know how to use some of the other plotting software available on the chemistry computers (like Origin), you are welcome to use it.&lt;br /&gt;
&lt;br /&gt;
# Open a blank Excel workbook&lt;br /&gt;
# Copy the data in the textfile into the first cell&lt;br /&gt;
# With these data highlighted, click the Data tab and &amp;quot;Text to Columns&amp;quot;&lt;br /&gt;
# Click &amp;quot;Delimited&amp;quot;, continue and let it be space delimited&lt;br /&gt;
# Click finish&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 7: &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== What does it mean for a simulation to &amp;quot;reach equilibrium&amp;quot;? Why is this important in terms of sampling from an ensemble using molecular dynamics? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Plot the energy (potential, kinetic and total), temperature and pressure, against time for the 0,001 timestep experiment [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Does the simulation reach equilibrium? How can you tell? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Make a single plot which shows the energy vs. time for the timesteps you have simulated [2]. ===&lt;br /&gt;
&lt;br /&gt;
=== Of the timesteps that you used, which timestep will you use for subsequent simulations and why? [6] ===&lt;br /&gt;
&#039;&#039;(Think about what is happening &amp;quot;physically&amp;quot; as you increase/decrease the timestep. Also, what features of each timeseries are indicative of the simulation&#039;s &amp;quot;health&amp;quot;?)&#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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813817</id>
		<title>Third year simulation experiment/Running simulations under specific conditions</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Running_simulations_under_specific_conditions&amp;diff=813817"/>
		<updated>2021-10-20T10:40:16Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third_year_simulation_experiment/Structural_properties_and_the_radial_distribution_function| Structural Properties and the Radial Distribution Functions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;NpT&amp;quot; SUBFOLDER.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Changing Ensemble==&lt;br /&gt;
&lt;br /&gt;
So far, we have been able to do some simulations in which the number of particles and the volume of the simulation cell are held constant. The energy is also constant (within a certain degree of error, which is introduced by the approximations that we make to do the simulation). If the simulation is a working properly, then the pressure and temperature of the system should also reach a constant &#039;&#039;average&#039;&#039; value (although there will again be fluctuations). In the statistical thermodynamics lectures, you met the concept of ensembles, which are used in statistical mechanics to represent different sorts of experimental conditions. The simulations we have done so far are described by the &#039;&#039;microcanonical&#039;&#039;, or NVE ensemble (the letters represent those thermodynamic quantities which are constant).&lt;br /&gt;
&lt;br /&gt;
As chemists, we often want to understand what happens under particular experimental conditions &amp;amp;mdash; at 298K under 1 atmosphere of pressure, for example. These sorts of conditions are described by different ensembles in statistical mechanics, such as the NVT (&#039;&#039;canonical&#039;&#039;) or NpT (&#039;&#039;isobaric-isothermal&#039;&#039;) ensembles.&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to modify our simulations from the previous section to run under NpT conditions, and sketch an equation of state for our model fluid at atmospheric pressure.&lt;br /&gt;
&lt;br /&gt;
==Temperature and Pressure Control==&lt;br /&gt;
&lt;br /&gt;
The file npt.in can be used to perform a constant temperature/pressure simulation of our model fluid. It starts by melting a simple cubic crystal, just as before, so much of this file will look familiar to you. You will notice a new section near the top, however, called &#039;&#039;&#039;### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&#039;&#039;&#039;. It contains three &#039;&#039;variables&#039;&#039; &amp;amp;mdash; these are used by the script later on to define the desired temperature, pressure, and timestep. The ellipses need to be replaced by the actual temperature, pressure and timestep that you want to use, so&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable T equal 0.5&lt;br /&gt;
variable p equal 1.0&lt;br /&gt;
variable timestep equal 0.75&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would run a simulation at &amp;lt;math&amp;gt;T=0.5,\  p=1.0,\  \delta t=0.75&amp;lt;/math&amp;gt;. You should remember from the [[Third_year_simulation_experiment/Equilibration|Equilibration]] section that this is a poor choice of timestep!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 8: Choose 5 temperatures (above the critical temperature &amp;lt;math&amp;gt;T^* = 1.5&amp;lt;/math&amp;gt;), 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 &amp;amp;mdash; five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen &amp;lt;math&amp;gt;\left(p, T\right)&amp;lt;/math&amp;gt; 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. 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;. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Plot the density as a function of temperature for both pressures that you simulated. Include a line corresponding to the predictions made by the ideal gas law. [3] ===&lt;br /&gt;
&lt;br /&gt;
=== How do your results compare to the ideal gas law? Do deviations increase/decrease with temperature and pressure? Explain. [7] ===&lt;br /&gt;
&lt;br /&gt;
=== Do you expect your simulation results to be in better or worse agreement with the Van der Waals equation of state? Why? [3] ===&lt;br /&gt;
&lt;br /&gt;
===Thermostats and Barostats - controlling the thermodynamic properties===&lt;br /&gt;
The statistical thermodynamics lectures will have introduced you to the &#039;&#039;equipartition theorem&#039;&#039;, which states that, on average, every degree of freedom in a system at equilibrium will have &amp;lt;math&amp;gt;\frac{1}{2}k_B T&amp;lt;/math&amp;gt; of energy. In our system with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; atoms, each with 3 degrees of freedom, we can write&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the end of every timestep, we use the left hand side of this equation to calculate the kinetic energy, then divide by &amp;lt;math&amp;gt;\frac{3}{2}Nk_B&amp;lt;/math&amp;gt; to get the &#039;&#039;instantaneous&#039;&#039; temperature &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. In general, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; will fluctuate, and will be different to our &#039;&#039;target&#039;&#039; temperature, &amp;lt;math&amp;gt;\mathfrak{T}&amp;lt;/math&amp;gt; (this is whatever value we specify in the input script). We can change the temperature by multiplying every velocity by a constant factor, &amp;lt;math&amp;gt;\gamma&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;gt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too high, and we need to reduce it. &amp;lt;math&amp;gt;\gamma &amp;lt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
* If &amp;lt;math&amp;gt; T &amp;lt; \mathfrak{T} &amp;lt;/math&amp;gt;, then the kinetic energy of the system is too low, and we need to increase it. &amp;lt;math&amp;gt;\gamma &amp;gt; 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to choose a scaling parameter &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;
&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;
By combining these equations, one can see that &amp;lt;math&amp;gt; \gamma = \sqrt{\frac{\mathfrak{T}}{T}} &amp;lt;/math&amp;gt; (satisfy yourself that this is true!). A target value of &amp;lt;math&amp;gt; \gamma &amp;lt;/math&amp;gt; of 1 is required and thus, dependent on whether it&#039;s larger or smaller than 1 the simulation can target the desired temperature.&lt;br /&gt;
&lt;br /&gt;
Controlling the pressure is a little more involved, but the principle is largely the same: at each timestep, the pressure of the system is calculated; if the pressure is too high, then the simulation box is made a little larger, while if the pressure is too low the box is made smaller. Simulations in which the pressure is controlled are thus in the NpT ensemble &amp;amp;mdash; the volume of the simulation box is not constant!&lt;br /&gt;
&lt;br /&gt;
===Examining the Input Script===&lt;br /&gt;
&lt;br /&gt;
Open one of your input scripts (it doesn&#039;t matter which), and look at the section &#039;&#039;&#039;### BRING SYSTEM TO REQUIRED STATE ###&#039;&#039;&#039;. The line &amp;lt;pre&amp;gt;fix npt all npt temp ${T} ${T} ${tdamp} iso ${p} ${p} ${pdamp}&amp;lt;/pre&amp;gt; is the one responsible for switching on the temperature and pressure control. LAMMPS actually allows us to heat or cool the system over the course of a simulation, if we want to &amp;amp;mdash; this is the reason that the temperature appears twice in this line. The first ${T} is the desired starting temperature, and the second is the desired temperature at the end of the simulation. We want a constant average temperature, so we specify the same value twice. The same goes for the pressure.&lt;br /&gt;
&lt;br /&gt;
Now look at the lines near the end of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density&lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable dens2 equal density*density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable press equal press&lt;br /&gt;
variable press2 equal press*press&lt;br /&gt;
fix aves all ave/time 100 1000 30000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
run 30000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command, &#039;&#039;thermo_style&#039;&#039;, controls which thermodynamic properties are recorded, as before. The next lines are used to measure &#039;&#039;average&#039;&#039; thermodynamic properties for the system. To draw our equations of state, we need to know the average temperature, pressure, and density, and the statistical errors in those quantities. The six variable lines link those quantities (and their squared values, needed for the errors), to variable names that we can use in the averaging command, which is the line starting &#039;&#039;fix aves...&#039;&#039;. This command takes a number of input values and averages them every so many timesteps. Exactly how often this happens depends in the values of the three numbers which follow &#039;&#039;ave/time&#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 fourth section of the third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Equilibration|Equilibration]], or jump ahead to the next section, [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813816</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813816"/>
		<updated>2021-10-20T10:38:10Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long a few minutes. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://imperialcollegelondon.box.com/s/4jseyj0r7hkxpxcd8u175afwketbhkjj from this address]. You should copy the folder &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039; to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813815</id>
		<title>Third year simulation experiment/Equilibration</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Equilibration&amp;diff=813815"/>
		<updated>2021-10-20T10:36:27Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
We will be using the LAMMPS program to carry out our molecular dynamics simulations.&lt;br /&gt;
&#039;&#039;&#039;In several places in this section, we will ask you to consult the LAMMPS manual to find out things about how the software works. You can find the manual [https://lammps.sandia.gov/doc/Manual.html here].&#039;&#039;&#039; We appreciate that the format of this document can make it a little hard to navigate, but it is the definitive resource on how different commands in LAMMPS work, and is therefore invaluable. The files you will need for this section can be found in the intro folder downloaded previously.&lt;br /&gt;
&lt;br /&gt;
===Creating the simulation box===&lt;br /&gt;
In the previous section, it was pointed out that before we can start a simulation, we need to know the initial states of all of the atoms in the system. Exactly what information we need about each atom depends on which method of numerical integration we need, but at the very least we need to specify the starting position of each atom. If we wanted to simulate a crystal, this information would be quite easy to come by &amp;amp;mdash; we could just look up the crystal structure, and use that to generate coordinates for however many unit cells we wanted. For this purpose, LAMMPS includes a command which generates crystal lattice structures.&lt;br /&gt;
&lt;br /&gt;
Generating coordinates for atoms in a liquid is more difficult. There is no long range order, so we can&#039;t use a single point of reference to work out the positions of every other atom like we can in a solid. We could generate a random position for each atom. This would certainly create a disordered structure, but causes larger problems when we try to run the simulation.&lt;br /&gt;
&lt;br /&gt;
Instead, we are going to place the atoms on the lattice points of a simple cubic lattice. This, of course, is not a situation in which the system is likely to be found physically. It turns out, though, that if we simulate for enough time we will find that the atoms rearrange themselves into more realistic configurations. We will discuss towards the end of this section exactly what is meant by &amp;quot;enough time&amp;quot;!&lt;br /&gt;
&lt;br /&gt;
Consider the line in the input file &amp;lt;pre&amp;gt;lattice sc 0.8&amp;lt;/pre&amp;gt; This command [https://lammps.sandia.gov/doc/lattice.html (further info)] creates a grid of points forming a simple cubic lattice (one lattice point per unit cell). The parameter &amp;lt;math&amp;gt;0.8&amp;lt;/math&amp;gt; specifies the number density (number of lattice points per unit volume). In a corresponding output file, you will see the line &amp;lt;pre&amp;gt;Lattice spacing in x,y,z = 1.07722 1.07722 1.07722&amp;lt;/pre&amp;gt; This indicates that the distance between the points of this lattice is &amp;lt;math&amp;gt;1.07722&amp;lt;/math&amp;gt; (in reduced units, remember!).&lt;br /&gt;
&lt;br /&gt;
The next lines in the input file are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
region box block 0 5 0 5 0 5&lt;br /&gt;
create_box 1 box&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The corresponding log file output is &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Created orthogonal box = (0 0 0) to (10.7722 10.7722 10.7722)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The region command [https://lammps.sandia.gov/doc/region.html (further info)] simply defines a geometrical region in space, which we call &amp;quot;box&amp;quot;. In this case, &amp;quot;box&amp;quot; is a cube extending ten lattice spacings from the origin in all three dimensions. The subsequent create_box command [https://lammps.sandia.gov/doc/create_box.html (further info)] tells LAMMPS to use the geometrical region called &amp;quot;box&amp;quot; as a template for the simulation box. The number 1 between &amp;quot;create_box&amp;quot; and &amp;quot;box&amp;quot; indicates that our simulation will contain only one type (species) of atom.&lt;br /&gt;
&lt;br /&gt;
So far we have defined a simulation box which is based around a virtual simple cubic lattice. Our box contains 125 (5x5x5) unit cells of this lattice, and so contains 125 lattice points. We now need to fill our simulation box with atoms. The input command is &amp;lt;pre&amp;gt;create_atoms 1 box&amp;lt;/pre&amp;gt; [https://lammps.sandia.gov/doc/create_atoms.html (further info)] while the log file simply contains an acknowledgement of this &amp;lt;pre&amp;gt;Created 125 atoms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The create_atoms command has two arguments; the first tells LAMMPS that all of the atoms that we create will be of type 1. Every atom in the simulation has a type &amp;amp;mdash; because we will be simulating a pure fluid, containing only one chemical species, every atom will have the same type. The actual type that we assign to each atom is arbitrary &amp;amp;mdash; type 1 does not, for example, need to correspond to the element with atomic number 1 (hydrogen). If we wanted to simulate water, we might make the hydrogen atoms type 1 and the oxygen atoms type 2. We will specify the physical and chemical properties of each atom type later in the input script.&lt;br /&gt;
&lt;br /&gt;
The remaining data in the log file isn&#039;t very instructive as it stands &amp;amp;mdash; it simply contains a list of the thermodynamic properties of the simulation at certain intervals. In a few sections time, we will plot this data, but for now you can close the log file. Keep the input script open.&lt;br /&gt;
&lt;br /&gt;
===Setting the properties of the atoms===&lt;br /&gt;
&lt;br /&gt;
In addition to their positions, we also need the physical properties of the atoms to be able to perform the simulation. We set these properties on a &#039;per-type&#039; basis, so that every atom of the same type has the same mass and the same interactions.&lt;br /&gt;
&lt;br /&gt;
So far we have created 125 atoms, and we know the starting (&amp;lt;math&amp;gt;t = 0&amp;lt;/math&amp;gt;) position for each of them. We have also set their masses, and told LAMMPS what sort of forces to calculate between them. The final thing we need to specify to completely specify the initial conditions is the velocity of each atom.&lt;br /&gt;
&lt;br /&gt;
Choosing initial velocities for the atoms is a little easier than choosing initial positions. From the statistical thermodynamics lectures, you should know that, at equilibrium, the velocities of atoms in any system must be distributed according to the [http://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution Maxwell-Boltzmann (MB) distribution]. If we know the masses of the atoms, and we know what temperature we want to simulate, then we can determine the relevant MB distribution function. LAMMPS is able to give every atom a random velocity whilst ensuring that overall the MB distribution is followed. This is the purpose of the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity all create 1.5 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the manual page for this command [http://lammps.sandia.gov/doc/velocity.html here], but the key sections are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;all&#039;&#039;&#039;: the &#039;&#039;group&#039;&#039; of atoms on which the command acts. &#039;&#039;&#039;all&#039;&#039;&#039; simply specifies that we want every atom to have a velocity assigned to it.&lt;br /&gt;
* &#039;&#039;&#039;1.5&#039;&#039;&#039;: the temperature, &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, needed to calculate the MB distribution(in reduced units, as always)&lt;br /&gt;
&lt;br /&gt;
===Monitoring thermodynamic properties===&lt;br /&gt;
&lt;br /&gt;
We need to be sure that our simulation is correctly modelling whatever physical system we want to study. It is relatively easy to set up simulations, but how can we be sure that the &amp;quot;results&amp;quot; we get make sense? One of the best ways is to calculate from the simulation things that we can measure in experiment, and see if they agree. For example, we might want to simulate our system at a particular temperature and pressure, and measure the resulting density. If we repeat this over a range of temperatures at the same pressure, we will be able to plot an &#039;&#039;equation of state&#039;&#039;, which we could compare to experimental measurements.&lt;br /&gt;
&lt;br /&gt;
LAMMPS is able to calculate a great deal of thermodynamic information for us (you can see a full list of the properties it is able to calculate [http://lammps.sandia.gov/doc/thermo_style.html here]), but in these first simulations we are only interested in those properties specified in these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first controls which properties will be printed out in the log file. In this case, we print how much time we have simulated so far (which is &#039;&#039;not&#039;&#039; the same as how long it has taken us to simulate it!), the total energy of the atoms, their temperature, and their pressure. The second line tells LAMMPS to print this information on every 10th timestep.&lt;br /&gt;
&lt;br /&gt;
===Running the simulation===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;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;
&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.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; It is now time to run your first simulation, submit the input script with the data file in the intro folder of the files you have downloaded Try changing the timestep - what happens when you make the timestep larger?. &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Visualising the trajectory===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;trajectory files&#039;&#039;&#039; contain the positions of all the atoms in the simulation, recorded at a set interval (for all of these simulations, this was every ten timesteps &amp;amp;mdash; this is controlled by the &#039;&#039;&#039;dump&#039;&#039;&#039; command in the input scripts). We use a programme called [http://www.ks.uiuc.edu/Research/vmd/ &#039;&#039;&#039;VMD&#039;&#039;&#039;] to view these trajectories, which you should find is already installed on both the desktop and laptop computers. You can run VMD from the start menu with &#039;&#039;&#039;Start&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;All Programs&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;University of Illinois&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;VMD&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Loading a Trajectory====&lt;br /&gt;
&lt;br /&gt;
We&#039;ll start by looking at the output of the 0.02 timestep simulation. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;File&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;New Molecule&#039;&#039;&#039;. Click the &#039;&#039;&#039;Browse&#039;&#039;&#039; button, then select the relevant trajectory file. In the &#039;&#039;&#039;Determine file type&#039;&#039;&#039; dropdown, select &#039;&#039;&#039;LAMMPS Trajectory&#039;&#039;&#039;. Then click &#039;&#039;&#039;Load&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
You will see that the &#039;&#039;&#039;VMD 1.9.1 OpenGL Display&#039;&#039;&#039; window now shows a horrible mess. VMD&#039;s default behaviour is to draw lines between atoms which it thinks might be chemically bonded. Our system doesn&#039;t model chemical bonds, so we want to turn this off. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, select the menu option &#039;&#039;&#039;Graphics&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Representations&#039;&#039;&#039;. This shows a list of &amp;quot;representations&amp;quot; of our atoms. You will see that at the moment, there is a single representation listed, and it is selected. It will have the &#039;&#039;Lines&#039;&#039; style, the &#039;&#039;Name&#039;&#039; colour, and the selection &#039;&#039;all&#039;&#039;. &amp;quot;Selection&amp;quot; simply tells VMD which atoms we want it to draw. We want to show every atom, so the current selection is fine. The &#039;&#039;name&#039;&#039; colouring method just makes VMD give atoms colours according to their specified type. The colour isn&#039;t important to us, so we can leave this be too. The &amp;quot;style&amp;quot; tells VMD what we want it to display for each atom. Change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; from &#039;&#039;Lines&#039;&#039; to &#039;&#039;VDW&#039;&#039;. You will see that the mess of lines is replaced by a mess of low resolution, overlapping spheres. Change the &#039;&#039;&#039;Sphere Scale&#039;&#039;&#039; to 0.3, and the &#039;&#039;&#039;Sphere Resolution&#039;&#039;&#039; to 17. The result should look a little smoother. Close the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window. You will notice that in the bottom right of the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, there is a small play button. Click this, and you will see the animated version of your simulation trajectory.&lt;br /&gt;
&lt;br /&gt;
By clicking and dragging with the mouse, you can rotate the simulation box (though this may be sluggish). At any time, you can reset the view by pressing the equals key.&lt;br /&gt;
&lt;br /&gt;
====Tracking a Single Particle====&lt;br /&gt;
To illustrate the periodic boundary conditions that we are using, we are going to draw almost all of the atoms as points, but we will pick a single atom at random to draw as a sphere. This will make it easy to see how a single atom moves through the box. Reset the display using the equals key, then use the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window controls to pause the trajectory and reset it to the first trajectory (play with the different buttons until you find the one that does this). You should see the perfect cubic lattice. Use the option &#039;&#039;&#039;Display&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Orthographic&#039;&#039;&#039; to change the drawing mode, then rotate the displayed crystal so that you are looking at one vertex (looking down the 111 direction, in crystallographic terms).&lt;br /&gt;
&lt;br /&gt;
Open the &#039;&#039;&#039;Graphical Representations&#039;&#039;&#039; window again. Change the representation style from &#039;&#039;&#039;VDW&#039;&#039;&#039; to points, then click the &#039;&#039;&#039;Create Rep&#039;&#039;&#039; button. This creates a second representation, allowing a subset of the atoms to be drawn in a different way. The &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; box allows us to choose which atoms this representation applies to. We just want to pick two of them at random &amp;amp;mdash; VMD assigns every atom an index, from 0 to N-1. In our case, there are 125 atoms, so choose two numbers between 0 and 124. Changed the &#039;&#039;&#039;Selected Atoms&#039;&#039;&#039; field to &amp;lt;pre&amp;gt;index i or index j&amp;lt;/pre&amp;gt; where i and j are your chosen numbers, press return, then change the &#039;&#039;&#039;Drawing Method&#039;&#039;&#039; to &#039;&#039;&#039;VDW&#039;&#039;&#039;. You should now see only two atoms represented by spheres, with the rest shown as small points. In the &#039;&#039;&#039;VMD Main&#039;&#039;&#039; window, click play. Try rotating the box, and changing the playback speed.&lt;br /&gt;
&lt;br /&gt;
You will see that sometimes one of the spheres seems to change position across the box very rapidly &amp;amp;mdash; this occurs when it reaches one periodic boundary, and is reflected back across the other face. Try playing with some of the other representation types in VMD &amp;amp;mdash; it  is a very powerful package, which is often used to render images of simulated proteins, so many of its options aren&#039;t relevant to our simple system!&lt;br /&gt;
&lt;br /&gt;
===Checking equilibration===&lt;br /&gt;
&lt;br /&gt;
When we first set up a simulation, it is very important to make sure that our system reaches an equilibrium state. We characterise equilibrium by the average values of thermodynamic quantities becoming constant (due to the approximations that we have made, there will always be fluctuations, but the average values will become constant).&lt;br /&gt;
&lt;br /&gt;
In this section, we are going to plot the thermodynamic output of the simulation to see how long it takes to reach the equilibrium state (and indeed, whether this happens at all). Instructions are given below to import data from the LAMMPS log file into Microsoft Excel. Once you have the data in a spreadsheet, you can plot it. If you know how to use some of the other plotting software available on the chemistry computers (like Origin), you are welcome to use it.&lt;br /&gt;
&lt;br /&gt;
# Open a blank Excel workbook&lt;br /&gt;
# Copy the data in the textfile into the first cell&lt;br /&gt;
# With these data highlighted, click the Data tab and &amp;quot;Text to Columns&amp;quot;&lt;br /&gt;
# Click &amp;quot;Delimited&amp;quot;, continue and let it be space delimited&lt;br /&gt;
# Click finish&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;TASK 7: &amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== What does it mean for a simulation to &amp;quot;reach equilibrium&amp;quot;? Why is this important in terms of sampling from an ensemble using molecular dynamics? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Plot the energy (potential, kinetic and total), temperature and pressure, against time for the 0,001 timestep experiment [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Does the simulation reach equilibrium? How can you tell? [2] ===&lt;br /&gt;
&lt;br /&gt;
=== Make a single plot which shows the energy vs. time for the timesteps you have simulated [2]. ===&lt;br /&gt;
&lt;br /&gt;
=== Of the timesteps that you used, which timestep will you use for subsequent simulations and why? [6] ===&lt;br /&gt;
&#039;&#039;(Think about what is happening &amp;quot;physically&amp;quot; as you increase/decrease the timestep. Also, what features of each timeseries are indicative of the simulation&#039;s &amp;quot;health&amp;quot;?)&#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 third year simulation experiment. You can return to the previous page, [[Third_year_simulation_experiment/Introduction_to_molecular_dynamics_simulation|Introduction to molecular dynamics simulation]], or jump ahead to the next section, [[Third year simulation experiment/Running simulations under specific conditions|Running simulations under specific conditions]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813814</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813814"/>
		<updated>2021-10-20T10:31:00Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long (a few minutes ~ 10min). However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://imperialcollegelondon.box.com/s/4jseyj0r7hkxpxcd8u175afwketbhkjj from this address]. You should copy the folder &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039; to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813813</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813813"/>
		<updated>2021-10-20T10:28:25Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Getting the files for the experiment */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long (a few minutes ~ 10min). However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://imperialcollegelondon.box.com/s/4jseyj0r7hkxpxcd8u175afwketbhkjj from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813812</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813812"/>
		<updated>2021-10-20T10:27:17Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Getting the files for the experiment */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). Before the beginning of your lab session, you should have received an invitation email to register/connect to the VM. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The small-scale simulations that we will perform in this experiment should not be too long (a few minutes ~ 10min). However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Microsoft Azure Lab Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
: 1. You will receive an invitation email, before your session starts, with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
: 2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
: 3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
: 4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
:: b. Type the command: &amp;lt;pre&amp;gt; remmina IC_Chemistry_UK.rdp &amp;lt;/pre&amp;gt; to run the file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:: a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
:: b. Open the Microsoft Remote Desktop app&lt;br /&gt;
:: c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
:: d. Navigate and select the downloaded rdp file.&lt;br /&gt;
:: e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: 5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
: 6. You will be asked to Enter authentication credentials:&lt;br /&gt;
:: a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
:: b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the LAMMPS icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://github.com/niallj/ImperialChem-Year3SimExpt1415/archive/master.zip from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813805</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813805"/>
		<updated>2021-10-16T12:14:50Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; &#039;&#039;&#039;To run this experiment, you will need access to the Microsoft Azure Lab Virtual Machines (VM). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve. [5]&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;. [2]&lt;br /&gt;
# What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3]&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. [4]&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? [3]&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? [3]&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813804</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813804"/>
		<updated>2021-10-16T12:14:24Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Liquid simulations: this is the optional experiment which may be chosen by any third year student.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt; If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; &#039;&#039;&#039;To run this experiment, you will need access to the Microsoft Azure Lab Virtual Machines (VM). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Prof. Fernando Bresme (f.bresme@imperial.ac.uk).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve. [5]&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;. [2]&lt;br /&gt;
# What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3]&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. [4]&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? [3]&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? [3]&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813767</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813767"/>
		<updated>2021-10-02T10:20:30Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Connecting to the Virtual Machine */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). To do this, you must login to one of the VM machines, (&#039;&#039;&#039;tba -- instructions to run). &#039;&#039;&#039;For the small-scale simulations that we will perform in this experiment the simulations should not be too long &#039;&#039;&#039;(tba - a few minutes)&#039;&#039;&#039;. (t&#039;&#039;&#039;ba However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
1. You should have received an email with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
Windows&lt;br /&gt;
&lt;br /&gt;
a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
Linux&lt;br /&gt;
&lt;br /&gt;
a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
b. Type the command:&lt;br /&gt;
 remmina IC_Chemistry_UK.rdp &lt;br /&gt;
to run the file.&lt;br /&gt;
Mac&lt;br /&gt;
&lt;br /&gt;
a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
b. Open the Microsoft Remote Desktop app&lt;br /&gt;
c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
d. Navigate and select the downloaded rdp file.&lt;br /&gt;
e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
6. You will be asked to Enter authentication credentials:&lt;br /&gt;
a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the GaussView icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://github.com/niallj/ImperialChem-Year3SimExpt1415/archive/master.zip from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find in Software Hub on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813766</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813766"/>
		<updated>2021-10-02T10:19:57Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Connecting to the Virtual Machine */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). To do this, you must login to one of the VM machines, (&#039;&#039;&#039;tba -- instructions to run). &#039;&#039;&#039;For the small-scale simulations that we will perform in this experiment the simulations should not be too long &#039;&#039;&#039;(tba - a few minutes)&#039;&#039;&#039;. (t&#039;&#039;&#039;ba However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
You will be using a Virtual Machine (VM) to access the software needed for the lab.&lt;br /&gt;
&lt;br /&gt;
1. You should have received an email with the subject Register for Lab - IC_Chemistry_UK.&lt;br /&gt;
2. Follow the link to &#039;Register for the lab&#039; in the email which will direct you to the Azure Lab Services page.&lt;br /&gt;
3. On the web page, you should see a box corresponding to the VM shared with you. In the bottom left, slide the toggle from left to right to start the VM (It may take some time to start running).&lt;br /&gt;
4. Once running, at the bottom right of the box, click the computer-style icon next to the three vertical dots.&lt;br /&gt;
A file with the extension rdp will be downloaded: IC_Chemistry_UK.rdp. Follow the instructions for your operating service below to use the file:&lt;br /&gt;
&lt;br /&gt;
Windows&lt;br /&gt;
&lt;br /&gt;
a. Navigate to where the file has downloaded and double click on the file to open.&lt;br /&gt;
Linux&lt;br /&gt;
&lt;br /&gt;
a. Open a terminal window and through the terminal, go to the location where the file has downloaded.&lt;br /&gt;
b. Type the command:&lt;br /&gt;
 remmina IC_Chemistry_UK.rdp &lt;br /&gt;
to run the file.&lt;br /&gt;
Mac&lt;br /&gt;
&lt;br /&gt;
a. Download and install the Microsoft Remote Desktop app for Mac OS.&lt;br /&gt;
b. Open the Microsoft Remote Desktop app&lt;br /&gt;
c. On the top toolbar bar, click on the cog icon and then select Import from RDP file..&lt;br /&gt;
d. Navigate and select the downloaded rdp file.&lt;br /&gt;
e. There should now be an &#039;IC_Chemistry_UK&#039; PC showing, double click on this to initialise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. You should be asked to Accept Certificate?, select Yes.&lt;br /&gt;
6. You will be asked to Enter authentication credentials:&lt;br /&gt;
a. Change the username into &amp;quot;chemistry&amp;quot; by removing &amp;quot;~/&amp;quot;.&lt;br /&gt;
b. Enter Imperial2021 as the password.&lt;br /&gt;
The VM should now launch and you will be taken to a Windows desktop where you should be able to see the GaussView icon on the desktop. Double click this to launch.&lt;br /&gt;
&lt;br /&gt;
If you have any problems with accessing the VM then let a demonstrator know.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(tba  -- new text explaining connecting to the VMs)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://github.com/niallj/ImperialChem-Year3SimExpt1415/archive/master.zip from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find in Software Hub on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813765</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813765"/>
		<updated>2021-10-02T09:49:07Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: /* Connecting to the Virtual Machine */&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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). To do this, you must login to one of the VM machines, (&#039;&#039;&#039;tba -- instructions to run). &#039;&#039;&#039;For the small-scale simulations that we will perform in this experiment the simulations should not be too long &#039;&#039;&#039;(tba - a few minutes)&#039;&#039;&#039;. (t&#039;&#039;&#039;ba However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(tba  -- new text explaining connecting to the VMs)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://github.com/niallj/ImperialChem-Year3SimExpt1415/archive/master.zip from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find in Software Hub on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813764</id>
		<title>Third year simulation experiment/Files to download</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment/Files_to_download&amp;diff=813764"/>
		<updated>2021-10-02T09:48:32Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &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 third year simulation experiment. You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the simulations that you run in this experiment are going to be performed in Virtual Machines (VM). To do this, you must login to one of the VM machines, (&#039;&#039;&#039;tba -- instructions to run). &#039;&#039;&#039;For the small-scale simulations that we will perform in this experiment the simulations should not be too long &#039;&#039;&#039;(tba - a few minutes)&#039;&#039;&#039;. (t&#039;&#039;&#039;ba However, you should expect to have to wait up to several hours for results to be available, particularly in the later stages!)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In each section of the exercise, we have tried to provide a number of mathematical and/or research exercises that you should attempt while you are waiting for the simulations in that section to be completed. You can also use this time to write your report on the previous sections!&lt;br /&gt;
&lt;br /&gt;
In this first section, we will teach you how to login to the Virtual Machines and submit an example simulation. While you wait for that example to complete, you can move on to the next section and read about the theory of molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Virtual Machine==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(tba  -- new text)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The simulations that you will perform in this experiment can in principle be performed on a desktop computer. However, these machines can only do a single simulation at a time, and are rather slow. Instead, we are going to run simulations on the college&#039;s supercomputer resources. This offers two large advantages. Firstly, even the longest simulations we will perform should take only a few hours. More importantly, you will be able to perform several simulations at the same time. In fact, to use the HPC service you must add your simulations to a queue of &amp;quot;jobs&amp;quot; that the supercomputer will perform. You can add as many jobs as you like to this queue, and simple come back to collect the results some time later.&lt;br /&gt;
&lt;br /&gt;
To start, go to [http://portal.hpc.imperial.ac.uk the HPC portal login page] (as a reminder you must be on the college VPN or remote desktop). You can login with your normal college credentials. We first need to create a &amp;quot;project&amp;quot; with which your simulations will be associated. Click &#039;&#039;&#039;Projects&#039;&#039;&#039; in the menu on the left hand side, then type a name in the &amp;quot;Add Project&amp;quot; box and click &#039;&#039;&#039;Add&#039;&#039;&#039;. You are free to choose whichever name you like, but a sensible choice might be something such as &amp;quot;ThirdYearSimulationExpt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Leave the HPC Portal webpage open for now &amp;amp;mdash; we will return to it shortly. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Getting the files for the experiment==&lt;br /&gt;
&lt;br /&gt;
You can download all of the files that you will need for this experiment [https://github.com/niallj/ImperialChem-Year3SimExpt1415/archive/master.zip from this address]. This .zip archive contains a folder called &#039;&#039;&#039;ImperialChem-Year3SimExpt1415-master&#039;&#039;&#039;, which you should extract to a location of your choice. It contains a number of subfolders &amp;amp;mdash; one for each section of the experiment. Every subsequent page of this lab manual will begin with a line telling you which folder contains the necessary files, like this one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;THE FILES THAT YOU NEED FOR THIS SECTION ARE FOUND IN THE &amp;quot;Intro&amp;quot; SUBFOLDER&#039;&#039;&#039;.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have a look in the &#039;&#039;&#039;&amp;quot;Intro&amp;quot;&#039;&#039;&#039; folder now. It contains a file called &#039;&#039;&#039;melt_crystal.in&#039;&#039;&#039;, which you should open with a text editor (like Notepad++ which you can find in Software Hub on your Desktop). This file is called an &amp;quot;input script&amp;quot;, and it controls how the simulation software operates. We will perform all of our simulations with a software package called [http://lammps.sandia.gov LAMMPS]. Over the course of the experiment, you will learn what all of the commands in this file mean. The [https://lammps.sandia.gov/doc/Commands.html LAMMPS manual] contains a lot of valuable information about each of the commands, if you don&#039;t understand one of them or want to look up what some parameter means you can look it up there. To make life easier, we put &amp;quot;further info&amp;quot; links in the wiki. For now, we are going to use this file to run a few trial simulations. &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 third year simulation experiment.  You can return to the introduction page, [[Third year simulation experiment]], or jump ahead to the next section, [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]].&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813763</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813763"/>
		<updated>2021-10-02T09:40:14Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the optional experiment which may be chosen by any third year student. If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; &#039;&#039;&#039;To run this experiment, you will need access to the Imperial College Virtual Machines (VM). If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject. You may find helpful revising the thermodynamic concepts in Solids, Liquids and Interfaces (lectures by Prof. Bresme).&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve. [5]&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;. [2]&lt;br /&gt;
# What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3]&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. [4]&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? [3]&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? [3]&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813762</id>
		<title>Third year simulation experiment</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_year_simulation_experiment&amp;diff=813762"/>
		<updated>2021-10-02T09:37:59Z</updated>

		<summary type="html">&lt;p&gt;Fbresme: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;This is the optional experiment which may be chosen by any third year student. If you are looking for the Programming-Ising experiment, you will find it [[Third_year_CMP_compulsory_experiment|here]].&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; &#039;&#039;&#039;To run this experiment, you will need access to the Imperial College Virtual Machines (VM). If you have VPN installed, you should be able to access the VM directly.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;If you have not yet installed VPN, you may 1) use Remote Desktop connection (VPN not needed) or 2) install VPN.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please follow the instructions to use one of these two options:&lt;br /&gt;
&lt;br /&gt;
A) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/remotely-access-my-college-computer/remote-desktop-access-for-students/ Remote Desktop connection]&lt;br /&gt;
&lt;br /&gt;
B) [https://www.imperial.ac.uk/admin-services/ict/self-service/connect-communicate/remote-access/virtual-private-network-vpn/ using VPN]&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Computer simulation is widely used to study a huge variety of chemical phenomena, from the behaviour of materials and molecules under extreme conditions to protein folding and the properties of biological systems such as lipid membranes. In this experiment, we will give you an introduction to one of the most powerful methods for the simulation of chemical systems, &#039;&#039;&#039;molecular dynamics simulation&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
We will begin with a brief overview of the fundamental theory behind the method, before you start running your own simulations of a simple liquid using the virtual machines.&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment, you will have performed your own simulations using state of the art software packages used by researchers all around the world, and used those simulations to calculate both structural and dynamic properties of a simple liquid. You will learn to calculate thermodynamic quantities such as temperature and pressure in computer simulations.&lt;br /&gt;
&lt;br /&gt;
All of the information that you need to complete the experiment is provided in these wiki pages. We have also tried to provide links to external resources and relevant textbooks where possible &amp;amp;mdash; unless explicitly stated, reading these resources &#039;&#039;&#039;is not required&#039;&#039;&#039;; they are provided only as further information for those interested in the subject.&lt;br /&gt;
&lt;br /&gt;
==Assessment==&lt;br /&gt;
&lt;br /&gt;
At the end of this experiment you must submit a report (pdf format via turnitin) and a zip file with inputs and outputs. The report should be structured:&lt;br /&gt;
&lt;br /&gt;
* Introduction Questions (20% of the total mark)&lt;br /&gt;
* Results and Discussion (60% of total mark)&lt;br /&gt;
* Conclusion Questions (20% of total mark)&lt;br /&gt;
* References (see note below)&lt;br /&gt;
&lt;br /&gt;
Relevant supplementary material can be added at the end of the report so long as it supports your discussion. Please limit the introduction and conclusion sections (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font). It is certainly possible to answer the introduction and conclusion questions with under this length limit, and as with most scientific writing, shorter concise but well thought out answers are preferable. We have not imposed a hard word limit because, equally, you should spend the majority of this lab learning, not editing and rewriting answers to just satisfy the word limit. &lt;br /&gt;
&lt;br /&gt;
Please note that five &amp;quot;floating&amp;quot; marks have been reserved in the results and discussion section. These can be used to reward particularly insightful comments and/or explanations, on the basis of good/bad presentation, use of scientific language, or for other reasons.&lt;br /&gt;
&lt;br /&gt;
It is important to provide appropriate references. &#039;Appropriate&#039; refers to both quality (books and peer-reviewed papers are preferred over a link to wikipedia) and quantity (make sure to include references where you used them, but there is no point quoting 10 papers for a statement like &#039;macroscopic systems consist of a large number of atoms&#039;). Please note that presenting external information as your own counts as plagiarism! As a bare minimum, you will need to reference the information you present in your introduction. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;Copy&amp;amp;Paste will not be accepted, even if referenced! Every report is automatically checked for plagiarism.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;The final task of the lab (task 10 - MSD diffusion simulations) is NOT part of the lab this year.&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; The section has been left on the wiki for any interested student to give it a go. However, it should NOT be submitted as part of your lab report, and will not be marked.&lt;br /&gt;
&lt;br /&gt;
==Getting Help==&lt;br /&gt;
&lt;br /&gt;
Please feel free to ask any demonstrators for help during the lab sessions - that is what we are here for. Questions can also be asked via email. &lt;br /&gt;
&lt;br /&gt;
The member of academic staff responsible for this exercise is Professor Fernando Bresme (f.bresme@imperial.ac.uk).&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. To help you plan your time it is suggested you complete the following at these times:&lt;br /&gt;
&lt;br /&gt;
Monday (morning session): Theory - Introduction to molecular dynamics simulations&lt;br /&gt;
&lt;br /&gt;
Monday (afternoon session): Theory + Equilibration (submit your files for running)&lt;br /&gt;
&lt;br /&gt;
Tuesday (morning session): Equilibration (analyse your files)&lt;br /&gt;
&lt;br /&gt;
Tuesday (afternoon session): Running simulations under specific conditions (submit and read)&lt;br /&gt;
&lt;br /&gt;
Thursday (morning session): Checkpoint for progress. Submit your input files for the radial distribution function and analyse your equation of state from the previous section&lt;br /&gt;
&lt;br /&gt;
Thursday (afternoon session).&lt;br /&gt;
&lt;br /&gt;
Friday (morning session): Analyse MSD diffusion simulations&lt;br /&gt;
&lt;br /&gt;
Friday (afternoon session): Analyse MSD diffusion simulations. Report write-up.&lt;br /&gt;
&lt;br /&gt;
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;
# [[Third year simulation experiment/Files to download|Downloading the Files]]&lt;br /&gt;
# [[Third year simulation experiment/Introduction to molecular dynamics simulation|Introduction to molecular dynamics simulation]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Equilibration|Equilibration]]&lt;br /&gt;
# [[Third_year_simulation_experiment/Running_simulations_under_specific_conditions|Running simulations under specific conditions]]&lt;br /&gt;
# [[Third year simulation experiment/Structural properties and the radial distribution function|Structural properties and the radial distribution function]]&lt;br /&gt;
# [[Third year simulation experiment/Dynamical properties and the diffusion coefficient|Dynamical properties and the diffusion coefficient]]&lt;br /&gt;
&lt;br /&gt;
== Introduction Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# Give a brief account on what molecular dynamics is, and (broadly speaking) what it aims to achieve. [5]&lt;br /&gt;
# Give two examples of instances where molecular dynamics simulations have/can be used (in a helpful way) instead of or in synergy with experimental techniques. In each case explain why. [10] (&#039;&#039;Please consider only chemically relevant examples. E.g. To study geochemical processes which occur under extreme temperature/pressure conditions, and therefore cannot be studied experimentally.&#039;&#039;)&lt;br /&gt;
# Explain what is meant by a thermodynamic ensemble, and the term &amp;quot;conserved quantity&amp;quot;. [2]&lt;br /&gt;
# What is the Ergodic hypothesis? Explain its relevance to molecular dynamics simulations. [3]&lt;br /&gt;
&lt;br /&gt;
== Conclusion Questions ==&lt;br /&gt;
Please limit your answers to this section (which are now just answers to questions) &amp;lt;u&amp;gt;to a maximum of ~1.5 pages at size 12 font Times New Roman, or equivalent&amp;lt;/u&amp;gt; (e.g. if you are using latex or simply prefer another font).&lt;br /&gt;
# In this lab, you have used the Lennard-Jones potential exclusively. Give one example of a system that can be described well using only LJ potentials, and one that cannot. In each case explain why. [4]&lt;br /&gt;
# What cut-off have you been using in your simulations? What are the advantages and disadvantages for using a shorter/longer cut-off? [3]&lt;br /&gt;
# What are finite size effects? Do you think they are significant in the simulations you have performed? Why? [3]&lt;br /&gt;
# Algorithms such as SHAKE and RATTLE (holonomic constraints) allow MD simulations to be performed while fixing bond lengths. Why is this desirable? [3] &#039;&#039;(Hint: think about the timestep.)&#039;&#039;&lt;br /&gt;
# In the simulations you have performed ergodicity has not been an issue. Describe a system in which &amp;quot;brute force&amp;quot; MD struggles to achieve ergodic sampling. Describe one &amp;quot;enhanced sampling&amp;quot; technique that can be used to overcome this. [7]&lt;/div&gt;</summary>
		<author><name>Fbresme</name></author>
	</entry>
</feed>