<?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=Klw14</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=Klw14"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Klw14"/>
	<updated>2026-04-04T12:20:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/solvent_cavity&amp;diff=753432</id>
		<title>Mod:Hunt Research Group/solvent cavity</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/solvent_cavity&amp;diff=753432"/>
		<updated>2019-03-13T11:20:57Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* visualise in GeomVIew */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==visualise in GV6==&lt;br /&gt;
===option1===&lt;br /&gt;
[[File:Ch3ch2oh_spacefill.png|200px|thumb|right|top|space filling]]&lt;br /&gt;
*in the Display Format choose Molecule&lt;br /&gt;
*change the &amp;quot;Scale Radii by&amp;quot; and push it to maximum, ie 300%&lt;br /&gt;
*this is really a form of a spacefilling model&lt;br /&gt;
*you can also see the covalent radii by changing the &amp;quot;Atomic Radii&amp;quot; from standard to covalent&lt;br /&gt;
&lt;br /&gt;
===option 2===&lt;br /&gt;
[[File:Ch3ch2oh_cavity.png|200px|thumb|right|top|cavity surface]]&lt;br /&gt;
*include &amp;quot;#p sp scrf(smd,solvent=water)&amp;quot; or what-ever your solvent is in the command line&lt;br /&gt;
*open the log file in GV&lt;br /&gt;
*choose results and &amp;quot;PCM solvation cavity ...&amp;quot;&lt;br /&gt;
*switch to show solid and color by atom&lt;br /&gt;
*move the slider to make it partially opaque&lt;br /&gt;
&lt;br /&gt;
===useful information===&lt;br /&gt;
*turning on the print option prints some useful information&lt;br /&gt;
*such as the surface area and cavity volume.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap;&amp;quot;&amp;gt;&lt;br /&gt;
 GePol: Cavity surface area                          =     81.124 Ang**2&lt;br /&gt;
 GePol: Cavity volume                                =     56.942 Ang**3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==visualise in JMOL==&lt;br /&gt;
*to come&lt;br /&gt;
&lt;br /&gt;
==visualise in GeomView==&lt;br /&gt;
*instructions can be found [[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/geomview| here]]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_SP_Aqeuous_Cu(II)&amp;diff=737369</id>
		<title>Talk:Mod:Hunt Research Group/QMMM SP Aqeuous Cu(II)</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_SP_Aqeuous_Cu(II)&amp;diff=737369"/>
		<updated>2019-01-21T12:18:23Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* QM/MM Single Point Energy Calculation of Cu(II) and 2 Solvation Shells */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== QM/MM Single Point Energy Calculation of Cu(II) and 2 Solvation Shells ==&lt;br /&gt;
In this example, the first solvation shell is modelled at the B3LYP 6-311G level (via Gaussian) while the second solvation shell is modelled using a classical pairwise potential (via DL_POLY). ChemShell employs an additive scheme to calculate the total QM/MM energy i.e. the total energy is the sum of the MM energy of the MM region and the QM energy of the QM region. In addition, link atoms are placed along the axis of bonds at the QM-MM boundary. More details can be found [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html here].&lt;br /&gt;
&lt;br /&gt;
Create an input file called &amp;lt;code&amp;gt;energy.chm&amp;lt;/code&amp;gt; with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
energy energy=e coords=cu_18water.pun \&lt;br /&gt;
  theory= hybrid : { coupling=shift&lt;br /&gt;
                     qm_region = {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22}&lt;br /&gt;
                     qm_theory=gaussian : { basis=6-311g g98_mem=80000000 charge=2 mult=2 hamiltonian=b3lyp}&lt;br /&gt;
                     mm_theory=dl_poly : mm_defs=ff.dat&lt;br /&gt;
                   }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are modifying a opt.chm file generated in MolCluster, these are the only lines that are needed, so remove the other lines in the file such as &amp;quot;atom types&amp;quot;, &amp;quot;groups&amp;quot;, and &amp;quot;active atoms&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The co-ordinates of the system are read from &amp;lt;code&amp;gt;cu_18water.pun&amp;lt;/code&amp;gt; (created [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_System_Aqeuous_Cu(II) here]).&lt;br /&gt;
The first 22 atoms (Cu(II) + 7 waters in the first solvation shell) are modelled at the B3LYP 6-311G level.&lt;br /&gt;
The rest of the system is modelled using the force field defined in &amp;lt;code&amp;gt;ff.dat&amp;lt;/code&amp;gt; (see [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II) here] for details).&lt;br /&gt;
The QM and MM regions are coupled via the charge shift scheme.&lt;br /&gt;
&lt;br /&gt;
The calculation should be submitted to the PBS queue to avoid overloading the login shell and inconveniencing other cx1 users (details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Introduction here]). Don&#039;t forget to load the DL_POLY and Gaussian modules in your submit script!&lt;br /&gt;
&lt;br /&gt;
The energy can be found at the end of the output (&amp;lt;code&amp;gt;energy.out&amp;lt;/code&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-----------------------------------------------------------------------------------&lt;br /&gt;
Energy (     hybrid):                                           -2175.199009 (a.u.)&lt;br /&gt;
-----------------------------------------------------------------------------------&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/VMDindexing&amp;diff=734396</id>
		<title>Talk:Mod:Hunt Research Group/VMDindexing</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/VMDindexing&amp;diff=734396"/>
		<updated>2018-09-12T14:12:46Z</updated>

		<summary type="html">&lt;p&gt;Klw14: Created page with &amp;quot;When visualising things in VMD it is necessary to know that VMD starts reading the file calling the first atom, atom 0.  If you use the index number from VMD and apply it to a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When visualising things in VMD it is necessary to know that VMD starts reading the file calling the first atom, atom 0.&lt;br /&gt;
&lt;br /&gt;
If you use the index number from VMD and apply it to another file, you will be looking at a different atom, unless that file also starts from atom 0 (unlikely). &lt;br /&gt;
&lt;br /&gt;
For .xyz files generated from MolClsuter or ChemShell files this means that atoms numbers in VMD are on less than in the opt.chm files.&lt;br /&gt;
&lt;br /&gt;
Also when using VMD to visualise MD trajectories, this will also apply. If you want to exchange one atom for another type, changing the metal at the centre of a catalyst for example, you will need to add one to the index number from VMD to change the atom you intended to change.&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=734395</id>
		<title>Mod:Hunt Research Group</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=734395"/>
		<updated>2018-09-12T14:06:33Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* MD Visualisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hunt Group Wiki==&lt;br /&gt;
&lt;br /&gt;
Back to the main [http://www.ch.ic.ac.uk/hunt web-page]&lt;br /&gt;
===Report and Paper Writing===&lt;br /&gt;
#procedures [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/report_procedures link]&lt;br /&gt;
#advise [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/report_writing link]&lt;br /&gt;
#report components [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/report_components link]&lt;br /&gt;
#files to provide when writing a paper [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/paper link]&lt;br /&gt;
&lt;br /&gt;
===Group Admin===&lt;br /&gt;
#Which files to store on the database and database template [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/database link]&lt;br /&gt;
#How to access DROBO [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/drobo link]&lt;br /&gt;
&lt;br /&gt;
===HPC Resources===&lt;br /&gt;
#&#039;&#039;&#039;Hunt group HPC servers and run scripts&#039;&#039;&#039; [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc link]&lt;br /&gt;
#How to run jobs interactively  [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/run_interactive link]&lt;br /&gt;
#New gf script (more convenient job submitting) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script link]&lt;br /&gt;
#Computing resources available in the chemistry department [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/computing_resources link]&lt;br /&gt;
#Setting up a connection to HPC if you have a PC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_connections link] &lt;br /&gt;
#How to fix Windows files under UNIX [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Windowsfiles link] &lt;br /&gt;
#How to make ssh more comfortable [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpSSH link] &lt;br /&gt;
#Retired: How to make qsub more comfortable (gfunc) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpQSUB link] &lt;br /&gt;
#Tired of entering your password all the time: set up a SSH keypair [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/SSHkeyfile link] &lt;br /&gt;
#Use Imperial Software Hub to access gaussview and gaussian [http://www.imperial.ac.uk/admin-services/ict/store/software/software-hub/ link]&lt;br /&gt;
#How to use gaussview directly on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gview link] &lt;br /&gt;
#How to comfortably search through old BASH commands [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/searchbash link]&lt;br /&gt;
#Using VPN from home, for Sierra follow the college instructions [[link]] &lt;br /&gt;
#How to connect to HPC directory on desktop for file transfers - MacFusion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_Directory_on_desktop link]&lt;br /&gt;
#How to set-up remote desktop [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_remote link]&lt;br /&gt;
&lt;br /&gt;
===Key Papers, References and Resources===&lt;br /&gt;
#Meta study on DFT functionals [https://pubs.acs.org/doi/abs/10.1021/ct401111c doi]&lt;br /&gt;
#M06 suite of DFT functionals [https://link.springer.com/article/10.1007/s00214-007-0310-x doi]&lt;br /&gt;
#SMD for ILs [https://pubs.acs.org/doi/abs/10.1021/jp304365v doi]&lt;br /&gt;
&lt;br /&gt;
===Gaussian General===&lt;br /&gt;
#We are starting a database of common errors encountered when running Gaussian jobs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gaussian_errors link]&lt;br /&gt;
# Here is an already existing database of common errors [https://docs.computecanada.ca/wiki/Gaussian_error_messages link]&lt;br /&gt;
# [http://www.ch.ic.ac.uk/hunt/g03_man/index.htm G03 Manual]&lt;br /&gt;
#How to run NBO5.9 on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/NBO5.9 link] &lt;br /&gt;
#How to include dispersion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dispersion link] &lt;br /&gt;
#Basic ONIOM (Mechanical Embedding) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/basiconiom link]&lt;br /&gt;
#M0n and DFT-D [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/DFTD link]&lt;br /&gt;
#IL ONIOM clusters [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/oniomclusers link]&lt;br /&gt;
#problems with scf convergence [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/scf_convergence link]&lt;br /&gt;
#partial optimisations and scans [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/z-matrix link]&lt;br /&gt;
#generating natural transition orbitals [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/nto link]&lt;br /&gt;
#computing excited state polarisabilities [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_ES_alpha link]&lt;br /&gt;
#computing deuterated and/or anharmonic spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Danharm link]&lt;br /&gt;
#manipulating checkpoint files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:usingchkfiles link]&lt;br /&gt;
#for NMR calculations look here: [http://cheshirenmr.info/index.htm Chemical Shift Repository]&lt;br /&gt;
#General procedure for locating transition state structures [[link]]&lt;br /&gt;
#Troublesome optimisations in SMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:troublesome_smd link]&lt;br /&gt;
#How to run at a higher temperature [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:high_temp link]&lt;br /&gt;
&lt;br /&gt;
===Solvation===&lt;br /&gt;
#Atomic radii and solvent models [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/atomic_radii link]&lt;br /&gt;
#Using solvent models [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/solvent link]&lt;br /&gt;
#Using SMD on ILs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Using_SMD_on_ILs link]&lt;br /&gt;
#Molecular volume calculations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molecular_volume link]&lt;br /&gt;
#The cavity [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/solvent_cavity link]&lt;br /&gt;
#How to download and use GeomView to visualise solvation cavities [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/geomview link]&lt;br /&gt;
#Surfaces (Solvent-Accessible and Connolly) in Jmol [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/jmolsurfaces link]&lt;br /&gt;
&lt;br /&gt;
===Codes to Help Gaussian Analysis===&lt;br /&gt;
# Extract E2 Values (From NBO Calculations) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/NBO_Matlab_Code link]&lt;br /&gt;
# Extract last Standard Orientation structure of gaussian log file [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_single_geom link]&lt;br /&gt;
# Extract geometry and charges (ESP) into a .pdb file for visualising in VMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ESP_charges_for_VMD link]&lt;br /&gt;
# Extract ESP and NBO charges [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_ESP_charges link]&lt;br /&gt;
# Calculate pDoS/XP spectra code (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Calc_XPS_Code link]&lt;br /&gt;
#Script to pull thermodynamic data and low frequencies from log files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:freq_script link]&lt;br /&gt;
# Codes to extract frequency data from gaussian .log files and generate vibrational spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:frequency_spectrum_script link]&lt;br /&gt;
# Optimally Tuned Range Seperated Hybrid Functionals [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/OTRSH_Funct link]&lt;br /&gt;
# Some G09 Parsers [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Some_G09_Parsers link]&lt;br /&gt;
# Codes to extract CHELPG and NBO charge values to excel [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/chelpg_extract link]&lt;br /&gt;
&lt;br /&gt;
===QC Visualisation===&lt;br /&gt;
*&#039;&#039;&#039;Using AIMALL: density based visualisation&#039;&#039;&#039;&lt;br /&gt;
#download [http://aim.tkgristmill.com AIMALL]&lt;br /&gt;
#basic instructions [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_basics link]&lt;br /&gt;
#AimAll with pseudo potentials [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_pseudopotentials link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;ESPs and manipulating gaussian cube files&#039;&#039;&#039;&lt;br /&gt;
#Instructions for visualizing electrostatic potentials (Gaussview)[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials link]&lt;br /&gt;
#Electrostatic Potentials II (Molden) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials_2 link] &lt;br /&gt;
#Manipulating cube files [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/cube_files link] &lt;br /&gt;
#Format of cube files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/cube_format link]&lt;br /&gt;
#Using A. Stone&#039;s distributed multipole analysis [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/GDMA link] &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;NCI plots&#039;&#039;&#039;&lt;br /&gt;
#get the program here: [http://www.lct.jussieu.fr/pagesperso/contrera/nciplot.html link]&lt;br /&gt;
#How to install NCIPlot on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/InstallNCIPlot link]&lt;br /&gt;
#Using NCIPlot [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/UseNCIPlot link]  &lt;br /&gt;
&lt;br /&gt;
===Other Visualisation===&lt;br /&gt;
#Python API for analysis of Gaussian compuations [https://pygauss.readthedocs.org - Documentation]&lt;br /&gt;
#Visualising MOs using Jmol [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:basic_jmol_instructions link]&lt;br /&gt;
&lt;br /&gt;
===Setup and Running Classical MD Simulations===&lt;br /&gt;
#DLPOLY a MD simulation package, Installation on an IMac (old needs to be updated) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dlpoly_install  link]&lt;br /&gt;
#DL_POLY FAQs [http://www.stfc.ac.uk/cse/DL_POLY/ccp1gui/38621.aspx] from DL_POLY webpage.&lt;br /&gt;
#Installing Packmol&lt;br /&gt;
#Getting started: generating a solvated structure and &amp;quot;relaxing&amp;quot; it [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Starting_MD link] &lt;br /&gt;
#Equilibration and production simulations [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/EquilibrationandProduction link] &lt;br /&gt;
#How to equilibrate an MD run[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/equilibration link] &lt;br /&gt;
#Getting the Force Field [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Wheretostart link] &lt;br /&gt;
#Choosing an Ensemble [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Ensembles link] &lt;br /&gt;
#Molten Salt Simulations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation link]&lt;br /&gt;
#Common Errors [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CommonErrors link]&lt;br /&gt;
#Voids in ILs[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/voids link] &lt;br /&gt;
#Equilibration of [bmim][BF4] and [bmim][NO3][https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/BmimBF4_equilibration link] &lt;br /&gt;
#Summary of discussions with Ruth[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Aug09QtoRuth link]&lt;br /&gt;
&lt;br /&gt;
===MD Visualisation===&lt;br /&gt;
*&#039;&#039;&#039;VMD: a molecular dynamics visualisation package&#039;&#039;&#039;&lt;br /&gt;
#VMD can be installed from the [http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=VMD VMD downloads page]&lt;br /&gt;
#Quick reminder [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDReminder link]&lt;br /&gt;
#Colour in VMD  [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDColor link]&lt;br /&gt;
#Changing the graphical representation of your structures [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/vmd link]&lt;br /&gt;
#VMD indexing  [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDindexing link]&lt;br /&gt;
#Using scripts in VMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScripts link]&lt;br /&gt;
#Dealing with periodic boundaries and bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsPeriodic link]&lt;br /&gt;
#Dealing with bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdBonding link]&lt;br /&gt;
#How to turn a Gaussian optimization into a VMD movie [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/VMDmovie link] &lt;br /&gt;
#Overlapping two structures [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdVisual link]&lt;br /&gt;
*&#039;&#039;&#039;Ovito: a molecular dynamics visualisation package&#039;&#039;&#039;&lt;br /&gt;
#Download Ovito [http://www.ovito.org/index.php/download]&lt;br /&gt;
#Using Ovito basics [//wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Ovito_basics link]&lt;br /&gt;
*&#039;&#039;&#039;SDFs&#039;&#039;&#039;&lt;br /&gt;
#How to generate SDFs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/sdfs_generate link]&lt;br /&gt;
&lt;br /&gt;
===MD Post processing===&lt;br /&gt;
#Python script to convert a HISTORY file into a xyz file [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/hist_to_xyz link]&lt;br /&gt;
#Python script to reduce the number of steps in a lammps traj file  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/lam_to_xyz link]&lt;br /&gt;
#Python script to convert a lammps traj file to xyz coordinates and at the same time fold all atoms into a cell and center at the origin  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/lam_fold_xyz link]&lt;br /&gt;
#Center the trajectory at a particular atom (&#039;&#039;&#039;needs fixing&#039;&#039;&#039;) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Recenter link]&lt;br /&gt;
#How to  generate SDFs with TRAVIS [[Talk:Mod:Hunt Research Group/How to draw SDFs with TRAVIS|link]]&lt;br /&gt;
#Tcl script to follow a particular atom [[Talk:Mod:Hunt Research Group/Traj_atom_following|link]]&lt;br /&gt;
&lt;br /&gt;
===Coding===&lt;br /&gt;
*&#039;&#039;&#039;installing Xcode and other programming environments&#039;&#039;&#039;&lt;br /&gt;
#to use many programs you will need a compiler, this is not installed by default on your mac&lt;br /&gt;
#How to install Xcode on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/InstallXcode link] &lt;br /&gt;
#using MacPorts as code for managing other codes on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/MacPorts link] &lt;br /&gt;
#HomeBrew and Fink are other options (HomeBrew is not advised for us)&lt;br /&gt;
#gfortran on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Gfortran link] &lt;br /&gt;
#using python on your mac  [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/python link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;EMO Code&#039;&#039;&#039;&lt;br /&gt;
#How to use Ling&#039;s emo plot code[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emoplot link] &lt;br /&gt;
#How to plot EMOs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emo link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Jan&#039;s charge based analysis Code&#039;&#039;&#039;&lt;br /&gt;
#charge analysis  [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Jan_charges link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Oxana&#039;s visualisation of ESPs Code&#039;&#039;&#039;&lt;br /&gt;
#Scripts for reading, saving, manipulating and visualising data from cube files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files link]&lt;br /&gt;
&lt;br /&gt;
===Other Codes===&lt;br /&gt;
#ADF Submission script [http://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/ADF_sricpt link]&lt;br /&gt;
#How to install POLYRATE [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/polyrate link] &lt;br /&gt;
#XMGRACE, gfortran, c compilers for Lion [http://hpc.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
===Setup and Running Ab-Initio MD Simulations===&lt;br /&gt;
#CPMD: Car-Parrinello Molecular Dynamics [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd link]&lt;br /&gt;
#How to run CPMD to study aqueous solutions [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd_water link]&lt;br /&gt;
#How to run CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how link] &lt;br /&gt;
#[bmim]Cl using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cpmd  link] &lt;br /&gt;
#[bmim]Cl using CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cp2k  link] &lt;br /&gt;
#mman using CPMD and Gaussian [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/mman link] &lt;br /&gt;
#[emim]SCN using CP2K[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emimscn link] &lt;br /&gt;
#CP2K Donts [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k link] &lt;br /&gt;
&lt;br /&gt;
===Running QM/MM Simulations in ChemShell===&lt;br /&gt;
#ChemShell official website which contains the manual and a tutorial [http://www.stfc.ac.uk/CSE/randd/ccg/36254.aspx link]&lt;br /&gt;
#Introduction to ChemShell - Copper in water [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Introduction link]&lt;br /&gt;
#Defining the system: Cu&amp;lt;sup&amp;gt;2+&amp;lt;/sup&amp;gt; and its first 2 solvation shells [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_System_Aqeuous_Cu(II) link] &lt;br /&gt;
#Defining the force field parameters [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II) link] &lt;br /&gt;
#Single point QM/MM energy calculation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_SP_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Optimisation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_OPT_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Molecular Dynamics [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_MD_Aqeuous_Cu(II) link]&lt;br /&gt;
#Using MolCluster [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster link]&lt;br /&gt;
#Running ChemShell [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell link]&lt;br /&gt;
#Explaining ChemShell files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files link]&lt;br /&gt;
#Step By Step [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step link]&lt;br /&gt;
&lt;br /&gt;
===Research Notes===&lt;br /&gt;
#Cl- in water [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/wannier_centre link] &lt;br /&gt;
#The use of Legendre time correlation functions to study reorientational dynamics in liquids[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/legendre  link] &lt;br /&gt;
#Functional for ILs using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/IL_cpmd_functional link] &lt;br /&gt;
#Solving the angular part of the Schrödinger equation for a hydrogen atom [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/angular_schrodinger link] (notes by Vincent)&lt;br /&gt;
#Systematic conformational scan for ion-pair dimers [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ion_pair_scan link]&lt;br /&gt;
#Obtaining NBO, ESP, and RESP charges [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Charges link]&lt;br /&gt;
#DFT Workshop Notes [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/DFT_Workshop]&lt;br /&gt;
&lt;br /&gt;
===Admin Stuff===&lt;br /&gt;
#Not used to writing a wiki, make your test runs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/testing on this page]&lt;br /&gt;
#How to set-up new macs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_setup link]&lt;br /&gt;
#How to switch the printer HP CP3525dn duplex on and off [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/printing link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster&amp;diff=734394</id>
		<title>Talk:Mod:Hunt Research Group/MolCluster</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster&amp;diff=734394"/>
		<updated>2018-09-12T13:44:34Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* To visualise in VMD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is MolCluster?===&lt;br /&gt;
MolCluster is a tool (developed by Vincent and Gabriel) that can be used to cut clusters from MD trajectories and create the input files for ChemShell. &lt;br /&gt;
&lt;br /&gt;
To use MolCluster, you will need:&lt;br /&gt;
* The latest version of MolCluster (available from Vincent).&lt;br /&gt;
* Python version 2.7.6, or above.&lt;br /&gt;
* The HISTORY file from which the clusters are to be cut, and the corresponding FIELD file. Note: these need to be in DL_POLY format. If you have used the &#039;restart&#039; option in DL_POLY, the header of the HISTORY file may need to be amended. Additional transformations of the HISTORY and FIELD files, to convert atom labels into an acceptable format for MolCluster/ChemShell, may also be required (example given later).&lt;br /&gt;
&lt;br /&gt;
===Using MolClusterV2.3: Basic Instructions===&lt;br /&gt;
&lt;br /&gt;
1. Create a directory within the main MolCluster directory. Put the required HISTORY and FIELD files here.&lt;br /&gt;
&lt;br /&gt;
2. Load MolCluster: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
3. Requests directory name to be specified (this is the location of the FIELD and HISTORY files).  After specifying, the code will attempt to read and give an overview of the system.&lt;br /&gt;
:*if you need a demo file to practice on download this history file: [[Media:TEST_CUSO4_DLPOLY_HISTORY.rtf]]&lt;br /&gt;
&lt;br /&gt;
4. UPDATE - select option 1 to cut a cluster containing the QM region, active MM region and frozen MM region. We think options 2a and 2b are necessary for adding point charges&lt;br /&gt;
&lt;br /&gt;
Select option 2 to cut clusters, then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
:--&amp;gt;[n]: Cut a cluster every &amp;quot;nth&amp;quot; step or configuration. &lt;br /&gt;
:--&amp;gt;[c]: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
::*normally option n will be selected&lt;br /&gt;
::*once you have made the n or c selection options will relate to which clusters are to be cut, N.B: numbering starts from 1 (i.e. 1st timestep). &lt;br /&gt;
::* For option n you will give an integer to identify the &amp;quot;nth&amp;quot; step to cut at.  Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::* The demo HISTORY file has only 5 steps, so if using this file select 2 to get 2 structures&lt;br /&gt;
::* For option c you will need to give the integer number of the specific step you want cut.&lt;br /&gt;
::*MolCluster will then tell you the the relevant coordinates have been generated&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
:--&amp;gt;[AN]: Atom number&lt;br /&gt;
:--&amp;gt;[AT]&#039;: Atom type&lt;br /&gt;
:--&amp;gt;[MN]&#039;: Molecule number&lt;br /&gt;
:--&amp;gt;[MT]: Molecule type&lt;br /&gt;
:--&amp;gt;[C]: Custom coordinates&lt;br /&gt;
::* If using the demo HISTORY file choose AT&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
::* If using the demo HISTORY file choose number 6 (this file has Cu-SO4+2000 waters, and O3 is the oxygen atom between Cu and S i.e. Cu-O-S&lt;br /&gt;
&lt;br /&gt;
6. MolCluster will now ask for &lt;br /&gt;
:Available cluster construction definition:&lt;br /&gt;
:--&amp;gt;[R] Fixed radius&lt;br /&gt;
:--&amp;gt;[M] Specify number of each molecule type (i.e. the number of those molecules to include within the cluster radius)&lt;br /&gt;
::* If using the demo HISTORY file you want to select R&lt;br /&gt;
::MolCluster will then print out some information for you this will give you some idea of the number of atoms within various radii&lt;br /&gt;
&lt;br /&gt;
7. In the next step, if &#039;R&#039; was chosen, it will ask for the total radius (in Angstroms) of the cluster(s) to be cut, containing the QM, active MM and frozen MM regions. If &#039;M&#039; was chosen it will ask for the number of each molecule (check ... will it be just for the water)&lt;br /&gt;
::* If using the demo HISTORY file you want to select 20 (this is a big radius so that we can have a QM region surrounded by an active MM region which is in turn surrounded with an inactive MM region)&lt;br /&gt;
&lt;br /&gt;
8. Next it is possible that your chosen radius can cut through a molecule, thus MolCluster has two options for deciding which atoms to include/exclude at the boundary of the clusters being cut:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[H]: Hard boundary - all atoms of a molecule must be within the cutoff radius to be included (i.e. molecules can be cut with some atoms appearing in the cluster and others not).&lt;br /&gt;
:--&amp;gt;[S]: Soft boundary - if the centre of mass of a molecule is within the cutoff radius, the whole molecule will be included.&lt;br /&gt;
::* If using the demo HISTORY file you want to select S the soft option&lt;br /&gt;
::*If [H] is selected: With a hard boundary, the whole molecule (i.e. all of its atoms) has to be within the boundary. In other words, for any atom whose distance away from the origin is greater than the specified cluster radius, it’s associated molecule will not be included in the cluster. Since only full molecules are included, there will not be any dangling bonds under any circumstances.&lt;br /&gt;
&lt;br /&gt;
9. Specify if the clusters are required to be neutral (Y/N).&lt;br /&gt;
:Vincent will add something here about how a cluster is neutralised (important for the ILs)&lt;br /&gt;
::* If using the demo HISTORY file you want to select Y option to have a neutral cluster&lt;br /&gt;
&lt;br /&gt;
10. Decide on the output format, this can be for chemshell or a simple xyz:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[C]: Generates a ChemShell fragment input file, with accompanying .xyz co-ordinates file.&lt;br /&gt;
:--&amp;gt;[X]: Generates the .xyz co-ordinates file only.&lt;br /&gt;
::*If [X] is selected, the clusters will be cut, .xyz files generated and MolCluster will terminate.&lt;br /&gt;
::*If [C] selected, you will be asked if you would also like to generate the necessary ChemShell input files for a QM/MM optimisation (Y/N).&lt;br /&gt;
::* If using the demo HISTORY file you want to select C for chemshell and Y for QM/MM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: there can be a central active QM region (C), an active MM region (S&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;) and a frozen MM region (S&amp;lt;sub&amp;gt;F&amp;lt;/sub&amp;gt;) (Figure I)&lt;br /&gt;
[[File:Figure I.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. If your answer to step 10 was [C] (generate a ChemShell fragment input) and Y (generate ChemShell input files for a QM/MM optimisation), you will then be asked to define the &#039;&#039;&#039;QM region&#039;&#039;&#039;. Available options are:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[S]: Spherical region (or threshold) centred about the defined origin (although not necessarily completely spherical if you have chosen a soft bondry)&lt;br /&gt;
:--&amp;gt;[M]: Choose the number of molecules closest to the origin that will be included.&lt;br /&gt;
:--&amp;gt;[A]: By an upper limit of atoms. Only whole molecules &amp;amp; those closest to the origin included.&lt;br /&gt;
:--&amp;gt;[C]: Custom region i.e. can select molecules individually to be in the QM region&lt;br /&gt;
:--&amp;gt;[O]: Spherical regions centred about one or more origins (for example we could choose S of SO4 as an origin and Cu as an origin and have two intersecting &amp;quot;regions&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
::* If using the demo HISTORY file you want to select O for multiple origins. Then choose the number of origins as &#039;2&#039;, since we want to define the regions centred about S and Cu. After choosing &#039;2&#039;, it will list the atoms and the corresponding number, choose numbers corresponding to S and then include the desired radius. then choose Cu( by choosing the number corresponding to copper from the list) and then enter the radius. To choose the radii for each region, look at the radial distribution plot obtained for Cu-O(water) and S-O(water) from DL_POLY production run. Use the distance of the first minima as the radius. &lt;br /&gt;
&lt;br /&gt;
:If [S] is selected, MolCluster will print out some information, estimating the number of atoms in the regions defined by specific radii to help you evaluate the best radius to choose.  Choose a radius!&lt;br /&gt;
::* If using the demo HISTORY file you want to select 5.0 for the first solvation sphere around the Cu-SO4 ion-pair&lt;br /&gt;
&lt;br /&gt;
:If [O] is selected ...&lt;br /&gt;
&lt;br /&gt;
:Next MolCluster will ask you to specify the QM radius you want (in Angstroms)&lt;br /&gt;
::Note this radius must be less than, or equal to, the total radius of the cluster. Soft boundary conditions are implemented.&lt;br /&gt;
&lt;br /&gt;
:If [C] is selected once the active region and the directory/filenames have been defined, MolCluster will then ask for the custom QM regions to be defined .&lt;br /&gt;
&lt;br /&gt;
12. Now MolCluster will ask you to select the type of &#039;&#039;&#039;active region&#039;&#039;&#039; definition from,&lt;br /&gt;
:--&amp;gt;[S] Spherical region centred about the origin&lt;br /&gt;
:--&amp;gt;[M] By number of total molcules closest to the origin&lt;br /&gt;
:--&amp;gt;[A] By an upper limit of total atoms closest to the origin&lt;br /&gt;
:--&amp;gt;[N] Specific numbers of each molecule type&lt;br /&gt;
::this is similar to choosing the total cluster size options, however the radius should be larger than the QM and smaller than the total cluster size!&lt;br /&gt;
::* If using the demo HISTORY file choose &#039;S&#039;&lt;br /&gt;
::*Here four options are present, [S], [M], [A] and [N], but in the next step to select from these options, the programme lists only two options(S/N). This is just an error in the output to screen and you can still select the other two options. This will be fixed in the next version.&lt;br /&gt;
&lt;br /&gt;
13. If [S] is selected, MolCluster will estimate the number of atoms within a set of radii and will ask you to enter the desired radius of the active region&lt;br /&gt;
::* If using the demo HISTORY file choose give a radius of 15.0Å for the active region&lt;br /&gt;
&lt;br /&gt;
14. Next MolCluster will ask you to select a coordinate system under which the optimisation will take place.  Three different co-ordinate systems are available in ChemShell for optimisation. &lt;br /&gt;
:--&amp;gt;[C]artesian (constraints not permitted)&lt;br /&gt;
:--&amp;gt;[D]elocalised internal coordinates (DLC)&lt;br /&gt;
:--&amp;gt;[H]ybrid delocalised internal coordinates (HDLC)&lt;br /&gt;
::Select C, D or H to define the coordinate system&lt;br /&gt;
::* If using the demo HISTORY file choose C the cartesian coordinates&lt;br /&gt;
::* we have had problems with the hybrid HDLC option so only choose this if you are an expert&lt;br /&gt;
::* HDLC are ...&lt;br /&gt;
&lt;br /&gt;
15. Give the name of the output directory into which MolCluster should write files, followed by a base name &#039;cluster&#039;&lt;br /&gt;
::* if using one of the in-house python scripts you must use &#039;cluster&#039;&lt;br /&gt;
::* If using the demo HISTORY file perhaps use the directory &amp;quot;test1&amp;quot; and &amp;quot;cluster&amp;quot;&lt;br /&gt;
&lt;br /&gt;
16. In the next step, we can save the bulk and cluster data objects to be generated for debug purposes by selecting &#039;Y&#039;. if not required, select &#039;N&#039; and MolCluster will generate the clusters.&lt;br /&gt;
::*Data objects:This was setup mainly so that it would be easier for Vincent to run some tests if there was something wrong with the clusters. He will have this option removed from the next version and perhaps instead have a ‘debug’ version of MolCluster. &lt;br /&gt;
&lt;br /&gt;
::* If using the demo HISTORY file chose N&lt;br /&gt;
&lt;br /&gt;
:MolCluster will now generate the clusters and files required&lt;br /&gt;
::* if you used a central radius you will see something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Please give output basename (no spaces and only alphanumeric and underscore&lt;br /&gt;
characters allowed): cluster&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Do you want the bulk and cluster data objects to be generated for debug purposes&lt;br /&gt;
[Y/N]? N&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Creating directory &#039;test1/cluster_1&#039;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Generating 2x2x2 supercell...&lt;br /&gt;
&lt;br /&gt;
Cluster 1 out of 5 generated...&lt;br /&gt;
&lt;br /&gt;
ChemShell potential file test1/cluster_1/ff.dat...&lt;br /&gt;
&lt;br /&gt;
...generated&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
There are 18 molecules (54 atoms) in the QM region.&lt;br /&gt;
&lt;br /&gt;
The total charge of the QM region is 0.0.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO      System information written to test1/cluster_1/system_info.txt       OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Creating directory &#039;test1/cluster_2&#039;&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Generating 2x2x2 supercell...&lt;br /&gt;
&lt;br /&gt;
Cluster 2 out of 5 generated...&lt;br /&gt;
&lt;br /&gt;
ChemShell potential file test1/cluster_2/ff.dat...&lt;br /&gt;
&lt;br /&gt;
...generated&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
There are 19 molecules (57 atoms) in the QM region.&lt;br /&gt;
&lt;br /&gt;
The total charge of the QM region is 0.0.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO      System information written to test1/cluster_2/system_info.txt       OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and once all the clusters have been generated you should see this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;br /&gt;
&lt;br /&gt;
III                         All clusters generated.                          III&lt;br /&gt;
&lt;br /&gt;
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Please report any bugs to Vincent Chen (vhc08@ic.ac.uk) or Gabriel Lau&lt;br /&gt;
&lt;br /&gt;
(gvl07@ic.ac.uk). The log file can be found in &#039;temp/molcluster.log&#039;.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO                       Log file copied to &#039;test1&#039;.                        OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE&lt;br /&gt;
&lt;br /&gt;
EEE                            Exiting molcluster                            EEE&lt;br /&gt;
&lt;br /&gt;
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Output Files===&lt;br /&gt;
* Each cluster will have its own directory within the directory named in step 12. These subdirectories will be named: &#039;&#039;&#039;cluster_1&#039;&#039;&#039;, &#039;&#039;&#039;cluster_2&#039;&#039;&#039;...&#039;&#039;&#039;cluster_n&#039;&#039;&#039;. &lt;br /&gt;
* Within the main directory one will also find a file called &#039;&#039;&#039;molcluster.log&#039;&#039;&#039; and a file called &#039;&#039;&#039;bulk_system_info.txt&#039;&#039;&#039;. &lt;br /&gt;
::*&#039;&#039;&#039;molcluster.log&#039;&#039;&#039; is a record of the user responses to each of the MolCluster options (look at  this if you have forgotten, for example, the cluster radius). &lt;br /&gt;
::*&#039;&#039;&#039;bulk_system_info.txt&#039;&#039;&#039; summarises information relating to the system before clusters are cut (e.g. number and type of molecules, total number of atoms, total system charge, atom labels within a molecule, atomic charges).&lt;br /&gt;
&lt;br /&gt;
*If option &#039;&#039;&#039;[X]&#039;&#039;&#039; selected in step 9, each subdirectory &#039;&#039;&#039;cluster_n&#039;&#039;&#039; will contain:&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.xyz&#039;&#039;&#039; coordinates file&lt;br /&gt;
::*&#039;&#039;&#039;system_info.txt&#039;&#039;&#039;: Summary of the cluster (e.g. total number of molecules, total number of atoms, total charge)&lt;br /&gt;
&lt;br /&gt;
*If option &#039;&#039;&#039;[C]&#039;&#039;&#039;, &#039;&#039;&#039;Y&#039;&#039;&#039; selected in step 9, each subdirectory &#039;&#039;&#039;cluster_n&#039;&#039;&#039; will contain:&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.xyz&#039;&#039;&#039; coordinates file&lt;br /&gt;
::*&#039;&#039;&#039;system_info.txt&#039;&#039;&#039;: Summary of the cluster (e.g. total number of molecules, total number of atoms, total charge)&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.chm&#039;&#039;&#039; coordinates file. This will be used to create the &#039;&#039;&#039;cluster.pun&#039;&#039;&#039; ChemShell input file.&lt;br /&gt;
::*&#039;&#039;&#039;cluster_tiered.xyz&#039;&#039;&#039;: xyz coordinates with the QM, active and frozen regions defined (all QM atoms listed as X1 (X=element symbol), active as X2 and frozen as X3). This file can be used to easily visualise the different regions in VMD.&lt;br /&gt;
::*&#039;&#039;&#039;conn.txt&#039;&#039;&#039; : the connectivity data needed by ChemShell&lt;br /&gt;
::*&#039;&#039;&#039;ff.dat&#039;&#039;&#039; : the forcefield in ChemShell format&lt;br /&gt;
::*&#039;&#039;&#039;opt.chm&#039;&#039;&#039;: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== To visualise in VMD ==&lt;br /&gt;
&lt;br /&gt;
::* open the cluster_tiered.xyz file in vmd: File → New Molecule → Browse → select the file type → Load the file&lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIa.png]]&lt;br /&gt;
&lt;br /&gt;
::*To highlight each layer in the cluster, open graphical representation &lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIb.png]]&lt;br /&gt;
&lt;br /&gt;
::* To create a new representation: click on &#039;Create Rep&#039;, a new line will appear&lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIc.png]]&lt;br /&gt;
&lt;br /&gt;
::* In the &#039;Selected Atoms&#039; type       &lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*1&amp;quot;&#039;&#039;&#039;  for the 1&amp;lt;sup&amp;gt;st&amp;lt;/sup&amp;gt; QM region  and  from the &#039;Drawing Method&#039; select VDW&lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*2&amp;quot;&#039;&#039;&#039;  for the 2&amp;lt;sup&amp;gt;nd&amp;lt;/sup&amp;gt; active MM region,  from the &#039;Drawing Method&#039; select CPK&lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*3&amp;quot;&#039;&#039;&#039; for the 3&amp;lt;sup&amp;gt;rd&amp;lt;/sup&amp;gt; frozen MM region, from the &#039;Drawing Method&#039; select Lines&lt;br /&gt;
&lt;br /&gt;
::* The highlighted layers are shown in Figure II. &lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IId.png]]&lt;br /&gt;
&lt;br /&gt;
IMPORTANT In VMD atom numbering starts at 0, whereas the MolCluster and ChemShell files start with atom number 1. When visualising things in VMD all of the indexing will be 1 less than the atom number in opt.chm.&lt;br /&gt;
&lt;br /&gt;
== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
*MolCluster will not generate cluster.pun, but it generates cluster_n.chm which is used to generate cluster.pun&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell/3.5.0 &lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
*include the conn and mxexcl after the mm_theory. mxexcl depends on the QM region, please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
*the submit script, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=Step-By-Step Example: Ionic Liquid Clusters=&lt;br /&gt;
&lt;br /&gt;
Our example system:&lt;br /&gt;
* 256 ion pairs of [C&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;im][MeSO&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;]&lt;br /&gt;
* In total, the production run is 20ns in length; 4 lots of 5ns employing the &amp;quot;restart&amp;quot; keyword in DL_Poly.  &lt;br /&gt;
* Our aim is to cut clusters from the last 5ns of the trajectory and create the input files for a ChemShell optimisation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1). Create a directory within the main MolCluster directory and put the &#039;&#039;&#039;HISTORY&#039;&#039;&#039; and &#039;&#039;&#039;FIELD&#039;&#039;&#039; files here. Our directory will be called: &#039;&#039;&#039;BMIM_MESO4_EXAMPLE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2). We now need to check to see if the HISTORY and FIELD files are in the correct format.&lt;br /&gt;
&lt;br /&gt;
*As the &#039;&#039;restart&#039;&#039; keyword has been employed, two lines are missing from the header of the HISTORY file, &#039;&#039;&#039;Figure 1a&#039;&#039;&#039; and &#039;&#039;&#039;1b&#039;&#039;&#039;. MolCluster does not like this. Therefore, we need to add in the two lines that it is expecting to see, &#039;&#039;&#039;Figure 1c&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MolCluster-HISTORY-header.png|frame|center|850px|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;. Headers from selected HISTORY files &#039;&#039;&#039;(a)&#039;&#039;&#039; first 5ns of our simulation, without the use of the restart keyword, &#039;&#039;&#039;(b)&#039;&#039;&#039; last 5ns of our simulation with the restart keyword and &#039;&#039;&#039;(c)&#039;&#039;&#039; same HISTORY file as in (b), with missing lines added in.  ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The second problem we need to address is the atom labelling. The original atom labelling for [C&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;im][MeSO&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;], as used in the DL_Poly simulation, is shown in &#039;&#039;&#039;Figure 2a&#039;&#039;&#039;. Unfortunately, ChemShell has issues with this. To keep ChemShell happy, we have to change the atom labels in the HISTORY and FIELD files to the format &#039;&#039;elementsymbolnumber&#039;&#039; e.g. C2 rather than CR. Thankfully, this is quite easy to do using a script (&#039;&#039;&#039;sub_script.sh&#039;&#039;&#039;, see below) written by Vincent. Firstly, however, we need to decide upon the new atom labelling. This is shown in &#039;&#039;&#039;Figure 2b&#039;&#039;&#039; for our example system. &#039;&#039;&#039;sub_script.sh&#039;&#039;&#039; requires that we have defined the atom label mappings in a file called &#039;&#039;&#039;sub_map.txt&#039;&#039;&#039; (also shown below for this system).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BMIM-MESO4-numbering.png|thumb|center|850px|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;. Original atom labelling (as used in DL_POLY MD simulation) shown in &#039;&#039;&#039;(a)&#039;&#039;&#039; and new atom labelling (suitable for MolCluster) shown in &#039;&#039;&#039;(b)&#039;&#039;&#039;. Within &#039;&#039;&#039;(b)&#039;&#039;&#039;, atom labels that already had the correct format are in red.  ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sub_script.sh&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
while read line&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
#echo $line&lt;br /&gt;
&lt;br /&gt;
s1=$(echo $line | awk &#039;{ print $1 }&#039;)&lt;br /&gt;
&lt;br /&gt;
s2=$(echo $line | awk &#039;{ print $2 }&#039;)&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$s1 $s2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
gsed -i_bu2 &amp;quot;s|\&amp;lt;$s1\&amp;gt;|$s2|g&amp;quot; FIELD&lt;br /&gt;
&lt;br /&gt;
gsed -i_bu2 &amp;quot;s|\&amp;lt;$s1\&amp;gt;|$s2|g&amp;quot; HISTORY&lt;br /&gt;
&lt;br /&gt;
done &amp;lt; sub_map.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sub_map.txt&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;CR C3&lt;br /&gt;
&lt;br /&gt;
NA N1&lt;br /&gt;
&lt;br /&gt;
CW C4&lt;br /&gt;
&lt;br /&gt;
HCR H2&lt;br /&gt;
&lt;br /&gt;
HCW H3&lt;br /&gt;
&lt;br /&gt;
HC H4&lt;br /&gt;
&lt;br /&gt;
CT C6&lt;br /&gt;
&lt;br /&gt;
OS4 O4&lt;br /&gt;
&lt;br /&gt;
OC4 O5&lt;br /&gt;
&lt;br /&gt;
HS4 H5&lt;br /&gt;
&lt;br /&gt;
CS C5&lt;br /&gt;
&lt;br /&gt;
CS4 C7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Run &#039;&#039;&#039;./sub_script.sh&#039;&#039;&#039;&lt;br /&gt;
Note: this process may take a while, depending on the size of the file. Progress can be seen in the terminal (example shown in &#039;&#039;&#039;Figure 3&#039;&#039;&#039;), with each of the mappings specified in sub_map.txt considered in turn. The first few lines of the HISTORY file, before, and after, the relabelling can be seen in &#039;&#039;&#039;Figure 4&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:sub_map_mappings.png|thumb|center|800px|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;. Example terminal output whilst running sub_script.sh ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:HISTORY-before-after.png|thumb|center|1000px|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;. First few lines of the HISTORY file before &#039;&#039;&#039;(a)&#039;&#039;&#039; and after &#039;&#039;&#039;(b)&#039;&#039;&#039; the relabelling. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3). Now our files are in the correct format, we can run MolCluster: &#039;&#039;&#039;./MolCluster.py&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4). The first thing MolCluster does is to ask us to specify the directory containing the FIELD and HISTORY files. Our directory is called BMIM_MESO4_EXAMPLE. Once this has been specified, MolCluster will attempt to read the files and generate a summary of the system (from timestep 1 of the trajectory). This is shown in &#039;&#039;&#039;Figure 5&#039;&#039;&#039; for our system, and it can be seen that the information summarised by MolCluster is correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MC-read-files-annotate.png|thumb|center|800px|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;. After specifying the directory for the FIELD and HISTORY files, MolCluster summarises the bulk system information.   ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5). MolCluster works out how many configurations in the HISTORY file (5000 in our example) and then asks us to specify the configurations we would like to cut a cluster from. In this case, we are going to select the &#039;&#039;&#039;[n]&#039;&#039;&#039; option (cut a cluster from every &#039;n&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt;&#039; configuration) and then specify n as an integer, in this case 1000 (i.e. n=1000, therefore cut a cluster every 1000&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt; time step), &#039;&#039;&#039;Figure 6&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:MC-specify-config.png|thumb|center|800px|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;. Specifying the configurations to create clusters for. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6). We must now select how we would like to define the origin of the clusters to be cut. We are going to select option &#039;&#039;&#039;[AN]&#039;&#039;&#039; (atom number) and choose atom 1 to be the origin (for reference, in our case this is a C3 atom), &#039;&#039;&#039;Figure 7&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:origin-define.png|thumb|center|800px|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;. Defining the cluster origin. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7). An estimate of the number of atoms in regions with varying radii (with respect to our defined origin) is provided by MolCluster. We need to cut a cluster large enough to incorporate a reasonable number of ion pairs (bearing in mind that our cation alone, in all trans form, is over 9 Angstroms in width), but not so large that the calculation is unfeasible. The ideal size is still being investigated, but for now, let us specify a cluster radius of 15 Angstroms, &#039;&#039;&#039;Figure 8&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster-radius-cut.png|thumb|center|900px|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;. Choosing the cluster radius. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8). MolCluster now asks us to tell it which boundary condition to use when cutting the clusters (essentially this is just how MolCluster will decide whether or not to include a molecule in the cluster for molecules at the boundary). We will select &#039;&#039;&#039;[S]&#039;&#039;&#039; (soft boundary) here. We are then asked to specify if the cluster needs to be neutral. Obviously this is only really applicable to charged systems (with counter ions), such as ionic liquids . We will select yes here, &#039;&#039;&#039;[Y]&#039;&#039;&#039;, so that all our clusters have the same total charge, &#039;&#039;&#039;Figure 9&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:boundary-neutral.png|thumb|center|850px|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;. Selecting boundary conditions. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9). We now need to decide on the output file type. As the ultimate aim is to run QM/MM optimisations of our clusters, we need to select the options that will generate the ChemShell input files: &#039;&#039;&#039;[C]&#039;&#039;&#039;, &#039;&#039;&#039;[Y]&#039;&#039;&#039;, &#039;&#039;&#039;Figure 10&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:output-filetype.png|thumb|center|850px| ]]&lt;br /&gt;
&lt;br /&gt;
10). A decision on how the QM region will be defined is now made. We are going to select &#039;&#039;&#039;[S]&#039;&#039;&#039; (spherical region). MolCluster then estimates the number of atoms in regions of varying radii with respect to our origin. Again, as with step 7, the optimum size has not yet been deduced. However, from previous tests, a QM radius of 7 Angstroms results in a manageable number of ions and is large enough to observe local structural features. Therefore, we shall specify a radius of 7 Angstroms in this example, &#039;&#039;&#039;Figure 11&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:QM-define.png|thumb|center|800px|&#039;&#039;&#039;Figure 11&#039;&#039;&#039;. QM region defined. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11). After defining the QM region, we then need to define the size of the active region. Again MolCluster helps us by estimating the number of atoms for a range of radii. Molecules not included in the active region, will be in the Frozen region. Fir this example, we shall define the specify active region to have a radius of 11 Angstroms, &#039;&#039;&#039;Figure 12&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Active-region .png|thumb|center|800px|&#039;&#039;&#039;Figure 12&#039;&#039;&#039;. Radius of active region specified. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12). Finally, we are asked to specify the output directory where all our files will be placed, and the basename for each of our clusters. In this example the output directory will be &#039;&#039;BMIM_MESO4_EXAMPLE/example&#039;&#039; and the base name will be &#039;&#039;cluster&#039;&#039;, &#039;&#039;&#039;Figure 13&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ouput-filenames.png|thumb|center|800px| ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13). MolCluster then sets about creating the clusters according to our specifications. The terminal output for the first cluster (cluster_1) is shown in &#039;&#039;&#039;Figure 14&#039;&#039;&#039;. After creating all the clusters, MolCluster will terminate.&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster_1.png|thumb|center|800px|&#039;&#039;&#039;Figure 14&#039;&#039;&#039;. Cluster_1 created. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14). Within the named output directory, each cluster has it&#039;s own subdirectory: cluster_1, cluster_2 etc. Within each of the subdirectories can be found the requested output files, &#039;&#039;&#039;Figure 15&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:directory-files.png|thumb|center|1100px|&#039;&#039;&#039;Figure 15&#039;&#039;&#039;. Output files. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15). The file called system_info.txt summarises key information relating to the cluster. This is shown in &#039;&#039;&#039;Figure 16&#039;&#039;&#039; for cluster 1. We can see that in total there are 72 molecules (36 cations and 36 anions) and that, as requested, the total charge of the system is zero.&lt;br /&gt;
&lt;br /&gt;
[[Image:system-info-cluster_1.png|thumb|center|800px|&#039;&#039;&#039;Figure 16&#039;&#039;&#039;. Total system information for cluster 1. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*To find out how many molecules in the QM and active regions, we can open the file called &#039;&#039;molcluster.log&#039;&#039; in the parent directory. This is a record of all the options we selected. By scrolling through we can find the information relating to cluster 1, &#039;&#039;&#039;Figure 17&#039;&#039;&#039;, and can see that there are 9 molecules in the QM region; 4 cations and 5 anions, resulting in a total charge of -1. There are 35 molecules in the active region. &lt;br /&gt;
&lt;br /&gt;
[[Image:molcluster-log-cluster1-annot.png|thumb|center|800px|&#039;&#039;&#039;Figure 17&#039;&#039;&#039;. Information about cluster 1, found in the output file molcluster.log. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Returning to the files in our subdirectory &#039;&#039;cluster_1&#039;&#039;, we can open &#039;&#039;cluster.xyz&#039;&#039; (or &#039;&#039;cluster_tiered.xyz&#039;&#039;) in VMD to visualise the cut cluster, &#039;&#039;&#039;Figure 18&#039;&#039;&#039; for our cluster 1. &#039;&#039;cluster_tiered.xyz&#039;&#039; is particularly useful, as it allows us to visualise each of the distinct regions. All of the atoms in the QM region are labelled with a 1 (active labelled with 2 and frozen labelled with 3), therefore we can choose to visualise the QM region only, &#039;&#039;&#039;Figure 19a&#039;&#039;&#039;. In &#039;&#039;&#039;Figure 19b&#039;&#039;&#039;, all the regions are shown in different colours.&lt;br /&gt;
&lt;br /&gt;
[[Image:full-cluster-1.png|thumb|center|800px|&#039;&#039;&#039;Figure 18&#039;&#039;&#039;. Cluster 1 visualised in VMD. ]]&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster_tiered-edit.png|thumb|center|800px|&#039;&#039;&#039;Figure 19&#039;&#039;&#039;. &#039;&#039;&#039;(a)&#039;&#039;&#039; QM region visualised in VMD. &#039;&#039;&#039;(b)&#039;&#039;&#039; All regions, visualised in different colours. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=Cutting Embedded Cluster=&lt;br /&gt;
*Embedded clusters are generated in two steps&lt;br /&gt;
*First a cluster of specific radius is generated using MolCLuster and Chemshell &lt;br /&gt;
1. Load MolClusterV2.3: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
2. Enter the directory containing the FIELD and HISTORY files as in the previous case&lt;br /&gt;
&lt;br /&gt;
3. Select option [4] to Generate ChemShell input for cutting embedded cluster&lt;br /&gt;
&lt;br /&gt;
4. then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
::*&#039;&#039;&#039;[n]&#039;&#039;&#039;: Cut a cluster every &amp;quot;nth&amp;quot; configuration. N.B: numbering starts from 1 (i.e. 1st timestep). Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::*&#039;&#039;&#039;[c]&#039;&#039;&#039;: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
After this you can choose the step at which the clusters are to be cut&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
::*&#039;&#039;&#039;[AN]&#039;&#039;&#039;: Atom number&lt;br /&gt;
::*&#039;&#039;&#039;[AT]&#039;&#039;&#039;: Atom type&lt;br /&gt;
::*&#039;&#039;&#039;[MN]&#039;&#039;&#039;: Molecule number&lt;br /&gt;
::*&#039;&#039;&#039;[MT]&#039;&#039;&#039;: Molecule type&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom coordinates&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
&lt;br /&gt;
6. Enter the radius (in Angstroms) of the embedded cluster(s) to be cut&lt;br /&gt;
&lt;br /&gt;
7. Enter the projected radius (in Angstroms) of the active regions ( this can be any value &amp;lt; embedded cluster radius)&lt;br /&gt;
&lt;br /&gt;
8. Then enter the charge margin - distance (in Angstroms) from the cluster boundary to the outer point charges [[File:Embedded2.png]]&lt;br /&gt;
&lt;br /&gt;
9. enter the number of added point charges. This is calculated from the charge density; (4 * density * density + 2)&lt;br /&gt;
&lt;br /&gt;
10. enter the symbol to represent point charge &#039;X&#039;&lt;br /&gt;
&lt;br /&gt;
11.Specify the output directory&lt;br /&gt;
&lt;br /&gt;
12. The output directory will haven inputs &#039;embedded_cluster_n&#039;, if chosen &#039;n&#039; in step 4 and an embedded_cluster_specs.obj file &lt;br /&gt;
&lt;br /&gt;
13.  Upload the directory to cx1 login shell&lt;br /&gt;
&lt;br /&gt;
14. In each of the &#039;embedded_cluster_n&#039; will contain a &#039;bulk_fragment.chm&#039; having the coordinates&lt;br /&gt;
&lt;br /&gt;
15. generate bulk.pun from bulk_fragment.chm by loading chemshell &#039;module load chemshell mpi&#039; and &#039;chemsh.x bulk_fragment.chm&#039;&lt;br /&gt;
&lt;br /&gt;
16. submit the job using the submit script  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt_embedded.sh link]&lt;br /&gt;
&lt;br /&gt;
*In the second step, clusters with different regions (QM and MM) with point charges outside are cut using MolCluster&lt;br /&gt;
&lt;br /&gt;
17. When the job is finished transfer the folder to the local machine with MolClusterV2.3&lt;br /&gt;
&lt;br /&gt;
18.  Load MolClusterV2.3: ./MolCluster.py&lt;br /&gt;
&lt;br /&gt;
19. Enter the same directory containing the FIELD and HISTORY files as given in the first step&lt;br /&gt;
&lt;br /&gt;
20. select option [5] to cut cluster and add point charges&lt;br /&gt;
&lt;br /&gt;
21. MolCluster will ask for the directory containing &#039;embedded_cluster_specs.obj&#039; of the embedded cluster(s) generated by ChemShell. (the folder containing ChemSehll output)&lt;br /&gt;
&lt;br /&gt;
22. Now the cluster specifications will be asked for. enter &#039;Y&#039; if you want to use the same radius for the regions as entered before or &#039;N&#039; if want to change the  radius&lt;br /&gt;
&lt;br /&gt;
23.In the next step MolCluster will ask for the type of QM region you want to specify&lt;br /&gt;
--&amp;gt;[S] Spherical region centred about the origin&lt;br /&gt;
--&amp;gt;[M] By number of total molcules closest to the origin&lt;br /&gt;
--&amp;gt;[A] By an upper limit of total atoms closest to the origin&lt;br /&gt;
--&amp;gt;[N] Specific number of molecules closest to the origin of each molecule type&lt;br /&gt;
--&amp;gt;[C] Custom region&lt;br /&gt;
--&amp;gt;[O] Spherical volumes centred about one or more user-defined origins&lt;br /&gt;
&lt;br /&gt;
24. Clusters will be cut at this point and saved to the folder having the &#039;embedded_cluster_specs.obj&#039;  file.&lt;br /&gt;
&lt;br /&gt;
::* open embedded_cluster_n, it will have the opt.chm, ff. dat and embedded_cluster_n.chm &lt;br /&gt;
&lt;br /&gt;
25. transfer the folder to cx1 &lt;br /&gt;
&lt;br /&gt;
26. load chemshell on cx1 and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module load chemshell mpi &lt;br /&gt;
  chemsh.x embedded_cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* embedded_cluster_n.pun will be generated&lt;br /&gt;
&lt;br /&gt;
27. open opt.chm and edit the first line &amp;quot;dl-find coords=embedded_cluster_n.pun\&amp;quot;. Also make changes in the opt.chm as described in  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell link] and run the optimization&lt;br /&gt;
&lt;br /&gt;
28. The submit script [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt_embedded2.sh link]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;OLD instructions that relate to MolCluster v1-7&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
1. Create a directory within the main MolCluster directory. Put the required HISTORY and FIELD files here.&lt;br /&gt;
&lt;br /&gt;
2. Load MolCluster: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
3. Requests directory name to be specified (this is the location of the FIELD and HISTORY files).  After specifying, the code will attempt to read and give an overview of the system.&lt;br /&gt;
&lt;br /&gt;
4. First select option 2 to cut clusters, then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
::*&#039;&#039;&#039;[n]&#039;&#039;&#039;: Cut a cluster every &amp;quot;nth&amp;quot; configuration. N.B: numbering starts from 1 (i.e. 1st timestep). Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::*&#039;&#039;&#039;[c]&#039;&#039;&#039;: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
After this you can choose the step at which the clusters are to be cut&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
::*&#039;&#039;&#039;[AN]&#039;&#039;&#039;: Atom number&lt;br /&gt;
::*&#039;&#039;&#039;[AT]&#039;&#039;&#039;: Atom type&lt;br /&gt;
::*&#039;&#039;&#039;[MN]&#039;&#039;&#039;: Molecule number&lt;br /&gt;
::*&#039;&#039;&#039;[MT]&#039;&#039;&#039;: Molecule type&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom coordinates&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
&lt;br /&gt;
6. MolCluster will estimate the number of atoms within a region, for a range of radii with respect to  your origin. Use this information to help you decide on the total radius (in Angstroms) of the clusters to be cut. You will be asked to specify this.&lt;br /&gt;
&lt;br /&gt;
7. MolCluster has two options for deciding which molecules to include/exclude at the boundary of the clusters being cut:&lt;br /&gt;
::*&#039;&#039;&#039;[H]&#039;&#039;&#039;: Hard boundary - all atoms of a molecule must be within the cutoff radius for the molecule to be included.&lt;br /&gt;
::*&#039;&#039;&#039;[S]&#039;&#039;&#039;: Soft boundary - if the centre of mass of a molecule is within the cutoff radius, the molecule will be included.&lt;br /&gt;
&lt;br /&gt;
8. Specify if the clusters are required to be neutral (&#039;&#039;&#039;Y/N&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
9. Decide on the output formats:&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Generates a ChemShell fragment input file, with accompanying .xyz co-ordinates file.&lt;br /&gt;
::*&#039;&#039;&#039;[X]&#039;&#039;&#039;: Generates the .xyz co-ordinates file only.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;[X]&#039;&#039;&#039; selected, the clusters will be cut, .xyz files generated and MolCluster will terminate.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;[C]&#039;&#039;&#039; selected, you will be asked if you would also like to generate the necessary ChemShell input files for a QM/MM optimisation (&#039;&#039;&#039;Y/N&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. If your answer to step 9 was &#039;&#039;&#039;[C]&#039;&#039;&#039; (generate a ChemShell fragment input) and &#039;&#039;&#039;Y&#039;&#039;&#039; (generate ChemShell input files for a QM/MM optimisation), you will then be asked to define the QM region. Available options are:&lt;br /&gt;
::*&#039;&#039;&#039;[S]&#039;&#039;&#039;: Spherical region (or threshold) centred about the defined origin (although not necessarily spherical??!!)&lt;br /&gt;
::::  If &#039;&#039;&#039;[S]&#039;&#039;&#039; selected, MolCluster will estimate the number of atoms in regions defined by a range of radii. Specify the QM radius. This must be specified (in Angstroms) and must, obviously, be less than, or equal to, the total radius of the cluster. Soft boundary conditions are implemented.&lt;br /&gt;
::*&#039;&#039;&#039;[M]&#039;&#039;&#039;: By number of molecules. Molecules closest to the origin will be included.&lt;br /&gt;
::*&#039;&#039;&#039;[A]&#039;&#039;&#039;: By an upper limit of atoms. Only whole molecules &amp;amp; those closest to the origin included.&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom region i.e. can select molecules individually to be in the QM region&lt;br /&gt;
::*&#039;&#039;&#039;[O]&#039;&#039;&#039;: Spherical regions centred about one or more origins&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If options &#039;&#039;&#039;[C]&#039;&#039;&#039; or &#039;&#039;&#039;[O]&#039;&#039;&#039; selected, MolCluster will go straight to steps 11 and 12. Once the active region and the directory/filenames have been defined, MolCluster will then ask for the custom QM regions to be defined &#039;&#039;per&#039;&#039; cluster (see step 14).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: there can be a central active QM region (C), an active MM region (S&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;) and a frozen MM region (S&amp;lt;sub&amp;gt;F&amp;lt;/sub&amp;gt;) (Figure I), so far you have selected the maximum radius for the size of the cluster, now select the radius of the active MM smaller than this. &lt;br /&gt;
&lt;br /&gt;
[[File:Figure I.png]]&lt;br /&gt;
&lt;br /&gt;
11. MolCluster will estimate the number of atoms that would be in the active and frozen regions for a range of active radii. This information can be used to help decide upon an appropriate active radius, specified (in Angstroms) and must, be less than, or equal to, the total radius of the cluster. If all atoms are to be included, simply enter &amp;quot;ALL&amp;quot;. Soft boundary conditions are implemented.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Specify the output directory (i.e. where your final clusters and associated files will be saved) and specify the base-name for the output files (e.g. if you type &amp;quot;cluster&amp;quot; here, your clusters will be saved as cluster_1, cluster_2 etc.). NOTE: if you are going to use the trajectory_analysis scripts later the base filename must be &amp;quot;cluster&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13.  Unless in step 10 above you selected options &#039;&#039;&#039;[C&#039;&#039;&#039;] or &#039;&#039;&#039;[O]&#039;&#039;&#039; (in which case, see point 14), MolCluster will generate the specified clusters and then terminate. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14. If option &#039;&#039;&#039;[C]&#039;&#039;&#039; was selected in step 10, MolCluster will at this point list all the molecules in the first cluster, along with the distances to the origin. You will be asked to list all the molecules to be included in the QM region for this cluster. The same procedure is carried out for each cluster, before the clusters are generated and MolCluster terminates.&lt;br /&gt;
&lt;br /&gt;
If option &#039;&#039;&#039;[O]&#039;&#039;&#039; was selected in step 10, you will be asked to specify how many region centers you employed in setting up a non-spherical QM region.&lt;br /&gt;
You can choose the centre of the multiple regions via atom/molecule or use the current cluster origin.  A table is provided to help you make this choice identifying atom numbers and molecules and their distance from the cluster origin.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
::*To run ChemShell in Cartesian coordinate (MolCluster1.7):&lt;br /&gt;
&lt;br /&gt;
::*open opt.chm and delete the lines:&lt;br /&gt;
  coordinates=hdlc \&lt;br /&gt;
  residues=&lt;br /&gt;
::* then run &lt;br /&gt;
  module load chemshell/3.5.0 &lt;br /&gt;
  chemsh.x cluster_n.chm&lt;br /&gt;
*follow the same steps as in the previous case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Starting_MD&amp;diff=734238</id>
		<title>Talk:Mod:Hunt Research Group/Starting MD</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Starting_MD&amp;diff=734238"/>
		<updated>2018-08-17T16:50:58Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Number of molecules or volume of cell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Intro==&lt;br /&gt;
You have two choices depending on if this is a pure system or is a solute plus solvent.  You can start from &lt;br /&gt;
a) molecules on a grid (not discussed here)&lt;br /&gt;
b) a random distribution of solvent molecules or a solute surrounded by a random config of solvent molecules&lt;br /&gt;
note: VMD has a solvent build for water only&lt;br /&gt;
&lt;br /&gt;
A molecular liquid is different to a molten salt, &amp;lt;b&amp;gt;molten salt doesn&#039;t need a 5K relaxation and should be run from a crystal structure&amp;lt;/b&amp;gt; rather than a packmol generated structure&lt;br /&gt;
&lt;br /&gt;
Tolerance is used so that things don&#039;t overlap, it is set for water at about 2 or 3. For IL&#039;s 5 has been used.&lt;br /&gt;
If packmol is taking a long time to generate the simulation box it could be that the tolerance is too low. Try increasing the tolerance slightly (by 1) high tolerance gives a lower density box as larger spaces are used between molecules/ions.&lt;br /&gt;
&lt;br /&gt;
==Number of molecules or volume of cell==&lt;br /&gt;
* define box/cell size based on relevant literature and/or what you want to do&lt;br /&gt;
* OR define the number of molecules you can potentially simulate in a realistic time&lt;br /&gt;
* then use density=mass/volume to predict the other quantity&lt;br /&gt;
* you do need to have an &#039;&#039;&#039;experimental density&#039;&#039;&#039; or a very good estimate (for the final temperature) in g/cm3&lt;br /&gt;
* see this equation &#039;&#039;&#039;Volume=molar mass/(0.6022*(density/number of molecules))&#039;&#039;&#039;&lt;br /&gt;
** 0.6022 is used as it combines Avagadros constant and a conversion from Å^3 to cm^3&lt;br /&gt;
* if you have different molecules e.g. NaCl in water, take volume of NaCl and add to the volume of water&lt;br /&gt;
* take the cubed root of the volume to get a first estimate of the box length&lt;br /&gt;
* then use packmol&lt;br /&gt;
&lt;br /&gt;
==Using packmol==&lt;br /&gt;
&lt;br /&gt;
Packmol webiste [http://www.ime.unicamp.br/~martinez/packmol/home.shtml]&lt;br /&gt;
&lt;br /&gt;
This should all be done on a local machine, not the HPC&lt;br /&gt;
&lt;br /&gt;
* first you need to build an input file, this must have the name &#039;file.inp&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;#&lt;br /&gt;
#  Generation of the NaCl in water&lt;br /&gt;
#&lt;br /&gt;
tolerance 2.0&lt;br /&gt;
filetype xyz&lt;br /&gt;
output nacl_1330-spce.xyz&lt;br /&gt;
&lt;br /&gt;
structure na.xyz&lt;br /&gt;
number 1&lt;br /&gt;
inside box   0.   0.   0. 10. 10. 10.&lt;br /&gt;
end structure&lt;br /&gt;
&lt;br /&gt;
structure cl.xyz&lt;br /&gt;
number 1&lt;br /&gt;
inside box -10. -10. -10.  0.  0.  0.&lt;br /&gt;
end structure&lt;br /&gt;
&lt;br /&gt;
structure spce.xyz&lt;br /&gt;
number 1330&lt;br /&gt;
inside box -17. -17. -17. 17. 17. 17.&lt;br /&gt;
end structure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* tolerance is the distance between molecules, smaller for small molecules ≈2 Å for water&lt;br /&gt;
* a good number for ILs is between 3.4-3.8&lt;br /&gt;
* filetype can be xyz or pdb (default)&lt;br /&gt;
* output filename i.e. the filename of the output file&lt;br /&gt;
* then define the individual molecules/ions to be included inside structure and end structure strings&lt;br /&gt;
* first define the file in which the structure coordinates are to be found (see below)&lt;br /&gt;
* then the number of molecules of this type in the cell&lt;br /&gt;
* then were to place these molecules within that cell&lt;br /&gt;
* this file has the format: number of atoms, descriptive title, atom identifier and xyz coordinates&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1&lt;br /&gt;
na&lt;br /&gt;
NA      0.000000     0.000000     0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* in this case we are building a cell of length approx 34Å&lt;br /&gt;
* it is important to make sure the 0,0,0 is in the centre, hence the -17 to +17&lt;br /&gt;
* we also want our Na+ and Cl- well separated, to ensure this we make sure it is distributed roughly in opposite corners of the box, but not right on the edges as we don&#039;t want the ions on the cell boundaries&lt;br /&gt;
* see the manual for various ways of controlling how the ions are distributed within the cell&lt;br /&gt;
&lt;br /&gt;
* then run packmol by typing /directory_path/packmol &amp;lt; file.inp&lt;br /&gt;
* the resulting coordinates will be in the output file you specified&lt;br /&gt;
* you then want to visualise the structure in VMD to check that it looks ok&lt;br /&gt;
&lt;br /&gt;
==Quick relaxation==&lt;br /&gt;
1. resize your box slightly&lt;br /&gt;
:packmol sometimes places molecule over the edges so increase the box side length by 10-20%&lt;br /&gt;
::so for our example (0.2*34)+34 is 40.8, rounding this down to a nice number gives a box size of 40Å&lt;br /&gt;
::this of courses lowers the density, which will be corrected for when you run the NPT&lt;br /&gt;
&lt;br /&gt;
2. use this script to convert the output of packmol into a dlpoly readable file [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/conv_xyz2conf conv_xyz2conf.pl]&lt;br /&gt;
:dlpoly is highly format driven so check the dlpoly manual for the exact details&lt;br /&gt;
:essentially each atom is now numbered with the xyz coordinates on the following line&lt;br /&gt;
:notice that in the script specific atomic labels are searched and printed so if you have a different molecule you will need to edit the script to put in the new atom types you need.&lt;br /&gt;
:input is the filename you wish to convert excluding the .xyz extension&lt;br /&gt;
:for example conv_xyz2conf nacl_1330-spce&lt;br /&gt;
:: so nacl_1330_spce.xyz looks like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3992&lt;br /&gt;
Built with Packmol&lt;br /&gt;
NA           0.001779        9.402974        9.416280&lt;br /&gt;
CL          -9.999671       -0.580455       -0.000345&lt;br /&gt;
OH2         -1.549154       16.628984        6.058143&lt;br /&gt;
HO          -1.166292       16.884755        6.945835&lt;br /&gt;
HO          -0.975087       16.999934        5.328183&lt;br /&gt;
OH2         -3.418933        0.347746       -2.288811&lt;br /&gt;
HO          -3.805476        1.262661       -2.172555&lt;br /&gt;
HO          -3.388480        0.119970       -3.262048&lt;br /&gt;
OH2        -15.941200        6.736377       16.160857&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file with the same name but extension .cfg&lt;br /&gt;
::and you will get something that looks like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Converted from Packmol XYZ&lt;br /&gt;
         0         0         0            0.000000  &lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000        #Note:  You are required to fill in the correct numbers here!&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000        #Note:  Do not change the spacing!!!!      &lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
NA               1&lt;br /&gt;
0.001779            9.402974            9.416280&lt;br /&gt;
CL               2&lt;br /&gt;
-9.999671           -0.580455           -0.000345&lt;br /&gt;
OH2              3&lt;br /&gt;
-1.549154           16.628984            6.058143&lt;br /&gt;
HO               4&lt;br /&gt;
-1.166292           16.884755            6.945835&lt;br /&gt;
HO               5&lt;br /&gt;
-0.975087           16.999934            5.328183&lt;br /&gt;
OH2              6&lt;br /&gt;
-3.418933            0.347746           -2.288811&lt;br /&gt;
HO               7&lt;br /&gt;
-3.805476            1.262661           -2.172555&lt;br /&gt;
HO               8&lt;br /&gt;
-3.388480            0.119970           -3.262048&lt;br /&gt;
OH2              9&lt;br /&gt;
-15.941200            6.736377           16.160857&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this file needs to be copied to the CONFIG file and appropriately edited&lt;br /&gt;
&lt;br /&gt;
The 0.0000 section is to do with the size of the simulation box. So whatever your box size was in packmol increase it by 10% and use this new value. Put the new box size length one in each column and one in each row (diagonal top left to bottom right).&lt;br /&gt;
The 0 under from in the above example should be changed to 1. The 0 under packman needs to be changed to the number of molecules in the simulation.&lt;br /&gt;
&lt;br /&gt;
;now goto step 2 below&lt;br /&gt;
&lt;br /&gt;
*(this is ruth&#039;s old instructions)now start a dlpoly job (skip this)&lt;br /&gt;
step 1. start with a box 1/2 dimensions in all directions, and equilibrate, then make \&amp;quot;supercell\&amp;quot; of 8 boxes for final equilibration and collection of data&lt;br /&gt;
::options for cutoff -use 10-12Å (I have used 14 Å.)&lt;br /&gt;
:::remember you can only get a g(r) upto cut-off &lt;br /&gt;
:::play with this, too large (has to recalculate lots) and you too small (??) calculation runs slower&lt;br /&gt;
::options for ewald -use 10-5/10-6 (I have used 10-6.)&lt;br /&gt;
::verlet neighbour list - I have used 0.75 (from Ruth).&lt;br /&gt;
:::-play with this, too large (has to recalculate lots) and you too small (??) calculation runs slower &lt;br /&gt;
&lt;br /&gt;
step 2. carry out NVE simulation (this is essential to get a good starting point)&lt;br /&gt;
we have a fixed volume, and we want to relax the system to relax the individual molecules in other MD programs you would do a minimisation, however we will give it a little bit of energy to allow things to move around a bit.  This step is more important for ILs which are less fluid, or for larger solvent molecules where moving a molecule costs a bit more energy.  For something like water can go straight to room temperatures, but we will go through the motions so that you have experience.&lt;br /&gt;
:you need a CONTROL file&lt;br /&gt;
:here is our example&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dlpoly run&lt;br /&gt;
temperature 5.15&lt;br /&gt;
#pressure 0.001&lt;br /&gt;
ensemble nve&lt;br /&gt;
#ensemble npt hoover 0.2 0.2&lt;br /&gt;
integrator leapfrog&lt;br /&gt;
shake 1.0E-05&lt;br /&gt;
quaternion 1.0E-08&lt;br /&gt;
steps 5000&lt;br /&gt;
equilibration 500&lt;br /&gt;
scale 100&lt;br /&gt;
print 100&lt;br /&gt;
stack 100&lt;br /&gt;
stats 100&lt;br /&gt;
timestep 0.001&lt;br /&gt;
cutoff 16.000&lt;br /&gt;
delr 0.100&lt;br /&gt;
rvdw 15.000&lt;br /&gt;
ewald precision 1.0E-6&lt;br /&gt;
traj 1 100 0&lt;br /&gt;
job time 1000000.0&lt;br /&gt;
close time 1000.0&lt;br /&gt;
finish&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*for the shake algorithm use 1*10-6 if you have pdb or inaccurate geometry, if you have xyz 1*10-8 is better.  The shake constrains all the H-bonds to this bond length.&lt;br /&gt;
*use the computational method to determine the bond distances and lengths used by the people developing the potential, for example if they use HF you use HF to generate your geometry!&lt;br /&gt;
&lt;br /&gt;
:The minimisation options in DLPOLY don&#039;t work very well for ILs.&lt;br /&gt;
::T = 5K for 50 steps&lt;br /&gt;
:::use smaller timestep (e.g. 0.2fs) to make pressure tensor ~E+00&lt;br /&gt;
:::if use large timestep e.g. 2fs, pressure tensor ~E+06&lt;br /&gt;
::T=400K for 1000 steps&lt;br /&gt;
:::start from the above relaxed structure by copying the REVCON file into a new directory and calling it CONFIG&lt;br /&gt;
:::in case of [BMIM][BF4] or [BMIM][NO3], check that it ends at ~360K. &lt;br /&gt;
:::check that the pressure tensor is small ~E-01/-02.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common problems&lt;br /&gt;
e.g. box may explode&lt;br /&gt;
check the potential for the correct units&lt;br /&gt;
are two cations next to each other - start from crystal structure&lt;br /&gt;
scale forces using the &#039;cap (forces)&#039; keyword sets the max forces to what is in the brackets, careful this can be dangerous, run a second equilibration without the cap keyword.&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=696401</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=696401"/>
		<updated>2018-04-25T15:27:18Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* opt.chm files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 7 22 45 69 82 84 102 137 138 139 140 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=7 maxcyc=200 scfconv=5 basisspec={ { 3-21g { N* C* } }  { lanl2dz L* } }  ecpspec={ { null { N* C* } } { lanl2dz L* } }  g98_mem=35000000 charge=-1 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      use_pairlist=no \&lt;br /&gt;
      mxexcl=300 \&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 } } } \&lt;br /&gt;
      active_atoms = { 1 7 9 10 11 13 18 20 22 25 27 29 31 32 35 36 43 44 45 48 51 52 58 62 64 65 69 72 74 76 82 83 84 88 94 98 100 101 102 103 105 106 108 109 112 114 115 117 118 120 124 128 129 132 133 134 137 138 139 140 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 300 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is IMPORTANT that in the &amp;quot;basis spec&amp;quot; section the basis set for non pseudo-potential atoms goes first, followed by the information for the pseudo-potential atoms. The same applies for the &amp;quot;ecpspec&amp;quot; keyword.&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters. It is necessary to the have the parameters as &#039;&#039;&#039;C6&#039;&#039;&#039; and &#039;&#039;&#039;C12&#039;&#039;&#039; and in &#039;&#039;&#039;kCal&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vdw NA    NA            87.5812212    14750.8882&lt;br /&gt;
vdw NA    CL            522.364248    593182.84&lt;br /&gt;
vdw CL    CL            3106.1365     24120183.2&lt;br /&gt;
vdw LA    CL            1471.76193    6991022.6&lt;br /&gt;
vdw LA    NA            284.384407    228931.111&lt;br /&gt;
vdw LA    LA            667.42017     1856038.3&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the parameters for the ff.dat file some work needs to be completed!&lt;br /&gt;
&lt;br /&gt;
I took the E and sigma values from my MD simulation using the LJ potential and completed a couple of transformations to ensure the correct values were being used. First I had to change E and sigma to C6 and C12 values. &lt;br /&gt;
&lt;br /&gt;
To generate the C6 value needed the calculation needed is    4*E*sigma^6&lt;br /&gt;
To generate the C12 value needed the calculation needed is    4*E*sigma^12&lt;br /&gt;
&lt;br /&gt;
These values are in kJ but we need kCal here, so each value is then multiplied by 0.239006 to get values in kCal.&lt;br /&gt;
&lt;br /&gt;
To ensure this process was correct I took Asiwaryas FIELD file from the MD and completed the above calculations. I then compared the values I obtained and the values in the ff.dat she was using and found no difference.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.chm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=696400</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=696400"/>
		<updated>2018-04-25T15:25:36Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* opt.chm files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 7 22 45 69 82 84 102 137 138 139 140 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=7 maxcyc=200 scfconv=5 basisspec={ { 6-31g* { N* C* } }  { lanl2dz L* } }  ecpspec={ { null { N* C* } } { lanl2dz L* } }  g98_mem=35000000 charge=-1 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      use_pairlist=no \&lt;br /&gt;
      mxexcl=300 \&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 } } } \&lt;br /&gt;
      active_atoms = { 1 7 9 10 11 13 18 20 22 25 27 29 31 32 35 36 43 44 45 48 51 52 58 62 64 65 69 72 74 76 82 83 84 88 94 98 100 101 102 103 105 106 108 109 112 114 115 117 118 120 124 128 129 132 133 134 137 138 139 140 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 300 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters. It is necessary to the have the parameters as &#039;&#039;&#039;C6&#039;&#039;&#039; and &#039;&#039;&#039;C12&#039;&#039;&#039; and in &#039;&#039;&#039;kCal&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vdw NA    NA            87.5812212    14750.8882&lt;br /&gt;
vdw NA    CL            522.364248    593182.84&lt;br /&gt;
vdw CL    CL            3106.1365     24120183.2&lt;br /&gt;
vdw LA    CL            1471.76193    6991022.6&lt;br /&gt;
vdw LA    NA            284.384407    228931.111&lt;br /&gt;
vdw LA    LA            667.42017     1856038.3&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the parameters for the ff.dat file some work needs to be completed!&lt;br /&gt;
&lt;br /&gt;
I took the E and sigma values from my MD simulation using the LJ potential and completed a couple of transformations to ensure the correct values were being used. First I had to change E and sigma to C6 and C12 values. &lt;br /&gt;
&lt;br /&gt;
To generate the C6 value needed the calculation needed is    4*E*sigma^6&lt;br /&gt;
To generate the C12 value needed the calculation needed is    4*E*sigma^12&lt;br /&gt;
&lt;br /&gt;
These values are in kJ but we need kCal here, so each value is then multiplied by 0.239006 to get values in kCal.&lt;br /&gt;
&lt;br /&gt;
To ensure this process was correct I took Asiwaryas FIELD file from the MD and completed the above calculations. I then compared the values I obtained and the values in the ff.dat she was using and found no difference.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.chm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=668472</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=668472"/>
		<updated>2018-02-22T13:07:05Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* ff.dat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 63 73 75 93 125 126 127 128 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=lanl2dz basisspec={ { lanl2dz * } } ecpspec={ { lanl2dz * } } &lt;br /&gt;
g98_mem=640000000 charge=-3 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=300\&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA &lt;br /&gt;
NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &lt;br /&gt;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 &lt;br /&gt;
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 &lt;br /&gt;
118 119 120 121 122 123 124 125 126 127 128 } } } \&lt;br /&gt;
      active_atoms = { 1 2 4 5 6 7 9 14 15 17 20 22 24 26 27 29 30 31 37 38 39 40 43 46 47 48 53 56 58 59 63 65 67 69 70 73 74 75 &lt;br /&gt;
78 79 83 85 87 89 91 92 93 94 96 97 99 100 103 105 106 107 108 110 111 113 117 118 120 121 122 125 126 127 128 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 800\&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters. It is necessary to the have the parameters as &#039;&#039;&#039;C6&#039;&#039;&#039; and &#039;&#039;&#039;C12&#039;&#039;&#039; and in &#039;&#039;&#039;kCal&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vdw NA    NA            87.5812212    14750.8882&lt;br /&gt;
vdw NA    CL            522.364248    593182.84&lt;br /&gt;
vdw CL    CL            3106.1365     24120183.2&lt;br /&gt;
vdw LA    CL            1471.76193    6991022.6&lt;br /&gt;
vdw LA    NA            284.384407    228931.111&lt;br /&gt;
vdw LA    LA            667.42017     1856038.3&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the parameters for the ff.dat file some work needs to be completed!&lt;br /&gt;
&lt;br /&gt;
I took the E and sigma values from my MD simulation using the LJ potential and completed a couple of transformations to ensure the correct values were being used. First I had to change E and sigma to C6 and C12 values. &lt;br /&gt;
&lt;br /&gt;
To generate the C6 value needed the calculation needed is    4*E*sigma^6&lt;br /&gt;
To generate the C12 value needed the calculation needed is    4*E*sigma^12&lt;br /&gt;
&lt;br /&gt;
These values are in kJ but we need kCal here, so each value is then multiplied by 0.239006 to get values in kCal.&lt;br /&gt;
&lt;br /&gt;
To ensure this process was correct I took Asiwaryas FIELD file from the MD and completed the above calculations. I then compared the values I obtained and the values in the ff.dat she was using and found no difference.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.chm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster&amp;diff=668471</id>
		<title>Talk:Mod:Hunt Research Group/MolCluster</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster&amp;diff=668471"/>
		<updated>2018-02-22T13:05:15Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Using MolClusterV2.3: Basic Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is MolCluster?===&lt;br /&gt;
MolCluster is a tool (developed by Vincent and Gabriel) that can be used to cut clusters from MD trajectories and create the input files for ChemShell. &lt;br /&gt;
&lt;br /&gt;
To use MolCluster, you will need:&lt;br /&gt;
* The latest version of MolCluster (available from Vincent).&lt;br /&gt;
* Python version 2.7.6, or above.&lt;br /&gt;
* The HISTORY file from which the clusters are to be cut, and the corresponding FIELD file. Note: these need to be in DL_POLY format. If you have used the &#039;restart&#039; option in DL_POLY, the header of the HISTORY file may need to be amended. Additional transformations of the HISTORY and FIELD files, to convert atom labels into an acceptable format for MolCluster/ChemShell, may also be required (example given later).&lt;br /&gt;
&lt;br /&gt;
===Using MolClusterV2.3: Basic Instructions===&lt;br /&gt;
&lt;br /&gt;
1. Create a directory within the main MolCluster directory. Put the required HISTORY and FIELD files here.&lt;br /&gt;
&lt;br /&gt;
2. Load MolCluster: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
3. Requests directory name to be specified (this is the location of the FIELD and HISTORY files).  After specifying, the code will attempt to read and give an overview of the system.&lt;br /&gt;
:*if you need a demo file to practice on download this history file: [[Media:TEST_CUSO4_DLPOLY_HISTORY.rtf]]&lt;br /&gt;
&lt;br /&gt;
4. UPDATE - select option 1 to cut a cluster containing the QM region, active MM region and frozen MM region. We think options 2a and 2b are necessary for adding point charges&lt;br /&gt;
&lt;br /&gt;
Select option 2 to cut clusters, then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
:--&amp;gt;[n]: Cut a cluster every &amp;quot;nth&amp;quot; step or configuration. &lt;br /&gt;
:--&amp;gt;[c]: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
::*normally option n will be selected&lt;br /&gt;
::*once you have made the n or c selection options will relate to which clusters are to be cut, N.B: numbering starts from 1 (i.e. 1st timestep). &lt;br /&gt;
::* For option n you will give an integer to identify the &amp;quot;nth&amp;quot; step to cut at.  Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::* The demo HISTORY file has only 5 steps, so if using this file select 2 to get 2 structures&lt;br /&gt;
::* For option c you will need to give the integer number of the specific step you want cut.&lt;br /&gt;
::*MolCluster will then tell you the the relevant coordinates have been generated&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
:--&amp;gt;[AN]: Atom number&lt;br /&gt;
:--&amp;gt;[AT]&#039;: Atom type&lt;br /&gt;
:--&amp;gt;[MN]&#039;: Molecule number&lt;br /&gt;
:--&amp;gt;[MT]: Molecule type&lt;br /&gt;
:--&amp;gt;[C]: Custom coordinates&lt;br /&gt;
::* If using the demo HISTORY file choose AT&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
::* If using the demo HISTORY file choose number 6 (this file has Cu-SO4+2000 waters, and O3 is the oxygen atom between Cu and S i.e. Cu-O-S&lt;br /&gt;
&lt;br /&gt;
6. MolCluster will now ask for &lt;br /&gt;
:Available cluster construction definition:&lt;br /&gt;
:--&amp;gt;[R] Fixed radius&lt;br /&gt;
:--&amp;gt;[M] Specify number of each molecule type (i.e. the number of those molecules to include within the cluster radius)&lt;br /&gt;
::* If using the demo HISTORY file you want to select R&lt;br /&gt;
::MolCluster will then print out some information for you this will give you some idea of the number of atoms within various radii&lt;br /&gt;
&lt;br /&gt;
7. In the next step, if &#039;R&#039; was chosen, it will ask for the total radius (in Angstroms) of the cluster(s) to be cut, containing the QM, active MM and frozen MM regions. If &#039;M&#039; was chosen it will ask for the number of each molecule (check ... will it be just for the water)&lt;br /&gt;
::* If using the demo HISTORY file you want to select 20 (this is a big radius so that we can have a QM region surrounded by an active MM region which is in turn surrounded with an inactive MM region)&lt;br /&gt;
&lt;br /&gt;
8. Next it is possible that your chosen radius can cut through a molecule, thus MolCluster has two options for deciding which atoms to include/exclude at the boundary of the clusters being cut:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[H]: Hard boundary - all atoms of a molecule must be within the cutoff radius to be included (i.e. molecules can be cut with some atoms appearing in the cluster and others not).&lt;br /&gt;
:--&amp;gt;[S]: Soft boundary - if the centre of mass of a molecule is within the cutoff radius, the whole molecule will be included.&lt;br /&gt;
::* If using the demo HISTORY file you want to select S the soft option&lt;br /&gt;
::*If [H] is selected: With a hard boundary, the whole molecule (i.e. all of its atoms) has to be within the boundary. In other words, for any atom whose distance away from the origin is greater than the specified cluster radius, it’s associated molecule will not be included in the cluster. Since only full molecules are included, there will not be any dangling bonds under any circumstances.&lt;br /&gt;
&lt;br /&gt;
9. Specify if the clusters are required to be neutral (Y/N).&lt;br /&gt;
:Vincent will add something here about how a cluster is neutralised (important for the ILs)&lt;br /&gt;
::* If using the demo HISTORY file you want to select Y option to have a neutral cluster&lt;br /&gt;
&lt;br /&gt;
10. Decide on the output format, this can be for chemshell or a simple xyz:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[C]: Generates a ChemShell fragment input file, with accompanying .xyz co-ordinates file.&lt;br /&gt;
:--&amp;gt;[X]: Generates the .xyz co-ordinates file only.&lt;br /&gt;
::*If [X] is selected, the clusters will be cut, .xyz files generated and MolCluster will terminate.&lt;br /&gt;
::*If [C] selected, you will be asked if you would also like to generate the necessary ChemShell input files for a QM/MM optimisation (Y/N).&lt;br /&gt;
::* If using the demo HISTORY file you want to select C for chemshell and Y for QM/MM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: there can be a central active QM region (C), an active MM region (S&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;) and a frozen MM region (S&amp;lt;sub&amp;gt;F&amp;lt;/sub&amp;gt;) (Figure I)&lt;br /&gt;
[[File:Figure I.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. If your answer to step 10 was [C] (generate a ChemShell fragment input) and Y (generate ChemShell input files for a QM/MM optimisation), you will then be asked to define the &#039;&#039;&#039;QM region&#039;&#039;&#039;. Available options are:&lt;br /&gt;
&lt;br /&gt;
:--&amp;gt;[S]: Spherical region (or threshold) centred about the defined origin (although not necessarily completely spherical if you have chosen a soft bondry)&lt;br /&gt;
:--&amp;gt;[M]: Choose the number of molecules closest to the origin that will be included.&lt;br /&gt;
:--&amp;gt;[A]: By an upper limit of atoms. Only whole molecules &amp;amp; those closest to the origin included.&lt;br /&gt;
:--&amp;gt;[C]: Custom region i.e. can select molecules individually to be in the QM region&lt;br /&gt;
:--&amp;gt;[O]: Spherical regions centred about one or more origins (for example we could choose S of SO4 as an origin and Cu as an origin and have two intersecting &amp;quot;regions&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
::* If using the demo HISTORY file you want to select O for multiple origins. Then choose the number of origins as &#039;2&#039;, since we want to define the regions centred about S and Cu. After choosing &#039;2&#039;, it will list the atoms and the corresponding number, choose numbers corresponding to S and then include the desired radius. then choose Cu( by choosing the number corresponding to copper from the list) and then enter the radius. To choose the radii for each region, look at the radial distribution plot obtained for Cu-O(water) and S-O(water) from DL_POLY production run. Use the distance of the first minima as the radius. &lt;br /&gt;
&lt;br /&gt;
:If [S] is selected, MolCluster will print out some information, estimating the number of atoms in the regions defined by specific radii to help you evaluate the best radius to choose.  Choose a radius!&lt;br /&gt;
::* If using the demo HISTORY file you want to select 5.0 for the first solvation sphere around the Cu-SO4 ion-pair&lt;br /&gt;
&lt;br /&gt;
:If [O] is selected ...&lt;br /&gt;
&lt;br /&gt;
:Next MolCluster will ask you to specify the QM radius you want (in Angstroms)&lt;br /&gt;
::Note this radius must be less than, or equal to, the total radius of the cluster. Soft boundary conditions are implemented.&lt;br /&gt;
&lt;br /&gt;
:If [C] is selected once the active region and the directory/filenames have been defined, MolCluster will then ask for the custom QM regions to be defined .&lt;br /&gt;
&lt;br /&gt;
12. Now MolCluster will ask you to select the type of &#039;&#039;&#039;active region&#039;&#039;&#039; definition from,&lt;br /&gt;
:--&amp;gt;[S] Spherical region centred about the origin&lt;br /&gt;
:--&amp;gt;[M] By number of total molcules closest to the origin&lt;br /&gt;
:--&amp;gt;[A] By an upper limit of total atoms closest to the origin&lt;br /&gt;
:--&amp;gt;[N] Specific numbers of each molecule type&lt;br /&gt;
::this is similar to choosing the total cluster size options, however the radius should be larger than the QM and smaller than the total cluster size!&lt;br /&gt;
::* If using the demo HISTORY file choose &#039;S&#039;&lt;br /&gt;
::*Here four options are present, [S], [M], [A] and [N], but in the next step to select from these options, the programme lists only two options(S/N). This is just an error in the output to screen and you can still select the other two options. This will be fixed in the next version.&lt;br /&gt;
&lt;br /&gt;
13. If [S] is selected, MolCluster will estimate the number of atoms within a set of radii and will ask you to enter the desired radius of the active region&lt;br /&gt;
::* If using the demo HISTORY file choose give a radius of 15.0Å for the active region&lt;br /&gt;
&lt;br /&gt;
14. Next MolCluster will ask you to select a coordinate system under which the optimisation will take place.  Three different co-ordinate systems are available in ChemShell for optimisation. &lt;br /&gt;
:--&amp;gt;[C]artesian (constraints not permitted)&lt;br /&gt;
:--&amp;gt;[D]elocalised internal coordinates (DLC)&lt;br /&gt;
:--&amp;gt;[H]ybrid delocalised internal coordinates (HDLC)&lt;br /&gt;
::Select C, D or H to define the coordinate system&lt;br /&gt;
::* If using the demo HISTORY file choose C the cartesian coordinates&lt;br /&gt;
::* we have had problems with the hybrid HDLC option so only choose this if you are an expert&lt;br /&gt;
::* HDLC are ...&lt;br /&gt;
&lt;br /&gt;
15. Give the name of the output directory into which MolCluster should write files, followed by a base name &#039;cluster&#039;&lt;br /&gt;
::* if using one of the in-house python scripts you must use &#039;cluster&#039;&lt;br /&gt;
::* If using the demo HISTORY file perhaps use the directory &amp;quot;test1&amp;quot; and &amp;quot;cluster&amp;quot;&lt;br /&gt;
&lt;br /&gt;
16. In the next step, we can save the bulk and cluster data objects to be generated for debug purposes by selecting &#039;Y&#039;. if not required, select &#039;N&#039; and MolCluster will generate the clusters.&lt;br /&gt;
::*Data objects:This was setup mainly so that it would be easier for Vincent to run some tests if there was something wrong with the clusters. He will have this option removed from the next version and perhaps instead have a ‘debug’ version of MolCluster. &lt;br /&gt;
&lt;br /&gt;
::* If using the demo HISTORY file chose N&lt;br /&gt;
&lt;br /&gt;
:MolCluster will now generate the clusters and files required&lt;br /&gt;
::* if you used a central radius you will see something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Please give output basename (no spaces and only alphanumeric and underscore&lt;br /&gt;
characters allowed): cluster&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Do you want the bulk and cluster data objects to be generated for debug purposes&lt;br /&gt;
[Y/N]? N&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Creating directory &#039;test1/cluster_1&#039;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Generating 2x2x2 supercell...&lt;br /&gt;
&lt;br /&gt;
Cluster 1 out of 5 generated...&lt;br /&gt;
&lt;br /&gt;
ChemShell potential file test1/cluster_1/ff.dat...&lt;br /&gt;
&lt;br /&gt;
...generated&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
There are 18 molecules (54 atoms) in the QM region.&lt;br /&gt;
&lt;br /&gt;
The total charge of the QM region is 0.0.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO      System information written to test1/cluster_1/system_info.txt       OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Creating directory &#039;test1/cluster_2&#039;&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Generating 2x2x2 supercell...&lt;br /&gt;
&lt;br /&gt;
Cluster 2 out of 5 generated...&lt;br /&gt;
&lt;br /&gt;
ChemShell potential file test1/cluster_2/ff.dat...&lt;br /&gt;
&lt;br /&gt;
...generated&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
There are 19 molecules (57 atoms) in the QM region.&lt;br /&gt;
&lt;br /&gt;
The total charge of the QM region is 0.0.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO      System information written to test1/cluster_2/system_info.txt       OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and once all the clusters have been generated you should see this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;br /&gt;
&lt;br /&gt;
III                         All clusters generated.                          III&lt;br /&gt;
&lt;br /&gt;
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Please report any bugs to Vincent Chen (vhc08@ic.ac.uk) or Gabriel Lau&lt;br /&gt;
&lt;br /&gt;
(gvl07@ic.ac.uk). The log file can be found in &#039;temp/molcluster.log&#039;.&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
OOO                       Log file copied to &#039;test1&#039;.                        OOO&lt;br /&gt;
&lt;br /&gt;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE&lt;br /&gt;
&lt;br /&gt;
EEE                            Exiting molcluster                            EEE&lt;br /&gt;
&lt;br /&gt;
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Output Files===&lt;br /&gt;
* Each cluster will have its own directory within the directory named in step 12. These subdirectories will be named: &#039;&#039;&#039;cluster_1&#039;&#039;&#039;, &#039;&#039;&#039;cluster_2&#039;&#039;&#039;...&#039;&#039;&#039;cluster_n&#039;&#039;&#039;. &lt;br /&gt;
* Within the main directory one will also find a file called &#039;&#039;&#039;molcluster.log&#039;&#039;&#039; and a file called &#039;&#039;&#039;bulk_system_info.txt&#039;&#039;&#039;. &lt;br /&gt;
::*&#039;&#039;&#039;molcluster.log&#039;&#039;&#039; is a record of the user responses to each of the MolCluster options (look at  this if you have forgotten, for example, the cluster radius). &lt;br /&gt;
::*&#039;&#039;&#039;bulk_system_info.txt&#039;&#039;&#039; summarises information relating to the system before clusters are cut (e.g. number and type of molecules, total number of atoms, total system charge, atom labels within a molecule, atomic charges).&lt;br /&gt;
&lt;br /&gt;
*If option &#039;&#039;&#039;[X]&#039;&#039;&#039; selected in step 9, each subdirectory &#039;&#039;&#039;cluster_n&#039;&#039;&#039; will contain:&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.xyz&#039;&#039;&#039; coordinates file&lt;br /&gt;
::*&#039;&#039;&#039;system_info.txt&#039;&#039;&#039;: Summary of the cluster (e.g. total number of molecules, total number of atoms, total charge)&lt;br /&gt;
&lt;br /&gt;
*If option &#039;&#039;&#039;[C]&#039;&#039;&#039;, &#039;&#039;&#039;Y&#039;&#039;&#039; selected in step 9, each subdirectory &#039;&#039;&#039;cluster_n&#039;&#039;&#039; will contain:&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.xyz&#039;&#039;&#039; coordinates file&lt;br /&gt;
::*&#039;&#039;&#039;system_info.txt&#039;&#039;&#039;: Summary of the cluster (e.g. total number of molecules, total number of atoms, total charge)&lt;br /&gt;
::*The &#039;&#039;&#039;cluster_n.chm&#039;&#039;&#039; coordinates file. This will be used to create the &#039;&#039;&#039;cluster.pun&#039;&#039;&#039; ChemShell input file.&lt;br /&gt;
::*&#039;&#039;&#039;cluster_tiered.xyz&#039;&#039;&#039;: xyz coordinates with the QM, active and frozen regions defined (all QM atoms listed as X1 (X=element symbol), active as X2 and frozen as X3). This file can be used to easily visualise the different regions in VMD.&lt;br /&gt;
::*&#039;&#039;&#039;conn.txt&#039;&#039;&#039; : the connectivity data needed by ChemShell&lt;br /&gt;
::*&#039;&#039;&#039;ff.dat&#039;&#039;&#039; : the forcefield in ChemShell format&lt;br /&gt;
::*&#039;&#039;&#039;opt.chm&#039;&#039;&#039;: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== To visualise in VMD ==&lt;br /&gt;
&lt;br /&gt;
::* open the cluster_tiered.xyz file in vmd: File → New Molecule → Browse → select the file type → Load the file&lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIa.png]]&lt;br /&gt;
&lt;br /&gt;
::*To highlight each layer in the cluster, open graphical representation &lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIb.png]]&lt;br /&gt;
&lt;br /&gt;
::* To create a new representation: click on &#039;Create Rep&#039;, a new line will appear&lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IIc.png]]&lt;br /&gt;
&lt;br /&gt;
::* In the &#039;Selected Atoms&#039; type       &lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*1&amp;quot;&#039;&#039;&#039;  for the 1&amp;lt;sup&amp;gt;st&amp;lt;/sup&amp;gt; QM region  and  from the &#039;Drawing Method&#039; select VDW&lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*2&amp;quot;&#039;&#039;&#039;  for the 2&amp;lt;sup&amp;gt;nd&amp;lt;/sup&amp;gt; active MM region,  from the &#039;Drawing Method&#039; select CPK&lt;br /&gt;
  &#039;&#039;&#039;name &amp;quot;.*3&amp;quot;&#039;&#039;&#039; for the 3&amp;lt;sup&amp;gt;rd&amp;lt;/sup&amp;gt; frozen MM region, from the &#039;Drawing Method&#039; select Lines&lt;br /&gt;
&lt;br /&gt;
::* The highlighted layers are shown in Figure II. &lt;br /&gt;
&lt;br /&gt;
[[File:Figure_IId.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
*MolCluster will not generate cluster.pun, but it generates cluster_n.chm which is used to generate cluster.pun&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell/3.5.0 &lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
*include the conn and mxexcl after the mm_theory. mxexcl depends on the QM region, please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
*the submit script, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=Step-By-Step Example: Ionic Liquid Clusters=&lt;br /&gt;
&lt;br /&gt;
Our example system:&lt;br /&gt;
* 256 ion pairs of [C&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;im][MeSO&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;]&lt;br /&gt;
* In total, the production run is 20ns in length; 4 lots of 5ns employing the &amp;quot;restart&amp;quot; keyword in DL_Poly.  &lt;br /&gt;
* Our aim is to cut clusters from the last 5ns of the trajectory and create the input files for a ChemShell optimisation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1). Create a directory within the main MolCluster directory and put the &#039;&#039;&#039;HISTORY&#039;&#039;&#039; and &#039;&#039;&#039;FIELD&#039;&#039;&#039; files here. Our directory will be called: &#039;&#039;&#039;BMIM_MESO4_EXAMPLE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2). We now need to check to see if the HISTORY and FIELD files are in the correct format.&lt;br /&gt;
&lt;br /&gt;
*As the &#039;&#039;restart&#039;&#039; keyword has been employed, two lines are missing from the header of the HISTORY file, &#039;&#039;&#039;Figure 1a&#039;&#039;&#039; and &#039;&#039;&#039;1b&#039;&#039;&#039;. MolCluster does not like this. Therefore, we need to add in the two lines that it is expecting to see, &#039;&#039;&#039;Figure 1c&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MolCluster-HISTORY-header.png|frame|center|850px|&#039;&#039;&#039;Figure 1&#039;&#039;&#039;. Headers from selected HISTORY files &#039;&#039;&#039;(a)&#039;&#039;&#039; first 5ns of our simulation, without the use of the restart keyword, &#039;&#039;&#039;(b)&#039;&#039;&#039; last 5ns of our simulation with the restart keyword and &#039;&#039;&#039;(c)&#039;&#039;&#039; same HISTORY file as in (b), with missing lines added in.  ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The second problem we need to address is the atom labelling. The original atom labelling for [C&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;C&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;im][MeSO&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;], as used in the DL_Poly simulation, is shown in &#039;&#039;&#039;Figure 2a&#039;&#039;&#039;. Unfortunately, ChemShell has issues with this. To keep ChemShell happy, we have to change the atom labels in the HISTORY and FIELD files to the format &#039;&#039;elementsymbolnumber&#039;&#039; e.g. C2 rather than CR. Thankfully, this is quite easy to do using a script (&#039;&#039;&#039;sub_script.sh&#039;&#039;&#039;, see below) written by Vincent. Firstly, however, we need to decide upon the new atom labelling. This is shown in &#039;&#039;&#039;Figure 2b&#039;&#039;&#039; for our example system. &#039;&#039;&#039;sub_script.sh&#039;&#039;&#039; requires that we have defined the atom label mappings in a file called &#039;&#039;&#039;sub_map.txt&#039;&#039;&#039; (also shown below for this system).  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BMIM-MESO4-numbering.png|thumb|center|850px|&#039;&#039;&#039;Figure 2&#039;&#039;&#039;. Original atom labelling (as used in DL_POLY MD simulation) shown in &#039;&#039;&#039;(a)&#039;&#039;&#039; and new atom labelling (suitable for MolCluster) shown in &#039;&#039;&#039;(b)&#039;&#039;&#039;. Within &#039;&#039;&#039;(b)&#039;&#039;&#039;, atom labels that already had the correct format are in red.  ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sub_script.sh&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
while read line&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
#echo $line&lt;br /&gt;
&lt;br /&gt;
s1=$(echo $line | awk &#039;{ print $1 }&#039;)&lt;br /&gt;
&lt;br /&gt;
s2=$(echo $line | awk &#039;{ print $2 }&#039;)&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$s1 $s2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
gsed -i_bu2 &amp;quot;s|\&amp;lt;$s1\&amp;gt;|$s2|g&amp;quot; FIELD&lt;br /&gt;
&lt;br /&gt;
gsed -i_bu2 &amp;quot;s|\&amp;lt;$s1\&amp;gt;|$s2|g&amp;quot; HISTORY&lt;br /&gt;
&lt;br /&gt;
done &amp;lt; sub_map.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sub_map.txt&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;CR C3&lt;br /&gt;
&lt;br /&gt;
NA N1&lt;br /&gt;
&lt;br /&gt;
CW C4&lt;br /&gt;
&lt;br /&gt;
HCR H2&lt;br /&gt;
&lt;br /&gt;
HCW H3&lt;br /&gt;
&lt;br /&gt;
HC H4&lt;br /&gt;
&lt;br /&gt;
CT C6&lt;br /&gt;
&lt;br /&gt;
OS4 O4&lt;br /&gt;
&lt;br /&gt;
OC4 O5&lt;br /&gt;
&lt;br /&gt;
HS4 H5&lt;br /&gt;
&lt;br /&gt;
CS C5&lt;br /&gt;
&lt;br /&gt;
CS4 C7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Run &#039;&#039;&#039;./sub_script.sh&#039;&#039;&#039;&lt;br /&gt;
Note: this process may take a while, depending on the size of the file. Progress can be seen in the terminal (example shown in &#039;&#039;&#039;Figure 3&#039;&#039;&#039;), with each of the mappings specified in sub_map.txt considered in turn. The first few lines of the HISTORY file, before, and after, the relabelling can be seen in &#039;&#039;&#039;Figure 4&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:sub_map_mappings.png|thumb|center|800px|&#039;&#039;&#039;Figure 3&#039;&#039;&#039;. Example terminal output whilst running sub_script.sh ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:HISTORY-before-after.png|thumb|center|1000px|&#039;&#039;&#039;Figure 4&#039;&#039;&#039;. First few lines of the HISTORY file before &#039;&#039;&#039;(a)&#039;&#039;&#039; and after &#039;&#039;&#039;(b)&#039;&#039;&#039; the relabelling. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3). Now our files are in the correct format, we can run MolCluster: &#039;&#039;&#039;./MolCluster.py&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4). The first thing MolCluster does is to ask us to specify the directory containing the FIELD and HISTORY files. Our directory is called BMIM_MESO4_EXAMPLE. Once this has been specified, MolCluster will attempt to read the files and generate a summary of the system (from timestep 1 of the trajectory). This is shown in &#039;&#039;&#039;Figure 5&#039;&#039;&#039; for our system, and it can be seen that the information summarised by MolCluster is correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MC-read-files-annotate.png|thumb|center|800px|&#039;&#039;&#039;Figure 5&#039;&#039;&#039;. After specifying the directory for the FIELD and HISTORY files, MolCluster summarises the bulk system information.   ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5). MolCluster works out how many configurations in the HISTORY file (5000 in our example) and then asks us to specify the configurations we would like to cut a cluster from. In this case, we are going to select the &#039;&#039;&#039;[n]&#039;&#039;&#039; option (cut a cluster from every &#039;n&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt;&#039; configuration) and then specify n as an integer, in this case 1000 (i.e. n=1000, therefore cut a cluster every 1000&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt; time step), &#039;&#039;&#039;Figure 6&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:MC-specify-config.png|thumb|center|800px|&#039;&#039;&#039;Figure 6&#039;&#039;&#039;. Specifying the configurations to create clusters for. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6). We must now select how we would like to define the origin of the clusters to be cut. We are going to select option &#039;&#039;&#039;[AN]&#039;&#039;&#039; (atom number) and choose atom 1 to be the origin (for reference, in our case this is a C3 atom), &#039;&#039;&#039;Figure 7&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:origin-define.png|thumb|center|800px|&#039;&#039;&#039;Figure 7&#039;&#039;&#039;. Defining the cluster origin. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7). An estimate of the number of atoms in regions with varying radii (with respect to our defined origin) is provided by MolCluster. We need to cut a cluster large enough to incorporate a reasonable number of ion pairs (bearing in mind that our cation alone, in all trans form, is over 9 Angstroms in width), but not so large that the calculation is unfeasible. The ideal size is still being investigated, but for now, let us specify a cluster radius of 15 Angstroms, &#039;&#039;&#039;Figure 8&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster-radius-cut.png|thumb|center|900px|&#039;&#039;&#039;Figure 8&#039;&#039;&#039;. Choosing the cluster radius. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8). MolCluster now asks us to tell it which boundary condition to use when cutting the clusters (essentially this is just how MolCluster will decide whether or not to include a molecule in the cluster for molecules at the boundary). We will select &#039;&#039;&#039;[S]&#039;&#039;&#039; (soft boundary) here. We are then asked to specify if the cluster needs to be neutral. Obviously this is only really applicable to charged systems (with counter ions), such as ionic liquids . We will select yes here, &#039;&#039;&#039;[Y]&#039;&#039;&#039;, so that all our clusters have the same total charge, &#039;&#039;&#039;Figure 9&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:boundary-neutral.png|thumb|center|850px|&#039;&#039;&#039;Figure 9&#039;&#039;&#039;. Selecting boundary conditions. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9). We now need to decide on the output file type. As the ultimate aim is to run QM/MM optimisations of our clusters, we need to select the options that will generate the ChemShell input files: &#039;&#039;&#039;[C]&#039;&#039;&#039;, &#039;&#039;&#039;[Y]&#039;&#039;&#039;, &#039;&#039;&#039;Figure 10&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:output-filetype.png|thumb|center|850px| ]]&lt;br /&gt;
&lt;br /&gt;
10). A decision on how the QM region will be defined is now made. We are going to select &#039;&#039;&#039;[S]&#039;&#039;&#039; (spherical region). MolCluster then estimates the number of atoms in regions of varying radii with respect to our origin. Again, as with step 7, the optimum size has not yet been deduced. However, from previous tests, a QM radius of 7 Angstroms results in a manageable number of ions and is large enough to observe local structural features. Therefore, we shall specify a radius of 7 Angstroms in this example, &#039;&#039;&#039;Figure 11&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:QM-define.png|thumb|center|800px|&#039;&#039;&#039;Figure 11&#039;&#039;&#039;. QM region defined. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11). After defining the QM region, we then need to define the size of the active region. Again MolCluster helps us by estimating the number of atoms for a range of radii. Molecules not included in the active region, will be in the Frozen region. Fir this example, we shall define the specify active region to have a radius of 11 Angstroms, &#039;&#039;&#039;Figure 12&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Active-region .png|thumb|center|800px|&#039;&#039;&#039;Figure 12&#039;&#039;&#039;. Radius of active region specified. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12). Finally, we are asked to specify the output directory where all our files will be placed, and the basename for each of our clusters. In this example the output directory will be &#039;&#039;BMIM_MESO4_EXAMPLE/example&#039;&#039; and the base name will be &#039;&#039;cluster&#039;&#039;, &#039;&#039;&#039;Figure 13&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ouput-filenames.png|thumb|center|800px| ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13). MolCluster then sets about creating the clusters according to our specifications. The terminal output for the first cluster (cluster_1) is shown in &#039;&#039;&#039;Figure 14&#039;&#039;&#039;. After creating all the clusters, MolCluster will terminate.&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster_1.png|thumb|center|800px|&#039;&#039;&#039;Figure 14&#039;&#039;&#039;. Cluster_1 created. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14). Within the named output directory, each cluster has it&#039;s own subdirectory: cluster_1, cluster_2 etc. Within each of the subdirectories can be found the requested output files, &#039;&#039;&#039;Figure 15&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:directory-files.png|thumb|center|1100px|&#039;&#039;&#039;Figure 15&#039;&#039;&#039;. Output files. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15). The file called system_info.txt summarises key information relating to the cluster. This is shown in &#039;&#039;&#039;Figure 16&#039;&#039;&#039; for cluster 1. We can see that in total there are 72 molecules (36 cations and 36 anions) and that, as requested, the total charge of the system is zero.&lt;br /&gt;
&lt;br /&gt;
[[Image:system-info-cluster_1.png|thumb|center|800px|&#039;&#039;&#039;Figure 16&#039;&#039;&#039;. Total system information for cluster 1. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*To find out how many molecules in the QM and active regions, we can open the file called &#039;&#039;molcluster.log&#039;&#039; in the parent directory. This is a record of all the options we selected. By scrolling through we can find the information relating to cluster 1, &#039;&#039;&#039;Figure 17&#039;&#039;&#039;, and can see that there are 9 molecules in the QM region; 4 cations and 5 anions, resulting in a total charge of -1. There are 35 molecules in the active region. &lt;br /&gt;
&lt;br /&gt;
[[Image:molcluster-log-cluster1-annot.png|thumb|center|800px|&#039;&#039;&#039;Figure 17&#039;&#039;&#039;. Information about cluster 1, found in the output file molcluster.log. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Returning to the files in our subdirectory &#039;&#039;cluster_1&#039;&#039;, we can open &#039;&#039;cluster.xyz&#039;&#039; (or &#039;&#039;cluster_tiered.xyz&#039;&#039;) in VMD to visualise the cut cluster, &#039;&#039;&#039;Figure 18&#039;&#039;&#039; for our cluster 1. &#039;&#039;cluster_tiered.xyz&#039;&#039; is particularly useful, as it allows us to visualise each of the distinct regions. All of the atoms in the QM region are labelled with a 1 (active labelled with 2 and frozen labelled with 3), therefore we can choose to visualise the QM region only, &#039;&#039;&#039;Figure 19a&#039;&#039;&#039;. In &#039;&#039;&#039;Figure 19b&#039;&#039;&#039;, all the regions are shown in different colours.&lt;br /&gt;
&lt;br /&gt;
[[Image:full-cluster-1.png|thumb|center|800px|&#039;&#039;&#039;Figure 18&#039;&#039;&#039;. Cluster 1 visualised in VMD. ]]&lt;br /&gt;
&lt;br /&gt;
[[Image:cluster_tiered-edit.png|thumb|center|800px|&#039;&#039;&#039;Figure 19&#039;&#039;&#039;. &#039;&#039;&#039;(a)&#039;&#039;&#039; QM region visualised in VMD. &#039;&#039;&#039;(b)&#039;&#039;&#039; All regions, visualised in different colours. ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=Cutting Embedded Cluster=&lt;br /&gt;
*Embedded clusters are generated in two steps&lt;br /&gt;
*First a cluster of specific radius is generated using MolCLuster and Chemshell &lt;br /&gt;
1. Load MolClusterV2.3: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
2. Enter the directory containing the FIELD and HISTORY files as in the previous case&lt;br /&gt;
&lt;br /&gt;
3. Select option [4] to Generate ChemShell input for cutting embedded cluster&lt;br /&gt;
&lt;br /&gt;
4. then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
::*&#039;&#039;&#039;[n]&#039;&#039;&#039;: Cut a cluster every &amp;quot;nth&amp;quot; configuration. N.B: numbering starts from 1 (i.e. 1st timestep). Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::*&#039;&#039;&#039;[c]&#039;&#039;&#039;: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
After this you can choose the step at which the clusters are to be cut&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
::*&#039;&#039;&#039;[AN]&#039;&#039;&#039;: Atom number&lt;br /&gt;
::*&#039;&#039;&#039;[AT]&#039;&#039;&#039;: Atom type&lt;br /&gt;
::*&#039;&#039;&#039;[MN]&#039;&#039;&#039;: Molecule number&lt;br /&gt;
::*&#039;&#039;&#039;[MT]&#039;&#039;&#039;: Molecule type&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom coordinates&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
&lt;br /&gt;
6. Enter the radius (in Angstroms) of the embedded cluster(s) to be cut&lt;br /&gt;
&lt;br /&gt;
7. Enter the projected radius (in Angstroms) of the active regions ( this can be any value &amp;lt; embedded cluster radius)&lt;br /&gt;
&lt;br /&gt;
8. Then enter the charge margin - distance (in Angstroms) from the cluster boundary to the outer point charges [[File:Embedded2.png]]&lt;br /&gt;
&lt;br /&gt;
9. enter the number of added point charges. This is calculated from the charge density; (4 * density * density + 2)&lt;br /&gt;
&lt;br /&gt;
10. enter the symbol to represent point charge &#039;X&#039;&lt;br /&gt;
&lt;br /&gt;
11.Specify the output directory&lt;br /&gt;
&lt;br /&gt;
12. The output directory will haven inputs &#039;embedded_cluster_n&#039;, if chosen &#039;n&#039; in step 4 and an embedded_cluster_specs.obj file &lt;br /&gt;
&lt;br /&gt;
13.  Upload the directory to cx1 login shell&lt;br /&gt;
&lt;br /&gt;
14. In each of the &#039;embedded_cluster_n&#039; will contain a &#039;bulk_fragment.chm&#039; having the coordinates&lt;br /&gt;
&lt;br /&gt;
15. generate bulk.pun from bulk_fragment.chm by loading chemshell &#039;module load chemshell mpi&#039; and &#039;chemsh.x bulk_fragment.chm&#039;&lt;br /&gt;
&lt;br /&gt;
16. submit the job using the submit script  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt_embedded.sh link]&lt;br /&gt;
&lt;br /&gt;
*In the second step, clusters with different regions (QM and MM) with point charges outside are cut using MolCluster&lt;br /&gt;
&lt;br /&gt;
17. When the job is finished transfer the folder to the local machine with MolClusterV2.3&lt;br /&gt;
&lt;br /&gt;
18.  Load MolClusterV2.3: ./MolCluster.py&lt;br /&gt;
&lt;br /&gt;
19. Enter the same directory containing the FIELD and HISTORY files as given in the first step&lt;br /&gt;
&lt;br /&gt;
20. select option [5] to cut cluster and add point charges&lt;br /&gt;
&lt;br /&gt;
21. MolCluster will ask for the directory containing &#039;embedded_cluster_specs.obj&#039; of the embedded cluster(s) generated by ChemShell. (the folder containing ChemSehll output)&lt;br /&gt;
&lt;br /&gt;
22. Now the cluster specifications will be asked for. enter &#039;Y&#039; if you want to use the same radius for the regions as entered before or &#039;N&#039; if want to change the  radius&lt;br /&gt;
&lt;br /&gt;
23.In the next step MolCluster will ask for the type of QM region you want to specify&lt;br /&gt;
--&amp;gt;[S] Spherical region centred about the origin&lt;br /&gt;
--&amp;gt;[M] By number of total molcules closest to the origin&lt;br /&gt;
--&amp;gt;[A] By an upper limit of total atoms closest to the origin&lt;br /&gt;
--&amp;gt;[N] Specific number of molecules closest to the origin of each molecule type&lt;br /&gt;
--&amp;gt;[C] Custom region&lt;br /&gt;
--&amp;gt;[O] Spherical volumes centred about one or more user-defined origins&lt;br /&gt;
&lt;br /&gt;
24. Clusters will be cut at this point and saved to the folder having the &#039;embedded_cluster_specs.obj&#039;  file.&lt;br /&gt;
&lt;br /&gt;
::* open embedded_cluster_n, it will have the opt.chm, ff. dat and embedded_cluster_n.chm &lt;br /&gt;
&lt;br /&gt;
25. transfer the folder to cx1 &lt;br /&gt;
&lt;br /&gt;
26. load chemshell on cx1 and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module load chemshell mpi &lt;br /&gt;
  chemsh.x embedded_cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* embedded_cluster_n.pun will be generated&lt;br /&gt;
&lt;br /&gt;
27. open opt.chm and edit the first line &amp;quot;dl-find coords=embedded_cluster_n.pun\&amp;quot;. Also make changes in the opt.chm as described in  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell link] and run the optimization&lt;br /&gt;
&lt;br /&gt;
28. The submit script [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt_embedded2.sh link]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;OLD instructions that relate to MolCluster v1-7&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
1. Create a directory within the main MolCluster directory. Put the required HISTORY and FIELD files here.&lt;br /&gt;
&lt;br /&gt;
2. Load MolCluster: ./MolCluster.py &lt;br /&gt;
&lt;br /&gt;
3. Requests directory name to be specified (this is the location of the FIELD and HISTORY files).  After specifying, the code will attempt to read and give an overview of the system.&lt;br /&gt;
&lt;br /&gt;
4. First select option 2 to cut clusters, then you will be asked to identify the mechanism for choosing the clusters to cut, giving n or c: &lt;br /&gt;
::*&#039;&#039;&#039;[n]&#039;&#039;&#039;: Cut a cluster every &amp;quot;nth&amp;quot; configuration. N.B: numbering starts from 1 (i.e. 1st timestep). Therefore, if you request n=1000, clusters for configurations 1, 1001, 2001 etc. will be created.&lt;br /&gt;
::*&#039;&#039;&#039;[c]&#039;&#039;&#039;: Select a custom set of configurations i.e. you can specify exactly which configurations you want.&lt;br /&gt;
After this you can choose the step at which the clusters are to be cut&lt;br /&gt;
&lt;br /&gt;
5. Once the configurations have been extracted, you will be asked to choose how the origin will be defined in the clusters to be cut. Options are:&lt;br /&gt;
::*&#039;&#039;&#039;[AN]&#039;&#039;&#039;: Atom number&lt;br /&gt;
::*&#039;&#039;&#039;[AT]&#039;&#039;&#039;: Atom type&lt;br /&gt;
::*&#039;&#039;&#039;[MN]&#039;&#039;&#039;: Molecule number&lt;br /&gt;
::*&#039;&#039;&#039;[MT]&#039;&#039;&#039;: Molecule type&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom coordinates&lt;br /&gt;
&lt;br /&gt;
You will then see a number of options from which you can specify the exact atom number/type.&lt;br /&gt;
&lt;br /&gt;
6. MolCluster will estimate the number of atoms within a region, for a range of radii with respect to  your origin. Use this information to help you decide on the total radius (in Angstroms) of the clusters to be cut. You will be asked to specify this.&lt;br /&gt;
&lt;br /&gt;
7. MolCluster has two options for deciding which molecules to include/exclude at the boundary of the clusters being cut:&lt;br /&gt;
::*&#039;&#039;&#039;[H]&#039;&#039;&#039;: Hard boundary - all atoms of a molecule must be within the cutoff radius for the molecule to be included.&lt;br /&gt;
::*&#039;&#039;&#039;[S]&#039;&#039;&#039;: Soft boundary - if the centre of mass of a molecule is within the cutoff radius, the molecule will be included.&lt;br /&gt;
&lt;br /&gt;
8. Specify if the clusters are required to be neutral (&#039;&#039;&#039;Y/N&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
9. Decide on the output formats:&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Generates a ChemShell fragment input file, with accompanying .xyz co-ordinates file.&lt;br /&gt;
::*&#039;&#039;&#039;[X]&#039;&#039;&#039;: Generates the .xyz co-ordinates file only.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;[X]&#039;&#039;&#039; selected, the clusters will be cut, .xyz files generated and MolCluster will terminate.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;[C]&#039;&#039;&#039; selected, you will be asked if you would also like to generate the necessary ChemShell input files for a QM/MM optimisation (&#039;&#039;&#039;Y/N&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. If your answer to step 9 was &#039;&#039;&#039;[C]&#039;&#039;&#039; (generate a ChemShell fragment input) and &#039;&#039;&#039;Y&#039;&#039;&#039; (generate ChemShell input files for a QM/MM optimisation), you will then be asked to define the QM region. Available options are:&lt;br /&gt;
::*&#039;&#039;&#039;[S]&#039;&#039;&#039;: Spherical region (or threshold) centred about the defined origin (although not necessarily spherical??!!)&lt;br /&gt;
::::  If &#039;&#039;&#039;[S]&#039;&#039;&#039; selected, MolCluster will estimate the number of atoms in regions defined by a range of radii. Specify the QM radius. This must be specified (in Angstroms) and must, obviously, be less than, or equal to, the total radius of the cluster. Soft boundary conditions are implemented.&lt;br /&gt;
::*&#039;&#039;&#039;[M]&#039;&#039;&#039;: By number of molecules. Molecules closest to the origin will be included.&lt;br /&gt;
::*&#039;&#039;&#039;[A]&#039;&#039;&#039;: By an upper limit of atoms. Only whole molecules &amp;amp; those closest to the origin included.&lt;br /&gt;
::*&#039;&#039;&#039;[C]&#039;&#039;&#039;: Custom region i.e. can select molecules individually to be in the QM region&lt;br /&gt;
::*&#039;&#039;&#039;[O]&#039;&#039;&#039;: Spherical regions centred about one or more origins&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If options &#039;&#039;&#039;[C]&#039;&#039;&#039; or &#039;&#039;&#039;[O]&#039;&#039;&#039; selected, MolCluster will go straight to steps 11 and 12. Once the active region and the directory/filenames have been defined, MolCluster will then ask for the custom QM regions to be defined &#039;&#039;per&#039;&#039; cluster (see step 14).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: there can be a central active QM region (C), an active MM region (S&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;) and a frozen MM region (S&amp;lt;sub&amp;gt;F&amp;lt;/sub&amp;gt;) (Figure I), so far you have selected the maximum radius for the size of the cluster, now select the radius of the active MM smaller than this. &lt;br /&gt;
&lt;br /&gt;
[[File:Figure I.png]]&lt;br /&gt;
&lt;br /&gt;
11. MolCluster will estimate the number of atoms that would be in the active and frozen regions for a range of active radii. This information can be used to help decide upon an appropriate active radius, specified (in Angstroms) and must, be less than, or equal to, the total radius of the cluster. If all atoms are to be included, simply enter &amp;quot;ALL&amp;quot;. Soft boundary conditions are implemented.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Specify the output directory (i.e. where your final clusters and associated files will be saved) and specify the base-name for the output files (e.g. if you type &amp;quot;cluster&amp;quot; here, your clusters will be saved as cluster_1, cluster_2 etc.). NOTE: if you are going to use the trajectory_analysis scripts later the base filename must be &amp;quot;cluster&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13.  Unless in step 10 above you selected options &#039;&#039;&#039;[C&#039;&#039;&#039;] or &#039;&#039;&#039;[O]&#039;&#039;&#039; (in which case, see point 14), MolCluster will generate the specified clusters and then terminate. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14. If option &#039;&#039;&#039;[C]&#039;&#039;&#039; was selected in step 10, MolCluster will at this point list all the molecules in the first cluster, along with the distances to the origin. You will be asked to list all the molecules to be included in the QM region for this cluster. The same procedure is carried out for each cluster, before the clusters are generated and MolCluster terminates.&lt;br /&gt;
&lt;br /&gt;
If option &#039;&#039;&#039;[O]&#039;&#039;&#039; was selected in step 10, you will be asked to specify how many region centers you employed in setting up a non-spherical QM region.&lt;br /&gt;
You can choose the centre of the multiple regions via atom/molecule or use the current cluster origin.  A table is provided to help you make this choice identifying atom numbers and molecules and their distance from the cluster origin.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
::*To run ChemShell in Cartesian coordinate (MolCluster1.7):&lt;br /&gt;
&lt;br /&gt;
::*open opt.chm and delete the lines:&lt;br /&gt;
  coordinates=hdlc \&lt;br /&gt;
  residues=&lt;br /&gt;
::* then run &lt;br /&gt;
  module load chemshell/3.5.0 &lt;br /&gt;
  chemsh.x cluster_n.chm&lt;br /&gt;
*follow the same steps as in the previous case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=667148</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=667148"/>
		<updated>2018-02-21T11:48:32Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* cluster_1.chm */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 63 73 75 93 125 126 127 128 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=lanl2dz basisspec={ { lanl2dz * } } ecpspec={ { lanl2dz * } } &lt;br /&gt;
g98_mem=640000000 charge=-3 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=300\&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA &lt;br /&gt;
NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &lt;br /&gt;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 &lt;br /&gt;
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 &lt;br /&gt;
118 119 120 121 122 123 124 125 126 127 128 } } } \&lt;br /&gt;
      active_atoms = { 1 2 4 5 6 7 9 14 15 17 20 22 24 26 27 29 30 31 37 38 39 40 43 46 47 48 53 56 58 59 63 65 67 69 70 73 74 75 &lt;br /&gt;
78 79 83 85 87 89 91 92 93 94 96 97 99 100 103 105 106 107 108 110 111 113 117 118 120 121 122 125 126 127 128 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 800\&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters.&lt;br /&gt;
&lt;br /&gt;
An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vdw NA    NA            87.5812212    14750.8882&lt;br /&gt;
vdw NA    CL            522.364248    593182.84&lt;br /&gt;
vdw CL    CL            3106.1365     24120183.2&lt;br /&gt;
vdw LA    CL            1471.76193    6991022.6&lt;br /&gt;
vdw LA    NA            284.384407    228931.111&lt;br /&gt;
vdw LA    LA            667.42017     1856038.3&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the parameters for the ff.dat file some work needs to be completed!&lt;br /&gt;
&lt;br /&gt;
I took the E and sigma values from my MD simulation using the LJ potential and completed a couple of transformations to ensure the correct values were being used. First I had to change E and sigma to C6 and C12 values. &lt;br /&gt;
&lt;br /&gt;
To generate the C6 value needed the calculation needed is    4*E*sigma^6&lt;br /&gt;
To generate the C12 value needed the calculation needed is    4*E*sigma^12&lt;br /&gt;
&lt;br /&gt;
These values are in kJ but we need kCal here, so each value is then multiplied by 0.239006 to get values in kCal.&lt;br /&gt;
&lt;br /&gt;
To ensure this process was correct I took Asiwaryas FIELD file from the MD and completed the above calculations. I then compared the values I obtained and the values in the ff.dat she was using and found no difference.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.chm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=667147</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=667147"/>
		<updated>2018-02-21T11:48:05Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* ff.dat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 63 73 75 93 125 126 127 128 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=lanl2dz basisspec={ { lanl2dz * } } ecpspec={ { lanl2dz * } } &lt;br /&gt;
g98_mem=640000000 charge=-3 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=300\&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA &lt;br /&gt;
NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &lt;br /&gt;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 &lt;br /&gt;
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 &lt;br /&gt;
118 119 120 121 122 123 124 125 126 127 128 } } } \&lt;br /&gt;
      active_atoms = { 1 2 4 5 6 7 9 14 15 17 20 22 24 26 27 29 30 31 37 38 39 40 43 46 47 48 53 56 58 59 63 65 67 69 70 73 74 75 &lt;br /&gt;
78 79 83 85 87 89 91 92 93 94 96 97 99 100 103 105 106 107 108 110 111 113 117 118 120 121 122 125 126 127 128 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 800\&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters.&lt;br /&gt;
&lt;br /&gt;
An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vdw NA    NA            87.5812212    14750.8882&lt;br /&gt;
vdw NA    CL            522.364248    593182.84&lt;br /&gt;
vdw CL    CL            3106.1365     24120183.2&lt;br /&gt;
vdw LA    CL            1471.76193    6991022.6&lt;br /&gt;
vdw LA    NA            284.384407    228931.111&lt;br /&gt;
vdw LA    LA            667.42017     1856038.3&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To generate the parameters for the ff.dat file some work needs to be completed!&lt;br /&gt;
&lt;br /&gt;
I took the E and sigma values from my MD simulation using the LJ potential and completed a couple of transformations to ensure the correct values were being used. First I had to change E and sigma to C6 and C12 values. &lt;br /&gt;
&lt;br /&gt;
To generate the C6 value needed the calculation needed is    4*E*sigma^6&lt;br /&gt;
To generate the C12 value needed the calculation needed is    4*E*sigma^12&lt;br /&gt;
&lt;br /&gt;
These values are in kJ but we need kCal here, so each value is then multiplied by 0.239006 to get values in kCal.&lt;br /&gt;
&lt;br /&gt;
To ensure this process was correct I took Asiwaryas FIELD file from the MD and completed the above calculations. I then compared the values I obtained and the values in the ff.dat she was using and found no difference.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.hm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666431</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666431"/>
		<updated>2018-02-19T13:20:25Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.chm, ff.dat and cluster_1.chm files to the hpc.&lt;br /&gt;
::the cluster_1.chm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.chm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and ecp sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. When editing tcl files it is important to first make a copy of the file calling it XXXX_original this way no matter what happens you have a copy to start from again! The second important thing is to count the brackets, you have not got to the end of a section if more brackets have been opened than have been closed. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; LINK TO MY GAUSSIAN.TCL FILE &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666428</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666428"/>
		<updated>2018-02-19T13:01:36Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Step 2 - Editing input files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.chm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.chm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.chm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and ecp sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. When editing tcl files it is important to first make a copy of the file calling it XXXX_original this way no matter what happens you have a copy to start from again! The second important thing is to count the brackets, you have not got to the end of a section if more brackets have been opened than have been closed. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; LINK TO MY GAUSSIAN.TCL FILE &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666427</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=666427"/>
		<updated>2018-02-19T13:01:09Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.hm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.chm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.chm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and ecp sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. When editing tcl files it is important to first make a copy of the file calling it XXXX_original this way no matter what happens you have a copy to start from again! The second important thing is to count the brackets, you have not got to the end of a section if more brackets have been opened than have been closed. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; LINK TO MY GAUSSIAN.TCL FILE &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=650900</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=650900"/>
		<updated>2017-12-15T13:36:16Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia (Not Done)&lt;br /&gt;
| Ken  (Done)&lt;br /&gt;
| Becky (Not Done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sophie (Not Done)&lt;br /&gt;
| Lennart (Not Done)&lt;br /&gt;
| Oxana (Not Done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sanha (Not Done)&lt;br /&gt;
| Nerissa (Not Done)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
|11st&lt;br /&gt;
Ken Away&lt;br /&gt;
|12th &lt;br /&gt;
Ken Away&lt;br /&gt;
|13th&lt;br /&gt;
Ken Away&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|19th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|20th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|21st&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|22nd&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
&lt;br /&gt;
Ken Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
College Closed&lt;br /&gt;
|26th&lt;br /&gt;
College Closed&lt;br /&gt;
|27th&lt;br /&gt;
College Closed&lt;br /&gt;
|28th&lt;br /&gt;
College Closed&lt;br /&gt;
|29th&lt;br /&gt;
College Closed&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
|-&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Jan&lt;br /&gt;
College Closed&lt;br /&gt;
|2nd&lt;br /&gt;
College Open&lt;br /&gt;
&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
&lt;br /&gt;
Ken Away&lt;br /&gt;
|3rd&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
&lt;br /&gt;
Ken Away&lt;br /&gt;
|4th&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
&lt;br /&gt;
Ken Away&lt;br /&gt;
|5th&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Ken Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |7th&lt;br /&gt;
|-&lt;br /&gt;
|8th Jan&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
|11th&lt;br /&gt;
|12th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |13th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |14th&lt;br /&gt;
|-&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
|11th&lt;br /&gt;
|12th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |13th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |14th&lt;br /&gt;
|-&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
|17th&lt;br /&gt;
|18th&lt;br /&gt;
|19th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |20th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |21st&lt;br /&gt;
|-&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |27th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |28th&lt;br /&gt;
|-&lt;br /&gt;
|29th&lt;br /&gt;
|30th&lt;br /&gt;
|31st&lt;br /&gt;
 | style=&amp;quot;background: yellow;&amp;quot; |1st Feb&lt;br /&gt;
|2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
|-&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th&lt;br /&gt;
|-&lt;br /&gt;
|12th&lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
|-&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
|-&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
| style=&amp;quot;background: yellow;&amp;quot; |1st Mar&lt;br /&gt;
|2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
|-&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th&lt;br /&gt;
|-&lt;br /&gt;
|12th&lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
|-&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
|-&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th College Closed&lt;br /&gt;
|30th College Closed &lt;br /&gt;
Good Friday&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Apr&lt;br /&gt;
Easter Sunday&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=650890</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=650890"/>
		<updated>2017-12-15T13:32:28Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia &lt;br /&gt;
| Ken  (Not Done)&lt;br /&gt;
| Becky (Done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sophie &lt;br /&gt;
|Lennart&lt;br /&gt;
| &lt;br /&gt;
|-  &lt;br /&gt;
|  &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
|11st&lt;br /&gt;
Ken Away&lt;br /&gt;
|12th &lt;br /&gt;
Ken Away&lt;br /&gt;
|13th&lt;br /&gt;
Ken Away&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|19th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|20th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|21st&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|22nd&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
College Closed&lt;br /&gt;
|26th&lt;br /&gt;
College Closed&lt;br /&gt;
|27th&lt;br /&gt;
College Closed&lt;br /&gt;
|28th&lt;br /&gt;
College Closed&lt;br /&gt;
|29th&lt;br /&gt;
College Closed&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
|-&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Jan&lt;br /&gt;
College Closed&lt;br /&gt;
|2nd&lt;br /&gt;
College Open&lt;br /&gt;
&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|3rd&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|4th&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
&lt;br /&gt;
Oxana away&lt;br /&gt;
|5th&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Lennart in South Africa&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |7th&lt;br /&gt;
|-&lt;br /&gt;
|8th Jan&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
|11th&lt;br /&gt;
|12th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |13th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |14th&lt;br /&gt;
|-&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
|11th&lt;br /&gt;
|12th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |13th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |14th&lt;br /&gt;
|-&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
|17th&lt;br /&gt;
|18th&lt;br /&gt;
|19th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |20th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |21st&lt;br /&gt;
|-&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |27th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |28th&lt;br /&gt;
|-&lt;br /&gt;
|29th&lt;br /&gt;
|30th&lt;br /&gt;
|31st&lt;br /&gt;
 | style=&amp;quot;background: yellow;&amp;quot; |1st Feb&lt;br /&gt;
|2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
|-&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th&lt;br /&gt;
|-&lt;br /&gt;
|12th&lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
|-&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
|-&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
| style=&amp;quot;background: yellow;&amp;quot; |1st Mar&lt;br /&gt;
|2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
|-&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th&lt;br /&gt;
|-&lt;br /&gt;
|12th&lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
|-&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
|-&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th College Closed&lt;br /&gt;
|30th College Closed &lt;br /&gt;
Good Friday&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Apr&lt;br /&gt;
Easter Sunday&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation&amp;diff=639934</id>
		<title>Mod:Hunt Research Group/MoltenSaltSimulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation&amp;diff=639934"/>
		<updated>2017-11-17T10:57:29Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Checking the system is equilibrated */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setting up and running Molten Salt Molecular Dynamic Simulations==&lt;br /&gt;
&lt;br /&gt;
There are several pieces of information needed before staring any MD simulation&lt;br /&gt;
&lt;br /&gt;
#The density of the system at the final temperature as it is used to determine the size of the simulation box&lt;br /&gt;
#Parameters for the Field File&lt;br /&gt;
#Potential to use in the Field File&lt;br /&gt;
&lt;br /&gt;
Once the information is found, the input structure can be generated. &lt;br /&gt;
&lt;br /&gt;
MD simulations on Molten Salts should be ran from a crystal structure. I don&#039;t know where to find crystal structures&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Using Packmol to generate starting configurations&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
The density of the salt at the final temperature is needed to determine the box size for the simulation. The size of the simulation box can be determined by employing the following equation.&lt;br /&gt;
&lt;br /&gt;
Volume = molar mass / 0.6022 (density / number of molecules)&lt;br /&gt;
&lt;br /&gt;
Taking the cube root of the volume gives the length of the box size.&lt;br /&gt;
&lt;br /&gt;
For each molecule considered in the MD simulation an input structure needs to be generated. These files need to have a the name ‘FILENAME.xyz’. For chlorine the .xyz file looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1&lt;br /&gt;
cl&lt;br /&gt;
CL   0.00000    0.00000    0.00000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the input structure files are generated (one for each ion/molecule in the system) another file needs to be created which is the generation file that packmol uses. The generation file needs the size of the box, so it should have already been determined. The packmol generation file has to be named ‘FILENAME.inp’.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
#  Generation of NACL&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
tolerance 3.0&lt;br /&gt;
filetype xyz&lt;br /&gt;
output nacl_200ips.xyz&lt;br /&gt;
&lt;br /&gt;
structure na.xyz&lt;br /&gt;
number 200&lt;br /&gt;
inside box  -10.  -10.  -10. 10. 10. 10.&lt;br /&gt;
end structure&lt;br /&gt;
&lt;br /&gt;
structure cl.xyz&lt;br /&gt;
number 200&lt;br /&gt;
inside box -10. -10. -10.  10.  10.  10.&lt;br /&gt;
end structure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;b&amp;gt;tolerance&amp;lt;/b&amp;gt; is....&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Output nacl_200ips.xyz&amp;lt;/b&amp;gt; is the name of the file that is generated by packmol.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Structure na.xyz&amp;lt;/b&amp;gt; reads the molecular structure in the file na.xyz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Number 200&amp;lt;/b&amp;gt; packs 200 Na atoms (can be moleculaes) into the box.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Inside box -10. -10. -10. 10. 10. 10.&amp;lt;/b&amp;gt; is the size of the box that is generated. On a grid the axes are drawn from -10 to 10, meaning the length of each side of the box is 20 Å.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;End structure&amp;lt;/b&amp;gt; tells packmol that is everything that needs to be known for that particular molecule. The same process the occurs for the Cl ions.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;u&amp;gt;Running Packmol from the Terminal&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
This is a relatively simple step!&lt;br /&gt;
Start in the same directory as the .inp and the .xyz files. From here navigate to the directory where packmol is stored. On my Mac it is in Applications.&lt;br /&gt;
&lt;br /&gt;
../../../../Applications/packmol/packmol &amp;lt;FILENAME.inp&lt;br /&gt;
&lt;br /&gt;
doing this will run packmol and generate a file with the name specified in the .inp file (nacl_200ips.xyz).&lt;br /&gt;
&lt;br /&gt;
Its now necessary to move the newly generated .xyz file to the hpc, this can be done using the scope command in the terminal. Each MD simulation that is run needs to have its own directry, as all the files are called the same thing.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Crystal Structures&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Making the CONFIG file&amp;lt;/u&amp;gt;===&lt;br /&gt;
====&amp;lt;u&amp;gt;Converting Packmol to CONFIG&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
Once the file is on the HPC it is necessary to get the file into the correct format for dlpoly to read. To change the file format a perl conversion script, conv_xyz2conf.pl, needs to be used. &lt;br /&gt;
&lt;br /&gt;
Conversion script is shown below for an NaCl system&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
$name=$ARGV[0];&lt;br /&gt;
$i=1;&lt;br /&gt;
open(PDB,&amp;quot;${name}.xyz&amp;quot;);&lt;br /&gt;
while($line=&amp;lt;PDB&amp;gt;){&lt;br /&gt;
if($line=~/ NA /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
if($line=~/ CL /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
open(CFG,&amp;quot;&amp;gt;${name}.cfg&amp;quot;);&lt;br /&gt;
$header=&amp;quot;Converted from Packmol XYZ\n&amp;quot;;&lt;br /&gt;
print CFG $header;&lt;br /&gt;
printf CFG &amp;quot;%10d%10d%10d%20.6f\n&amp;quot;,0,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
&lt;br /&gt;
for($i=1;$i&amp;lt;=$#atomType;$i++){&lt;br /&gt;
printf CFG &amp;quot;%-8s%10d\n&amp;quot;,$atomType[$i],$i;&lt;br /&gt;
printf CFG &amp;quot;%20.6f%20.6f%20.6f\n&amp;quot;,$atomX[$i],$atomY[$i],$atomZ[$i];&lt;br /&gt;
}&lt;br /&gt;
close(CFG); close(PDB);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For each new system being considered the conversion script needs to be modified. Below is the section that needs to be modified.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if($line=~/ NA /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For each ion/molecule in the system this section needs to be in the conversion scirpt. So for NaCl there will be this section twice, once with NA on the first line, the second time with CL on the first line.&lt;br /&gt;
&lt;br /&gt;
To run the conversion script on the HPC simply type ‘perl conv_xyz2conf.pl FILENAME’, without .xyz.&lt;br /&gt;
&lt;br /&gt;
Once the conversion script has run a new file is generate, named FILENAME.cfg. Change this file name to CONFIG.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;u&amp;gt;CONFIG file&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The CONFIG file will look something like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Converted from Packmol XYZ&lt;br /&gt;
         0         0           0            0.000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
NA               1&lt;br /&gt;
           -2.187765            3.553628            0.510867&lt;br /&gt;
NA               2&lt;br /&gt;
            0.656191           -5.190594           -3.045550&lt;br /&gt;
NA               3&lt;br /&gt;
           -8.111144           -7.639522            5.169185&lt;br /&gt;
…&lt;br /&gt;
…&lt;br /&gt;
…&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is necessary to modify the top section of the CONFIG file. The CONFIG file is hugely format driven, changing a 0 to 20 means that its necessary to remove both a 0 and a space.&lt;br /&gt;
&lt;br /&gt;
The number 0 indicated that for each atom in the simulation there is 1 piece of information, its location. This number does change if additional information is known for each atom.&lt;br /&gt;
&lt;br /&gt;
The number 1 idicates cubic boundary conditions.&lt;br /&gt;
&lt;br /&gt;
The 400 indicates the number of ions in the simulation, 200 Na and 200 Cl.&lt;br /&gt;
&lt;br /&gt;
The final number 0.0000 is the energy of the system. It is 0 because it hasn&#039;t yet been determined.&lt;br /&gt;
&lt;br /&gt;
The next 3 lines of the file indicate the box size. The box size is 10% larger than that generated in packmol. This is done to ensure that all atoms are housed within the box, packmol can generate a system with the end of a molecule (although not considered here) hanging out the edge of the box. The size increase is continued as it is good practice to allow the system to expand if needed in the initial steps.&lt;br /&gt;
&lt;br /&gt;
After that are the atomic coordinates.&lt;br /&gt;
&lt;br /&gt;
Once the top few lines of the CONFIG file is modified it should look something like this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Converted from Packmol XYZ&lt;br /&gt;
         0         1         400            0.000000&lt;br /&gt;
     22.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000     22.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000     22.000000000000&lt;br /&gt;
NA               1&lt;br /&gt;
           -2.187765            3.553628            0.510867&lt;br /&gt;
NA               2&lt;br /&gt;
            0.656191           -5.190594           -3.045550&lt;br /&gt;
NA               3&lt;br /&gt;
           -8.111144           -7.639522            5.169185&lt;br /&gt;
…&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next steps involve setting up the files that are used by DL_poly. The CONFIG file has already been generated, the other 2 files that ned to be generated at the FIELD file and the CONTROL file. The FIELD file is normally made from values found in the literature. The CONTROL file tells DL_poly what to run.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;FIELD File&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
The first line in the FIELD file is the title, although I havent done it here, I’d recommend that the reference for the parameters used later in the file are inculded in the title line. This will allow you to look back at the work years later and easily find the paper.&lt;br /&gt;
&lt;br /&gt;
The second line is simply the &amp;lt;b&amp;gt;unit&amp;lt;/b&amp;gt; of the calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;molecules&amp;lt;/b&amp;gt; shows the number of molecules that are considered in the system, in NaCl there are 2 types, Na and Cl.&lt;br /&gt;
&lt;br /&gt;
The next section is about each molecule/atom in the simulation.&lt;br /&gt;
	The name of the atom (NA)&lt;br /&gt;
	The number of NA atoms in the simulation (200)&lt;br /&gt;
	The number of atoms in the molecule (1)&lt;br /&gt;
	Atomic mass and charge (22.98... 1.00... 1)&lt;br /&gt;
	Finish – end of section on Na&lt;br /&gt;
Same for Cl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;vdW3&amp;lt;/b&amp;gt; – the number of non-bonded interactions&lt;br /&gt;
&lt;br /&gt;
The next section contains the parameters and the potential (BHM) being employed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
900 NACL at 1200.00 K&lt;br /&gt;
units kJ&lt;br /&gt;
molecules 2&lt;br /&gt;
NA&lt;br /&gt;
nummols 475&lt;br /&gt;
atoms 1&lt;br /&gt;
NA     22.9898000000   1.00000 1&lt;br /&gt;
finish&lt;br /&gt;
CL&lt;br /&gt;
nummols 475&lt;br /&gt;
atoms 1&lt;br /&gt;
CL     35.4530000000  -1.00000 1&lt;br /&gt;
finish&lt;br /&gt;
vdW  3&lt;br /&gt;
CL    CL  BHM    0.26370    0.317    2.340    1.05    0.499&lt;br /&gt;
NA    NA  BHM    0.21096    0.317    2.755    6.99    8.68&lt;br /&gt;
CL    NA  BHM    0.15822    0.317    3.170    72.4    145.4&lt;br /&gt;
close&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;CONTROL File&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Probably need some explanation of what things are rather than sending people to the manual&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dlpoly run&lt;br /&gt;
temperature 600.00&lt;br /&gt;
ensemble nve&lt;br /&gt;
integrator leapfrog&lt;br /&gt;
steps 60000&lt;br /&gt;
equilibration 20000&lt;br /&gt;
scale 100&lt;br /&gt;
print 100&lt;br /&gt;
stack 100&lt;br /&gt;
stats 100&lt;br /&gt;
timestep 0.005&lt;br /&gt;
cutoff 15.000&lt;br /&gt;
delr 0.500&lt;br /&gt;
rvdw 7.600&lt;br /&gt;
ewald precision 1.0E-6&lt;br /&gt;
traj 1 10 0&lt;br /&gt;
job time 1000000.0&lt;br /&gt;
close time 1000.0&lt;br /&gt;
finish&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The information for the control file can be found in the DL_poly user manual. The version of Dlpoly being employed here is dlpoly 2.19.&lt;br /&gt;
&lt;br /&gt;
During equilibration a gross rescaling outside of the thermostat is set by scale, perhaps best not used, can be used with a restart to scale the velocities to the required temperature.&lt;br /&gt;
Only use restart in a production run, monitor the temperature/energy for no large jumps!&lt;br /&gt;
&lt;br /&gt;
cutoff is long range coloumb?? and rvdw is short range vow the cutoff, the manual is very unclear about what these are exactly, this is when long range vdw is set to zero, this generates a discontinuity as the function is cut-off, but maximum half box size, advantages to making this smaller has simulation runs faster, a minimum value 3-4 lj radius, but ideally this should be larger ... one should also set this to the same value as that for which the potential was developed!&lt;br /&gt;
&lt;br /&gt;
printing options for the states, storage requirements are an issue, files can get very large, so set these 100-200 to start with.  In equilibration you are just checking for equilibration for production.&lt;br /&gt;
more important is the traj command as this stores the trajectory and will influence the rdf evaluated by outside software, water use 10 but water is dynamic has low viscosity and moves very quickly for ionic liquids use larger number say 100 or larger.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Submitting a simulation&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
To submit jobs the submission script (Dlrun.sh) is employed. To run the script you need to be in the directory with the CONTROL, CONFIG, FIELD and Dlrun.sh files. Using the terminal simply type ‘qsub Dlrun.sh’ and enter.&lt;br /&gt;
&lt;br /&gt;
Submission script for DL_POLY&lt;br /&gt;
&lt;br /&gt;
Within the submission script it is possible to edit the number of processors and the amount of memory that is required.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Visualising the Output&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Right click on the XQuartz icon (back X with an orange ring around its centre) and open a terminal, via the applications tab. In this new terminal window sign into the HPC and navigate to the directory containing the simulation.&lt;br /&gt;
&lt;br /&gt;
Once in the directory type&lt;br /&gt;
	module load vmd&lt;br /&gt;
	vmd&lt;br /&gt;
&lt;br /&gt;
This will launch VMD via the HPC, so it isnt necessary to instal VMD on your local machine. Although it is always useful to have!&lt;br /&gt;
&lt;br /&gt;
Once VMD has opened select ‘New Molecule’ from the ‘File’ tab at the top left and browse to find the HISTORY file. Change the file type to ‘DLPOLY V2 History’. If you don’t select the correct file type the program will freeze and you’ll need to start the whole procedure again.&lt;br /&gt;
&lt;br /&gt;
Once the HISTORY file and correct file type are selected click load. On the black display screen there should be lots of small dots moving around. To change the size of the atoms to something that is more visible click on the ‘Graphics’ tab and select representations. Using the ‘Drawing Method’ drop down list select CPK.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Procedure&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; EACH SIMULATION NEEDS TO BE IN IT&#039;S OWN DIRECTORY&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The initial CONFIG file can be run at a temperature of about 300K. In the &#039;Getting started: generating a solvated structure and &amp;quot;relaxing&amp;quot; it&#039; section of the Wiki, it is advised that the first run should be at 5K. As we are dealing with molten salts that don&#039;t melt until several hundred degrees, we can start at a higher temperature. The first run employs the NVE ensemble and is relatively short 500 steps and ensures that the parameters being employed are sensible, if they are not then the simulation will run into problems.&lt;br /&gt;
&lt;br /&gt;
The next simulation run has been carried out above the melting temperature, 1200K, again employing the NVE ensemble. This run is longer at 60000 steps meaning 500ps with a tilmestep of 0.005. The starting CONFIG file has been generated from the REVCON file from the short run at 300K. The REVCON file needs to be renamed as CONFIG and the temperature in the CONTROL file changed.&lt;br /&gt;
&lt;br /&gt;
Next a simulation employing the NVT ensemble has been carried out, again at 1200K using the REVCON file from the 1200K NVE simulation. This enables the size of the box to change accounting for the different temperatures that are being used.&lt;br /&gt;
&lt;br /&gt;
Following the NPT simulation, the temperature is increased by 100K, to 1300K where an NVE simulation is carried out. The REVCON file from the 1200K NPT simulation is the new CONFIG file. &lt;br /&gt;
&lt;br /&gt;
Starting at 1200K an NVE simulation followed by an NPT simulation has been completed. The temperature is then increased by 100K and an NVE followed by NPT simulation is completed. The CONTROL file is not changed, other than the temperature and the type of ensemble. This is repeated until the temperature is well above the melting point of the salt.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Checking the system is equilibrated&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
There are 3 sections that need to be commonly checked for basic analysis that should be carried out at the end of each simulation.&lt;br /&gt;
&lt;br /&gt;
First thing to check is the energy of the system. Is The energy getting to a stable value before the ensemble freezes it in an NVE simulation?&lt;br /&gt;
The second thing is the temperature. This will always vary, but should remain within 10% (ideally 5%) of the set value in an NPT simulation.&lt;br /&gt;
The final thing to check in an NPT is the volume of the box. Has the volume changed and remains constant during the NPT simulation.&lt;br /&gt;
&lt;br /&gt;
To get the data points to plot the graphs needed for the above checks a very useful script has been written by Vincent. [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/statis2xmgr] To get the script simply copy it from the link and save it as a new file call statis2xmgr.&lt;br /&gt;
&lt;br /&gt;
to run the script simply type &#039;./statis2xmgr 1&#039; this will give the energy data points in a file called stat2dl. It is necessary to change the file name to something else as each time you run the script it calls the file the same thing, overwriting what was there before. Typing no number at all after the script name gives the options available, temperature is 2 and volume is 19. To plot the points generated using statis2xmgr you can use gun plot. gnu plot is very powerful and I only ever use it to plot a scatter graph, ensuring the temp / energy / volume is not misbehaving. To ue gnu plot type &#039;gnu plot&#039; in the HPC terminal, this will run gnuplot. then type &amp;quot;plot &#039;filename&#039; &amp;quot; (you need the apostrophes) and it will plot that data and a popup will appear.&lt;br /&gt;
&lt;br /&gt;
Calculating RDF&lt;br /&gt;
&lt;br /&gt;
The method I am currently using is the in-built RDF from DL_poly.&lt;br /&gt;
&lt;br /&gt;
In the CONTROL file simply type &#039;rdf&#039; and &#039;print rdf&#039; this will calculate and write a new file called RDFDAT. To bring the RDFDAT file back the submission script might need to be modified. &lt;br /&gt;
&lt;br /&gt;
Modifying Dlrun.sh&lt;br /&gt;
&lt;br /&gt;
simply include this line towards the end of the submission script (with all the other that look the same)&lt;br /&gt;
&lt;br /&gt;
cp $TMPDIR/RDFDAT $PBS_O_WORKDIR/&lt;br /&gt;
&lt;br /&gt;
This will copy the RDFDAT file back to your directory from the HPC where the calculation was completed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Points to consider====&lt;br /&gt;
&lt;br /&gt;
Sometimes when you have modified a file and resubmit the calculations it appears that the modifications that you have made have not occurred. This is because the HPC only reads the files every minute or so, it is worth modifying the files, waiting a minute or two then re-submitting the modified file.&lt;br /&gt;
&lt;br /&gt;
For the work I have carried out finding reliable parameters for the FIELD file caused some major issues. I expect most of the parameters being used come from literature. If this is the case it is worth trying to find multiple papers with the same parameters, or at east very similar. Many papers say they use parameters from paper X, but is worth trying to find two papers that state the parameters and not just reference them. I found that there are commonly problems in reporting the parameters in the correct units!&lt;br /&gt;
&lt;br /&gt;
With a KCl system voids kept forming in the simultation box. I thought this would be due to problems with the parameters being used in the FIELD file. &lt;br /&gt;
I tried several different sets of parameters, all to no avail.&lt;br /&gt;
I tried changing the density (within what I could find in literature) which didn’t work.&lt;br /&gt;
Eventually I tried taking a NaCl simulation that was working and changing the Na ions to K ions. It seems that the packmol structure generated, even for differeny box sizes (accounting for the different densities), didn’t change enough to allow the simulation to be succesful.&lt;br /&gt;
&lt;br /&gt;
To change the Na ions to K the following command was used.&lt;br /&gt;
‘sed –i ‘s/NA/K /’ FILENAME’&lt;br /&gt;
you should notice that there is a space after the K, this is because DL_poly is very format driven. Replacing ‘Na’ with ‘K’ only replaces 1 of the 2 characters being removed.&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation&amp;diff=639932</id>
		<title>Mod:Hunt Research Group/MoltenSaltSimulation</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation&amp;diff=639932"/>
		<updated>2017-11-17T10:56:25Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Checking the system is equilibrated */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setting up and running Molten Salt Molecular Dynamic Simulations==&lt;br /&gt;
&lt;br /&gt;
There are several pieces of information needed before staring any MD simulation&lt;br /&gt;
&lt;br /&gt;
#The density of the system at the final temperature as it is used to determine the size of the simulation box&lt;br /&gt;
#Parameters for the Field File&lt;br /&gt;
#Potential to use in the Field File&lt;br /&gt;
&lt;br /&gt;
Once the information is found, the input structure can be generated. &lt;br /&gt;
&lt;br /&gt;
MD simulations on Molten Salts should be ran from a crystal structure. I don&#039;t know where to find crystal structures&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Using Packmol to generate starting configurations&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
The density of the salt at the final temperature is needed to determine the box size for the simulation. The size of the simulation box can be determined by employing the following equation.&lt;br /&gt;
&lt;br /&gt;
Volume = molar mass / 0.6022 (density / number of molecules)&lt;br /&gt;
&lt;br /&gt;
Taking the cube root of the volume gives the length of the box size.&lt;br /&gt;
&lt;br /&gt;
For each molecule considered in the MD simulation an input structure needs to be generated. These files need to have a the name ‘FILENAME.xyz’. For chlorine the .xyz file looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1&lt;br /&gt;
cl&lt;br /&gt;
CL   0.00000    0.00000    0.00000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the input structure files are generated (one for each ion/molecule in the system) another file needs to be created which is the generation file that packmol uses. The generation file needs the size of the box, so it should have already been determined. The packmol generation file has to be named ‘FILENAME.inp’.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
#  Generation of NACL&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
tolerance 3.0&lt;br /&gt;
filetype xyz&lt;br /&gt;
output nacl_200ips.xyz&lt;br /&gt;
&lt;br /&gt;
structure na.xyz&lt;br /&gt;
number 200&lt;br /&gt;
inside box  -10.  -10.  -10. 10. 10. 10.&lt;br /&gt;
end structure&lt;br /&gt;
&lt;br /&gt;
structure cl.xyz&lt;br /&gt;
number 200&lt;br /&gt;
inside box -10. -10. -10.  10.  10.  10.&lt;br /&gt;
end structure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;b&amp;gt;tolerance&amp;lt;/b&amp;gt; is....&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Output nacl_200ips.xyz&amp;lt;/b&amp;gt; is the name of the file that is generated by packmol.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Structure na.xyz&amp;lt;/b&amp;gt; reads the molecular structure in the file na.xyz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Number 200&amp;lt;/b&amp;gt; packs 200 Na atoms (can be moleculaes) into the box.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Inside box -10. -10. -10. 10. 10. 10.&amp;lt;/b&amp;gt; is the size of the box that is generated. On a grid the axes are drawn from -10 to 10, meaning the length of each side of the box is 20 Å.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;End structure&amp;lt;/b&amp;gt; tells packmol that is everything that needs to be known for that particular molecule. The same process the occurs for the Cl ions.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;u&amp;gt;Running Packmol from the Terminal&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
This is a relatively simple step!&lt;br /&gt;
Start in the same directory as the .inp and the .xyz files. From here navigate to the directory where packmol is stored. On my Mac it is in Applications.&lt;br /&gt;
&lt;br /&gt;
../../../../Applications/packmol/packmol &amp;lt;FILENAME.inp&lt;br /&gt;
&lt;br /&gt;
doing this will run packmol and generate a file with the name specified in the .inp file (nacl_200ips.xyz).&lt;br /&gt;
&lt;br /&gt;
Its now necessary to move the newly generated .xyz file to the hpc, this can be done using the scope command in the terminal. Each MD simulation that is run needs to have its own directry, as all the files are called the same thing.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Crystal Structures&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Making the CONFIG file&amp;lt;/u&amp;gt;===&lt;br /&gt;
====&amp;lt;u&amp;gt;Converting Packmol to CONFIG&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
Once the file is on the HPC it is necessary to get the file into the correct format for dlpoly to read. To change the file format a perl conversion script, conv_xyz2conf.pl, needs to be used. &lt;br /&gt;
&lt;br /&gt;
Conversion script is shown below for an NaCl system&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
$name=$ARGV[0];&lt;br /&gt;
$i=1;&lt;br /&gt;
open(PDB,&amp;quot;${name}.xyz&amp;quot;);&lt;br /&gt;
while($line=&amp;lt;PDB&amp;gt;){&lt;br /&gt;
if($line=~/ NA /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
if($line=~/ CL /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
open(CFG,&amp;quot;&amp;gt;${name}.cfg&amp;quot;);&lt;br /&gt;
$header=&amp;quot;Converted from Packmol XYZ\n&amp;quot;;&lt;br /&gt;
print CFG $header;&lt;br /&gt;
printf CFG &amp;quot;%10d%10d%10d%20.6f\n&amp;quot;,0,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
printf CFG &amp;quot;%20.12f%20.12f%20.12f\n&amp;quot;,0,0,0;&lt;br /&gt;
&lt;br /&gt;
for($i=1;$i&amp;lt;=$#atomType;$i++){&lt;br /&gt;
printf CFG &amp;quot;%-8s%10d\n&amp;quot;,$atomType[$i],$i;&lt;br /&gt;
printf CFG &amp;quot;%20.6f%20.6f%20.6f\n&amp;quot;,$atomX[$i],$atomY[$i],$atomZ[$i];&lt;br /&gt;
}&lt;br /&gt;
close(CFG); close(PDB);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For each new system being considered the conversion script needs to be modified. Below is the section that needs to be modified.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if($line=~/ NA /){&lt;br /&gt;
chomp($line);&lt;br /&gt;
@data=split(/ +/,$line);&lt;br /&gt;
$atomType[$i]=$data[1];$atomX[$i]=$data[2];$atomY[$i]=$data[3];$atomZ[$i]=$data[4];&lt;br /&gt;
$i++;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For each ion/molecule in the system this section needs to be in the conversion scirpt. So for NaCl there will be this section twice, once with NA on the first line, the second time with CL on the first line.&lt;br /&gt;
&lt;br /&gt;
To run the conversion script on the HPC simply type ‘perl conv_xyz2conf.pl FILENAME’, without .xyz.&lt;br /&gt;
&lt;br /&gt;
Once the conversion script has run a new file is generate, named FILENAME.cfg. Change this file name to CONFIG.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;u&amp;gt;CONFIG file&amp;lt;/u&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The CONFIG file will look something like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Converted from Packmol XYZ&lt;br /&gt;
         0         0           0            0.000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
NA               1&lt;br /&gt;
           -2.187765            3.553628            0.510867&lt;br /&gt;
NA               2&lt;br /&gt;
            0.656191           -5.190594           -3.045550&lt;br /&gt;
NA               3&lt;br /&gt;
           -8.111144           -7.639522            5.169185&lt;br /&gt;
…&lt;br /&gt;
…&lt;br /&gt;
…&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is necessary to modify the top section of the CONFIG file. The CONFIG file is hugely format driven, changing a 0 to 20 means that its necessary to remove both a 0 and a space.&lt;br /&gt;
&lt;br /&gt;
The number 0 indicated that for each atom in the simulation there is 1 piece of information, its location. This number does change if additional information is known for each atom.&lt;br /&gt;
&lt;br /&gt;
The number 1 idicates cubic boundary conditions.&lt;br /&gt;
&lt;br /&gt;
The 400 indicates the number of ions in the simulation, 200 Na and 200 Cl.&lt;br /&gt;
&lt;br /&gt;
The final number 0.0000 is the energy of the system. It is 0 because it hasn&#039;t yet been determined.&lt;br /&gt;
&lt;br /&gt;
The next 3 lines of the file indicate the box size. The box size is 10% larger than that generated in packmol. This is done to ensure that all atoms are housed within the box, packmol can generate a system with the end of a molecule (although not considered here) hanging out the edge of the box. The size increase is continued as it is good practice to allow the system to expand if needed in the initial steps.&lt;br /&gt;
&lt;br /&gt;
After that are the atomic coordinates.&lt;br /&gt;
&lt;br /&gt;
Once the top few lines of the CONFIG file is modified it should look something like this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Converted from Packmol XYZ&lt;br /&gt;
         0         1         400            0.000000&lt;br /&gt;
     22.000000000000      0.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000     22.000000000000      0.000000000000&lt;br /&gt;
      0.000000000000      0.000000000000     22.000000000000&lt;br /&gt;
NA               1&lt;br /&gt;
           -2.187765            3.553628            0.510867&lt;br /&gt;
NA               2&lt;br /&gt;
            0.656191           -5.190594           -3.045550&lt;br /&gt;
NA               3&lt;br /&gt;
           -8.111144           -7.639522            5.169185&lt;br /&gt;
…&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next steps involve setting up the files that are used by DL_poly. The CONFIG file has already been generated, the other 2 files that ned to be generated at the FIELD file and the CONTROL file. The FIELD file is normally made from values found in the literature. The CONTROL file tells DL_poly what to run.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;FIELD File&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
The first line in the FIELD file is the title, although I havent done it here, I’d recommend that the reference for the parameters used later in the file are inculded in the title line. This will allow you to look back at the work years later and easily find the paper.&lt;br /&gt;
&lt;br /&gt;
The second line is simply the &amp;lt;b&amp;gt;unit&amp;lt;/b&amp;gt; of the calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;molecules&amp;lt;/b&amp;gt; shows the number of molecules that are considered in the system, in NaCl there are 2 types, Na and Cl.&lt;br /&gt;
&lt;br /&gt;
The next section is about each molecule/atom in the simulation.&lt;br /&gt;
	The name of the atom (NA)&lt;br /&gt;
	The number of NA atoms in the simulation (200)&lt;br /&gt;
	The number of atoms in the molecule (1)&lt;br /&gt;
	Atomic mass and charge (22.98... 1.00... 1)&lt;br /&gt;
	Finish – end of section on Na&lt;br /&gt;
Same for Cl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;vdW3&amp;lt;/b&amp;gt; – the number of non-bonded interactions&lt;br /&gt;
&lt;br /&gt;
The next section contains the parameters and the potential (BHM) being employed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
900 NACL at 1200.00 K&lt;br /&gt;
units kJ&lt;br /&gt;
molecules 2&lt;br /&gt;
NA&lt;br /&gt;
nummols 475&lt;br /&gt;
atoms 1&lt;br /&gt;
NA     22.9898000000   1.00000 1&lt;br /&gt;
finish&lt;br /&gt;
CL&lt;br /&gt;
nummols 475&lt;br /&gt;
atoms 1&lt;br /&gt;
CL     35.4530000000  -1.00000 1&lt;br /&gt;
finish&lt;br /&gt;
vdW  3&lt;br /&gt;
CL    CL  BHM    0.26370    0.317    2.340    1.05    0.499&lt;br /&gt;
NA    NA  BHM    0.21096    0.317    2.755    6.99    8.68&lt;br /&gt;
CL    NA  BHM    0.15822    0.317    3.170    72.4    145.4&lt;br /&gt;
close&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;CONTROL File&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Probably need some explanation of what things are rather than sending people to the manual&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dlpoly run&lt;br /&gt;
temperature 600.00&lt;br /&gt;
ensemble nve&lt;br /&gt;
integrator leapfrog&lt;br /&gt;
steps 60000&lt;br /&gt;
equilibration 20000&lt;br /&gt;
scale 100&lt;br /&gt;
print 100&lt;br /&gt;
stack 100&lt;br /&gt;
stats 100&lt;br /&gt;
timestep 0.005&lt;br /&gt;
cutoff 15.000&lt;br /&gt;
delr 0.500&lt;br /&gt;
rvdw 7.600&lt;br /&gt;
ewald precision 1.0E-6&lt;br /&gt;
traj 1 10 0&lt;br /&gt;
job time 1000000.0&lt;br /&gt;
close time 1000.0&lt;br /&gt;
finish&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The information for the control file can be found in the DL_poly user manual. The version of Dlpoly being employed here is dlpoly 2.19.&lt;br /&gt;
&lt;br /&gt;
During equilibration a gross rescaling outside of the thermostat is set by scale, perhaps best not used, can be used with a restart to scale the velocities to the required temperature.&lt;br /&gt;
Only use restart in a production run, monitor the temperature/energy for no large jumps!&lt;br /&gt;
&lt;br /&gt;
cutoff is long range coloumb?? and rvdw is short range vow the cutoff, the manual is very unclear about what these are exactly, this is when long range vdw is set to zero, this generates a discontinuity as the function is cut-off, but maximum half box size, advantages to making this smaller has simulation runs faster, a minimum value 3-4 lj radius, but ideally this should be larger ... one should also set this to the same value as that for which the potential was developed!&lt;br /&gt;
&lt;br /&gt;
printing options for the states, storage requirements are an issue, files can get very large, so set these 100-200 to start with.  In equilibration you are just checking for equilibration for production.&lt;br /&gt;
more important is the traj command as this stores the trajectory and will influence the rdf evaluated by outside software, water use 10 but water is dynamic has low viscosity and moves very quickly for ionic liquids use larger number say 100 or larger.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Submitting a simulation&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
To submit jobs the submission script (Dlrun.sh) is employed. To run the script you need to be in the directory with the CONTROL, CONFIG, FIELD and Dlrun.sh files. Using the terminal simply type ‘qsub Dlrun.sh’ and enter.&lt;br /&gt;
&lt;br /&gt;
Submission script for DL_POLY&lt;br /&gt;
&lt;br /&gt;
Within the submission script it is possible to edit the number of processors and the amount of memory that is required.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Visualising the Output&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Right click on the XQuartz icon (back X with an orange ring around its centre) and open a terminal, via the applications tab. In this new terminal window sign into the HPC and navigate to the directory containing the simulation.&lt;br /&gt;
&lt;br /&gt;
Once in the directory type&lt;br /&gt;
	module load vmd&lt;br /&gt;
	vmd&lt;br /&gt;
&lt;br /&gt;
This will launch VMD via the HPC, so it isnt necessary to instal VMD on your local machine. Although it is always useful to have!&lt;br /&gt;
&lt;br /&gt;
Once VMD has opened select ‘New Molecule’ from the ‘File’ tab at the top left and browse to find the HISTORY file. Change the file type to ‘DLPOLY V2 History’. If you don’t select the correct file type the program will freeze and you’ll need to start the whole procedure again.&lt;br /&gt;
&lt;br /&gt;
Once the HISTORY file and correct file type are selected click load. On the black display screen there should be lots of small dots moving around. To change the size of the atoms to something that is more visible click on the ‘Graphics’ tab and select representations. Using the ‘Drawing Method’ drop down list select CPK.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Procedure&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; EACH SIMULATION NEEDS TO BE IN IT&#039;S OWN DIRECTORY&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The initial CONFIG file can be run at a temperature of about 300K. In the &#039;Getting started: generating a solvated structure and &amp;quot;relaxing&amp;quot; it&#039; section of the Wiki, it is advised that the first run should be at 5K. As we are dealing with molten salts that don&#039;t melt until several hundred degrees, we can start at a higher temperature. The first run employs the NVE ensemble and is relatively short 500 steps and ensures that the parameters being employed are sensible, if they are not then the simulation will run into problems.&lt;br /&gt;
&lt;br /&gt;
The next simulation run has been carried out above the melting temperature, 1200K, again employing the NVE ensemble. This run is longer at 60000 steps meaning 500ps with a tilmestep of 0.005. The starting CONFIG file has been generated from the REVCON file from the short run at 300K. The REVCON file needs to be renamed as CONFIG and the temperature in the CONTROL file changed.&lt;br /&gt;
&lt;br /&gt;
Next a simulation employing the NVT ensemble has been carried out, again at 1200K using the REVCON file from the 1200K NVE simulation. This enables the size of the box to change accounting for the different temperatures that are being used.&lt;br /&gt;
&lt;br /&gt;
Following the NPT simulation, the temperature is increased by 100K, to 1300K where an NVE simulation is carried out. The REVCON file from the 1200K NPT simulation is the new CONFIG file. &lt;br /&gt;
&lt;br /&gt;
Starting at 1200K an NVE simulation followed by an NPT simulation has been completed. The temperature is then increased by 100K and an NVE followed by NPT simulation is completed. The CONTROL file is not changed, other than the temperature and the type of ensemble. This is repeated until the temperature is well above the melting point of the salt.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;u&amp;gt;Checking the system is equilibrated&amp;lt;/u&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
There are 3 sections that need to be commonly checked for basic analysis that should be carried out at the end of each simulation.&lt;br /&gt;
&lt;br /&gt;
First thing to check is the energy of the system. Is The energy getting to a stable value before the ensemble freezes it in an NVE simulation?&lt;br /&gt;
The second thing is the temperature. This will always vary, but should remain within 10% (ideally 5%) of the set value in an NPT simulation.&lt;br /&gt;
The final thing to check in an NPT is the volume of the box. Has the volume changed and remains constant during the NPT simulation.&lt;br /&gt;
&lt;br /&gt;
To get the data points to plot the graphs needed for the above checks a very useful script has been written by Vincent. [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/statis2xmgr] To get the script simply copy it from the link and save it as a new file call statis2xmgr.&lt;br /&gt;
&lt;br /&gt;
to run the script simply type &#039;./statis2xmgr 1&#039; this will give the energy data points in a file called stat2dl. It is necessary to change the file name to something else as each time you run the script it calls the file the same thing, overwriting what was there before. Typing no number at all after the script name gives the options available, temperature is 2 and volume is 19. To plot the points generated using statis2xmgr you can use gun plot. gnu plot is very powerful and I only ever use it to plot a scatter graph, ensuring the temp / energy / volume is not misbehaving. To ue gnu plot type &#039;gnu plot&#039; in the HPC terminal, this will run gnuplot. then type plot &#039;filename&#039; and it will plot that data and a popup will appear.&lt;br /&gt;
&lt;br /&gt;
Calculating RDF&lt;br /&gt;
&lt;br /&gt;
The method I am currently using is the in-built RDF from DL_poly.&lt;br /&gt;
&lt;br /&gt;
In the CONTROL file simply type &#039;rdf&#039; and &#039;print rdf&#039; this will calculate and write a new file called RDFDAT. To bring the RDFDAT file back the submission script might need to be modified. &lt;br /&gt;
&lt;br /&gt;
Modifying Dlrun.sh&lt;br /&gt;
&lt;br /&gt;
simply include this line towards the end of the submission script (with all the other that look the same)&lt;br /&gt;
&lt;br /&gt;
cp $TMPDIR/RDFDAT $PBS_O_WORKDIR/&lt;br /&gt;
&lt;br /&gt;
This will copy the RDFDAT file back to your directory from the HPC where the calculation was completed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Points to consider====&lt;br /&gt;
&lt;br /&gt;
Sometimes when you have modified a file and resubmit the calculations it appears that the modifications that you have made have not occurred. This is because the HPC only reads the files every minute or so, it is worth modifying the files, waiting a minute or two then re-submitting the modified file.&lt;br /&gt;
&lt;br /&gt;
For the work I have carried out finding reliable parameters for the FIELD file caused some major issues. I expect most of the parameters being used come from literature. If this is the case it is worth trying to find multiple papers with the same parameters, or at east very similar. Many papers say they use parameters from paper X, but is worth trying to find two papers that state the parameters and not just reference them. I found that there are commonly problems in reporting the parameters in the correct units!&lt;br /&gt;
&lt;br /&gt;
With a KCl system voids kept forming in the simultation box. I thought this would be due to problems with the parameters being used in the FIELD file. &lt;br /&gt;
I tried several different sets of parameters, all to no avail.&lt;br /&gt;
I tried changing the density (within what I could find in literature) which didn’t work.&lt;br /&gt;
Eventually I tried taking a NaCl simulation that was working and changing the Na ions to K ions. It seems that the packmol structure generated, even for differeny box sizes (accounting for the different densities), didn’t change enough to allow the simulation to be succesful.&lt;br /&gt;
&lt;br /&gt;
To change the Na ions to K the following command was used.&lt;br /&gt;
‘sed –i ‘s/NA/K /’ FILENAME’&lt;br /&gt;
you should notice that there is a space after the K, this is because DL_poly is very format driven. Replacing ‘Na’ with ‘K’ only replaces 1 of the 2 characters being removed.&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=639102</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=639102"/>
		<updated>2017-11-13T17:00:52Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia &lt;br /&gt;
| Ken  (Not Done)&lt;br /&gt;
| Becky (Done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sophie &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-  &lt;br /&gt;
|  &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
 |16th Oct&lt;br /&gt;
 |17th&lt;br /&gt;
 |18th&lt;br /&gt;
 |19th&lt;br /&gt;
 |20th&lt;br /&gt;
Ken Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |21st&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |22nd&lt;br /&gt;
|-&lt;br /&gt;
|23rd Tricia in Spain&lt;br /&gt;
|24th Tricia in Spain&lt;br /&gt;
|25th Tricia in Spain&lt;br /&gt;
|26th Tricia in Spain&lt;br /&gt;
|27th Tricia in Spain &amp;lt;br&amp;gt;Oxana away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |28th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |29th&lt;br /&gt;
|-&lt;br /&gt;
|30th&lt;br /&gt;
|31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Nov&lt;br /&gt;
|2nd&lt;br /&gt;
|3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |5th&lt;br /&gt;
|-&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
|10th Tricia at Nottingham&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |12th&lt;br /&gt;
|-&lt;br /&gt;
|13th&lt;br /&gt;
|14th &lt;br /&gt;
|15th  &lt;br /&gt;
|16th &lt;br /&gt;
|17th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |19th&lt;br /&gt;
|-&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |26th&lt;br /&gt;
|-&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th&lt;br /&gt;
|30th&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Dec&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
|-&lt;br /&gt;
|4th Tricia in Germany&lt;br /&gt;
|5th Tricia in Germany&lt;br /&gt;
|6th Tricia in Germany&lt;br /&gt;
|7th Tricia in Germany&lt;br /&gt;
|8th Tricia in Germany&lt;br /&gt;
Ken Away &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11st&lt;br /&gt;
Ken Away&lt;br /&gt;
|12th &lt;br /&gt;
Ken Away&lt;br /&gt;
|13th&lt;br /&gt;
Ken Away&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
Sophie Away&lt;br /&gt;
|19th&lt;br /&gt;
Sophie Away&lt;br /&gt;
|20th&lt;br /&gt;
Sophie Away&lt;br /&gt;
|21st&lt;br /&gt;
Sophie Away&lt;br /&gt;
|22nd&lt;br /&gt;
Sophie Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
College Closed&lt;br /&gt;
|26th&lt;br /&gt;
College Closed&lt;br /&gt;
|27th&lt;br /&gt;
College Closed&lt;br /&gt;
|28th&lt;br /&gt;
College Closed&lt;br /&gt;
|29th&lt;br /&gt;
College Closed&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
|-&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Jan&lt;br /&gt;
College Closed&lt;br /&gt;
|2nd&lt;br /&gt;
College Open&lt;br /&gt;
|3rd&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |7th&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630820</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630820"/>
		<updated>2017-10-14T11:52:04Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia (Not Done) &lt;br /&gt;
| Ken  (Not Done)&lt;br /&gt;
| Becky (Not done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sophie (Not done)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-  &lt;br /&gt;
|  &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
 |16th Oct&lt;br /&gt;
 |17th&lt;br /&gt;
 |18th&lt;br /&gt;
 |19th&lt;br /&gt;
 |20th&lt;br /&gt;
Ken Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |21st&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |22nd&lt;br /&gt;
|-&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |28th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |29th&lt;br /&gt;
|-&lt;br /&gt;
|30th&lt;br /&gt;
|31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Nov&lt;br /&gt;
|2nd&lt;br /&gt;
|3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |5th&lt;br /&gt;
|-&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |12th&lt;br /&gt;
|-&lt;br /&gt;
|13th&lt;br /&gt;
|14th &lt;br /&gt;
|15th  &lt;br /&gt;
|16th &lt;br /&gt;
|17th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |19th&lt;br /&gt;
|-&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |26th&lt;br /&gt;
|-&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th&lt;br /&gt;
|30th&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Dec&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
|-&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
Ken Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11st&lt;br /&gt;
Ken Away&lt;br /&gt;
|12th &lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
College Closed&lt;br /&gt;
|26th&lt;br /&gt;
College Closed&lt;br /&gt;
|27th&lt;br /&gt;
College Closed&lt;br /&gt;
|28th&lt;br /&gt;
College Closed&lt;br /&gt;
|29th&lt;br /&gt;
College Closed&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
|-&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Jan&lt;br /&gt;
College Closed&lt;br /&gt;
|2nd&lt;br /&gt;
College Open&lt;br /&gt;
|3rd&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |7th&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630782</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630782"/>
		<updated>2017-10-11T15:37:27Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia (Not Done) &lt;br /&gt;
| Ken  (Not Done)&lt;br /&gt;
| Becky (Not done)&lt;br /&gt;
|-  &lt;br /&gt;
| Sophie (Not done)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-  &lt;br /&gt;
|  &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
 |16th Oct&lt;br /&gt;
 |17th&lt;br /&gt;
 |18th&lt;br /&gt;
 |19th&lt;br /&gt;
 |20th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |21st&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |22nd&lt;br /&gt;
|-&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |28th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |29th&lt;br /&gt;
|-&lt;br /&gt;
|30th&lt;br /&gt;
|31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Nov&lt;br /&gt;
|2nd&lt;br /&gt;
|3rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |4th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |5th&lt;br /&gt;
|-&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
|9th&lt;br /&gt;
|10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |12th&lt;br /&gt;
|-&lt;br /&gt;
|13th&lt;br /&gt;
|14th &lt;br /&gt;
|15th  &lt;br /&gt;
|16th &lt;br /&gt;
|17th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |19th&lt;br /&gt;
|-&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
|24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |26th&lt;br /&gt;
|-&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th&lt;br /&gt;
|30th&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Dec&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
|-&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11st&lt;br /&gt;
|12th &lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
College Closed&lt;br /&gt;
|26th&lt;br /&gt;
College Closed&lt;br /&gt;
|27th&lt;br /&gt;
College Closed&lt;br /&gt;
|28th&lt;br /&gt;
College Closed&lt;br /&gt;
|29th&lt;br /&gt;
College Closed&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |31st&lt;br /&gt;
|-&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Jan&lt;br /&gt;
College Closed&lt;br /&gt;
|2nd&lt;br /&gt;
College Open&lt;br /&gt;
|3rd&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |7th&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=630659</id>
		<title>Mod:Hunt Research Group</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=630659"/>
		<updated>2017-09-22T13:16:00Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Research Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hunt Group Wiki==&lt;br /&gt;
&lt;br /&gt;
Back to the main [http://www.ch.ic.ac.uk/hunt web-page]&lt;br /&gt;
===HPC Resources===&lt;br /&gt;
#Computing resources available in the chemistry department [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/computing_resources link]&lt;br /&gt;
#HPC servers and run scripts [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc link]&lt;br /&gt;
#Setting up a connection to HPC if you have a PC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_connections link] &lt;br /&gt;
#How to fix Windows files under UNIX [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Windowsfiles link] &lt;br /&gt;
#Using VPN from home, for Sierra follow the college instructions [[link]] &lt;br /&gt;
#How to make ssh more comfortable [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpSSH link] &lt;br /&gt;
#How to make qsub more comfortable (gfunc) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpQSUB link] &lt;br /&gt;
#Tired of entering your password all the time: set up a SSH keypair [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/SSHkeyfile link] &lt;br /&gt;
#How to use gaussview directly on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gview link] &lt;br /&gt;
#How to comfortably search through old BASH commands [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/searchbash link]&lt;br /&gt;
#How to connect to HPC directory on desktop for file transfers - MacFusion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_Directory_on_desktop link]&lt;br /&gt;
#How to set up cx2 [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cx2 link]&lt;br /&gt;
&lt;br /&gt;
===Visualisation===&lt;br /&gt;
*&#039;&#039;&#039;installing Xcode&#039;&#039;&#039;&lt;br /&gt;
#to use many programs you will need a compiler, this is not installed by default on your mac&lt;br /&gt;
#How to install Xcode on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/InstallXcode link] &lt;br /&gt;
#using MacPorts as code for managing other codes on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/MacPorts link] &lt;br /&gt;
#HomeBrew and Fink are other options (HomeBrew is not advised for us)&lt;br /&gt;
#gfortran on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Gfortran link] &lt;br /&gt;
&lt;br /&gt;
*Using AIMALL: &#039;&#039;&#039;density based visualisation&#039;&#039;&#039;&lt;br /&gt;
#download [http://aim.tkgristmill.com AIMALL]&lt;br /&gt;
#basic instructions [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_basics link]&lt;br /&gt;
#AimAll with pseudo potentials [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_pseudopotentials link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;ESPs&#039;&#039;&#039;&lt;br /&gt;
#Instructions for visualizing electrostatic potentials (Gaussview)[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials link]&lt;br /&gt;
#Electrostatic Potentials II (Molden) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials_2 link] &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;NCI plots&#039;&#039;&#039;&lt;br /&gt;
#get the program here: [http://www.lct.jussieu.fr/pagesperso/contrera/nciplot.html link]&lt;br /&gt;
#How to install NCIPlot on your mac [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/InstallNCIPlot link]&lt;br /&gt;
#Using NCIPlot [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/UseNCIPlot link]  &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;VMD: a molecular dynamics visualisation package&#039;&#039;&#039;&lt;br /&gt;
#Download VMD [//wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/download_vmd link]&lt;br /&gt;
#Quick reminder [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDReminder link]&lt;br /&gt;
#Tricks and tips [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDTips link]&lt;br /&gt;
#Changing the graphical representation of your structures [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/vmd link]&lt;br /&gt;
#Basic visualisation of a trajectory [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VisualisingyourSimulation link] &lt;br /&gt;
#How to turn a Gaussian optimization into a VMD movie [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/VMDmovie link] &lt;br /&gt;
#Using scripts in VMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScripts link]&lt;br /&gt;
#Dealing with periodic boundaries and bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsPeriodic link]&lt;br /&gt;
#Dealing with bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdBonding link]&lt;br /&gt;
#Overlapping two structures [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdVisual link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;JMol&#039;&#039;&#039;&lt;br /&gt;
#Visualising MOs using Jmol [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:basic_jmol_instructions link]&lt;br /&gt;
#Surfaces (Solvent-Accessible and Connolly) in Jmol [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/jmolsurfaces link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;EMO Code&#039;&#039;&#039;&lt;br /&gt;
#How to use Ling&#039;s emo plot code[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emoplot link] &lt;br /&gt;
#How to plot EMOs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emo link]&lt;br /&gt;
*&#039;&#039;&#039;PyGauss&#039;&#039;&#039;&lt;br /&gt;
#Python API for analysis of Gaussian compuations [https://pygauss.readthedocs.org - Documentation]&lt;br /&gt;
*&#039;&#039;&#039;MD Post processing&#039;&#039;&#039;&lt;br /&gt;
#Code to Recentre DL_PLOY HISTORY file [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/recentre_xyz.py link]&lt;br /&gt;
#Link to the code to convert the DL_POLY HISTORY file to the multi-frame XYZ file[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/his2xyz.py link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SDFs&#039;&#039;&#039;&lt;br /&gt;
#How to generate SDFs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/sdfs_generate link]&lt;br /&gt;
&lt;br /&gt;
===Gaussian General===&lt;br /&gt;
#We are starting a database of common errors encountered when running Gaussian jobs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gaussian_errors link]&lt;br /&gt;
# Here is an already existing database of common errors [https://www.ace-net.ca/wiki/Gaussian_Error_Messages link]&lt;br /&gt;
# [http://www.ch.ic.ac.uk/hunt/g03_man/index.htm G03 Manual]&lt;br /&gt;
#How to run NBO5.9 on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/NBO5.9 link] &lt;br /&gt;
#How to include dispersion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dispersion link] &lt;br /&gt;
#Basic ONIOM (Mechanical Embedding) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/basiconiom link]&lt;br /&gt;
#M0n and DFT-D [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/DFTD link]&lt;br /&gt;
#IL ONIOM clusters [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/oniomclusers link]&lt;br /&gt;
#Molecular volume calculations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molecular_volume link]&lt;br /&gt;
#problems with scf convergence [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/scf_convergence link]&lt;br /&gt;
#Using a z-matrix [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/z-matrix link]&lt;br /&gt;
#generating natural transition orbitals [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/nto link]&lt;br /&gt;
#Using solvent models [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/solvent link]&lt;br /&gt;
#Using SMD on ILs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Using_SMD_on_ILs link]&lt;br /&gt;
#computing excited state polarisabilities [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_ES_alpha link]&lt;br /&gt;
#computing deuterated and/or anharmonic spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Danharm link]&lt;br /&gt;
#manipulating checkpoint files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:usingchkfiles link]&lt;br /&gt;
#&lt;br /&gt;
#Script to pull thermodynamic data and low frequencies from log files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:freq_script link]&lt;br /&gt;
#General procedure for locating transition state structures [[link]]&lt;br /&gt;
&lt;br /&gt;
===ADF General===&lt;br /&gt;
#Submission script [http://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/ADF_sricpt link]&lt;br /&gt;
&lt;br /&gt;
===Codes to Help Analysis===&lt;br /&gt;
# Extract E2 Values (From NBO Calculations) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/NBO_Matlab_Code link]&lt;br /&gt;
# Calculate pDoS/XP spectra code (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Calc_XPS_Code link]&lt;br /&gt;
# Codes to extract frequency data from gaussian .log files and generate vibrational spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:frequency_spectrum_script link]&lt;br /&gt;
# Optimally Tuned Range Seperated Hybrid Functionals [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/OTRSH_Funct link]&lt;br /&gt;
# Some G09 Parsers [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Some_G09_Parsers link]&lt;br /&gt;
&lt;br /&gt;
===Setup and Running Ab-Initio MD Simulations===&lt;br /&gt;
#CPMD: Car-Parrinello Molecular Dynamics [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd link]&lt;br /&gt;
#How to run CPMD to study aqueous solutions [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd_water link]&lt;br /&gt;
#How to run CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how link] &lt;br /&gt;
#[bmim]Cl using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cpmd  link] &lt;br /&gt;
#[bmim]Cl using CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cp2k  link] &lt;br /&gt;
#mman using CPMD and Gaussian [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/mman link] &lt;br /&gt;
#[emim]SCN using CP2K[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emimscn link] &lt;br /&gt;
#CP2K Donts [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k link] &lt;br /&gt;
&lt;br /&gt;
===Setup and Running Classical MD Simulations===&lt;br /&gt;
#DLPOLY a MD simulation package, Installation on an IMac (old needs to be updated) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dlpoly_install  link]&lt;br /&gt;
#DL_POLY FAQs [http://www.stfc.ac.uk/cse/DL_POLY/ccp1gui/38621.aspx] from DL_POLY webpage.&lt;br /&gt;
#Installing Packmol&lt;br /&gt;
#Getting started: generating a solvated structure and &amp;quot;relaxing&amp;quot; it [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Starting_MD link] &lt;br /&gt;
#Equilibration and production simulations [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/EquilibrationandProduction link] &lt;br /&gt;
#How to equilibrate an MD run[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/equilibration link] &lt;br /&gt;
#Getting the Force Field [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Wheretostart link] &lt;br /&gt;
#Choosing an Ensemble [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Ensembles link] &lt;br /&gt;
#Molten Salt Simulations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation link]&lt;br /&gt;
#Common Errors [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CommonErrors link]&lt;br /&gt;
#Voids in ILs[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/voids link] &lt;br /&gt;
#Equilibration of [bmim][BF4] and [bmim][NO3][https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/BmimBF4_equilibration link] &lt;br /&gt;
#Summary of discussions with Ruth[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Aug09QtoRuth link]&lt;br /&gt;
&lt;br /&gt;
===Running QM/MM Simulations in ChemShell===&lt;br /&gt;
#ChemShell official website which contains the manual and a tutorial [http://www.stfc.ac.uk/CSE/randd/ccg/36254.aspx link]&lt;br /&gt;
#Introduction to ChemShell - Copper in water [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Introduction link]&lt;br /&gt;
#Defining the system: Cu&amp;lt;sup&amp;gt;2+&amp;lt;/sup&amp;gt; and its first 2 solvation shells [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_System_Aqeuous_Cu(II) link] &lt;br /&gt;
#Defining the force field parameters [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II) link] &lt;br /&gt;
#Single point QM/MM energy calculation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_SP_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Optimisation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_OPT_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Molecular Dynamics [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_MD_Aqeuous_Cu(II) link]&lt;br /&gt;
#Using MolCluster [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster link]&lt;br /&gt;
#Running ChemShell [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell link]&lt;br /&gt;
#Explaining ChemShell files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files link]&lt;br /&gt;
#Step By Step [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step link]&lt;br /&gt;
&lt;br /&gt;
===Research Notes===&lt;br /&gt;
#Cl- in water [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/wannier_centre link] &lt;br /&gt;
#The use of Legendre time correlation functions to study reorientational dynamics in liquids[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/legendre  link] &lt;br /&gt;
#Functional for ILs using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/IL_cpmd_functional link] &lt;br /&gt;
#Solving the angular part of the Schrödinger equation for a hydrogen atom [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/angular_schrodinger link] (notes by Vincent)&lt;br /&gt;
#Systematic conformational scan for ion-pair dimers [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ion_pair_scan link]&lt;br /&gt;
#Obtaining NBO, ESP, and RESP charges [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Charges link]&lt;br /&gt;
#DFT Workshop Notes [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/DFT_Workshop]&lt;br /&gt;
&lt;br /&gt;
===Installing and using other packages===&lt;br /&gt;
#How to install POLYRATE [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/polyrate link] &lt;br /&gt;
#How to install Geomview [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/geomview link] &lt;br /&gt;
#XMGRACE, gfortran, c compilers for Lion [http://hpc.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
===Admin Stuff===&lt;br /&gt;
#Not used to writing a wiki, make your test runs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/testing  on this page]&lt;br /&gt;
#How to set-up new macs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_setup link]&lt;br /&gt;
#How to set-up remote desktop [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_remote link]&lt;br /&gt;
#[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/calendar Calendar]&lt;br /&gt;
#How to switch the printer HP CP3525dn duplex on and off [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/printing link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630572</id>
		<title>Mod:Hunt Research Group/calendar</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/calendar&amp;diff=630572"/>
		<updated>2017-07-07T13:05:32Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Calendar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the main [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group wiki-page]&lt;br /&gt;
== Calendar ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-  &lt;br /&gt;
! 1 &lt;br /&gt;
! 2 &lt;br /&gt;
! 3 &lt;br /&gt;
|-&lt;br /&gt;
| Tricia (Done) &lt;br /&gt;
| Nukorn  (Done)&lt;br /&gt;
| Becky (Not done)&lt;br /&gt;
|-  &lt;br /&gt;
| Richard (Not done)&lt;br /&gt;
| Ken (Done)&lt;br /&gt;
| Sophie (Done)&lt;br /&gt;
|-  &lt;br /&gt;
| Mikkaila (Done)&lt;br /&gt;
| Lennart Frankemoelle (not done)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-)&lt;br /&gt;
|}&lt;br /&gt;
Everyone should be away during the college closure dates, so you don&#039;t need to add your name on those days&lt;br /&gt;
&lt;br /&gt;
Tricia maybe: Tricia may or may-not be in college i.e. working from home&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%&amp;quot;  &lt;br /&gt;
  !Mon&lt;br /&gt;
  !Tue&lt;br /&gt;
  !Wed&lt;br /&gt;
  !Thur&lt;br /&gt;
  !Fri&lt;br /&gt;
  !Sat&lt;br /&gt;
  !Sun&lt;br /&gt;
|-&lt;br /&gt;
    | style=&amp;quot;background: yellow;&amp;quot; |5th June&lt;br /&gt;
 |6th&lt;br /&gt;
 |7th&lt;br /&gt;
 |8th&lt;br /&gt;
 |9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |11th&lt;br /&gt;
|-&lt;br /&gt;
|12th&lt;br /&gt;
|13th&lt;br /&gt;
|14th&lt;br /&gt;
|15th&lt;br /&gt;
|16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |18th&lt;br /&gt;
|-&lt;br /&gt;
|19th&lt;br /&gt;
|20th&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
|23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |25th&lt;br /&gt;
|-&lt;br /&gt;
|26th&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
Sophie Away&lt;br /&gt;
|29th&lt;br /&gt;
Sophie Away&lt;br /&gt;
|30th&lt;br /&gt;
Ken Away&lt;br /&gt;
&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st July&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |2nd&lt;br /&gt;
|-&lt;br /&gt;
|3rd&lt;br /&gt;
Ken Away&lt;br /&gt;
|4th &lt;br /&gt;
|5th  &lt;br /&gt;
|6th &lt;br /&gt;
|7th &lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |8th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |9th&lt;br /&gt;
|-&lt;br /&gt;
|10th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|11th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|12th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|13th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|14th&lt;br /&gt;
Tricia Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |15th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
|-&lt;br /&gt;
|17th&lt;br /&gt;
Ken Away&lt;br /&gt;
Tricia Away&lt;br /&gt;
|18th&lt;br /&gt;
Sophie Away&lt;br /&gt;
&lt;br /&gt;
Tricia Away&lt;br /&gt;
|19th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|20th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|21st&lt;br /&gt;
Tricia Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |22nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
|-&lt;br /&gt;
|24th&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |29th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|31st&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Aug &lt;br /&gt;
&lt;br /&gt;
|2nd&lt;br /&gt;
|3rd&lt;br /&gt;
Tricia Away&lt;br /&gt;
|4th&lt;br /&gt;
Tricia Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |5th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |6th&lt;br /&gt;
|-&lt;br /&gt;
|7th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|8th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|9th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|10th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|11th&lt;br /&gt;
Tricia Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |12th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |13th&lt;br /&gt;
|-&lt;br /&gt;
|14th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|15th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|16th&lt;br /&gt;
|17th&lt;br /&gt;
|18th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |19th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |20th&lt;br /&gt;
|-&lt;br /&gt;
|21st&lt;br /&gt;
Ken Away&lt;br /&gt;
|22nd&lt;br /&gt;
Ken Away&lt;br /&gt;
|23rd&lt;br /&gt;
Ken Away&lt;br /&gt;
|24th&lt;br /&gt;
Ken Away&lt;br /&gt;
|25th&lt;br /&gt;
Ken Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |26th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |27th&lt;br /&gt;
|-&lt;br /&gt;
|28th&lt;br /&gt;
BANK HOLIDAY&lt;br /&gt;
|29th&lt;br /&gt;
Ken Away&lt;br /&gt;
&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|30th&lt;br /&gt;
Ken Away&lt;br /&gt;
&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|31st&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
   | style=&amp;quot;background: yellow;&amp;quot; |1st Sept&lt;br /&gt;
Mikkaila Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |2nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |3rd&lt;br /&gt;
|-&lt;br /&gt;
|4th&lt;br /&gt;
|5th&lt;br /&gt;
|6th&lt;br /&gt;
|7th&lt;br /&gt;
|8th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |9th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |10th&lt;br /&gt;
|-&lt;br /&gt;
|11th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|12th&lt;br /&gt;
Tricia Away&lt;br /&gt;
|13th&lt;br /&gt;
Tricia Away&lt;br /&gt;
&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|14th&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|15th&lt;br /&gt;
Nukorn Away&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |16th&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |17th&lt;br /&gt;
|-&lt;br /&gt;
|18th&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|19ht&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|20th&lt;br /&gt;
Nukorn Away&lt;br /&gt;
|21st&lt;br /&gt;
|22nd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |23rd&lt;br /&gt;
   | style=&amp;quot;background: grey;&amp;quot; |24th&lt;br /&gt;
|-&lt;br /&gt;
|25th&lt;br /&gt;
|26th&lt;br /&gt;
|27th&lt;br /&gt;
|28th&lt;br /&gt;
|29th&lt;br /&gt;
   | Style=&amp;quot;background: grey;&amp;quot; |30th&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=630571</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell files</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files&amp;diff=630571"/>
		<updated>2017-06-28T16:04:37Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* cluster_1.chm */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===opt.chm files===&lt;br /&gt;
&lt;br /&gt;
An example of an opt.hm file can be seen below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dl-find coords=cluster.pun\&lt;br /&gt;
      theory=hybrid: { coupling=shift \&lt;br /&gt;
      cutoff = 20 \&lt;br /&gt;
      qm_region = { 63 73 75 93 125 126 127 128 }\&lt;br /&gt;
      qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=lanl2dz basisspec={ { lanl2dz * } } ecpspec={ { lanl2dz * } } &lt;br /&gt;
g98_mem=640000000 charge=-3 mult=1 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=300\&lt;br /&gt;
      atom_types = { NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA &lt;br /&gt;
NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL &lt;br /&gt;
CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL CL LA } } \&lt;br /&gt;
      groups = { { 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &lt;br /&gt;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 &lt;br /&gt;
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 &lt;br /&gt;
118 119 120 121 122 123 124 125 126 127 128 } } } \&lt;br /&gt;
      active_atoms = { 1 2 4 5 6 7 9 14 15 17 20 22 24 26 27 29 30 31 37 38 39 40 43 46 47 48 53 56 58 59 63 65 67 69 70 73 74 75 &lt;br /&gt;
78 79 83 85 87 89 91 92 93 94 96 97 99 100 103 105 106 107 108 110 111 113 117 118 120 121 122 125 126 127 128 }\&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 800\&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of the &#039;keywords&#039; are explains in the following table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Keyword&lt;br /&gt;
! To Specify&lt;br /&gt;
|-&lt;br /&gt;
| dl_find&lt;br /&gt;
| optimisation library, recommended by ChemShell&lt;br /&gt;
|-&lt;br /&gt;
| coords= cluster.pun&lt;br /&gt;
| initial coordinates of system, found in cluster.pun&lt;br /&gt;
|-&lt;br /&gt;
| theory=hybrid:&lt;br /&gt;
| sets up a QM/MM model based on one QM and one MM region&lt;br /&gt;
|-&lt;br /&gt;
| cutoff&lt;br /&gt;
| cutoff for QM/MM electrostatic interactions, we assume this is angstroms&lt;br /&gt;
|-&lt;br /&gt;
| qm_region&lt;br /&gt;
| list of atoms in QM part, list the atoms from *.pun file&lt;br /&gt;
|-&lt;br /&gt;
| qm_theory=gaussian&lt;br /&gt;
| module used for QM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mm_theory=dl_poly&lt;br /&gt;
| module used for MM energy and forces&lt;br /&gt;
|-&lt;br /&gt;
| mxexcl&lt;br /&gt;
| Allocation parameter for excluded atom list, may needs to be increased for large QM calculations - MAXIMUM number of excluded atoms per atom??&lt;br /&gt;
|-&lt;br /&gt;
| atom types&lt;br /&gt;
| atom type settings&lt;br /&gt;
|-&lt;br /&gt;
| groups&lt;br /&gt;
| specify a list of (ideally neutral) charge groups. A list of lists, each sublist containing the atom numbers of atom belonging to the group. Increase the accuracy of the electrostatic energy when using a cutoff&lt;br /&gt;
|-&lt;br /&gt;
| Active atoms&lt;br /&gt;
| Atoms that move, i think in the MM region&lt;br /&gt;
|-&lt;br /&gt;
| list_option&lt;br /&gt;
| how much output to generate&lt;br /&gt;
|-&lt;br /&gt;
| maxcycle&lt;br /&gt;
| maximum number of optimisation cycles&lt;br /&gt;
|-&lt;br /&gt;
| dump&lt;br /&gt;
| writes info every dump steps&lt;br /&gt;
|-&lt;br /&gt;
| restart&lt;br /&gt;
| restarts from dump file&lt;br /&gt;
|-&lt;br /&gt;
| result&lt;br /&gt;
| optimised coordinates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I know that these explanations are not very good, they come directly from the ChemShell manual. They can be found by googling chemshell followed by the keyword you want to know about&lt;br /&gt;
&lt;br /&gt;
general info can be found http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/hyb_new.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dispersion can not be used for all elements, for example I can&#039;t get it to work for Lanthanum&lt;br /&gt;
&lt;br /&gt;
Keyword dispersion_correction=gd3bj&lt;br /&gt;
&lt;br /&gt;
=== ff.dat ===&lt;br /&gt;
&lt;br /&gt;
Contains the MM parameters.&lt;br /&gt;
&lt;br /&gt;
For LJ potential parameters use the keyword vdw. An example ff.dat file is shown below for an La NaCl system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
declare NA&lt;br /&gt;
declare CL&lt;br /&gt;
declare LA&lt;br /&gt;
vdw NA    NA            0.54392    2.350&lt;br /&gt;
vdw NA    CL            0.48116    3.230&lt;br /&gt;
vdw CL    CL            0.41840    4.450&lt;br /&gt;
vdw LA    CL            0.32409    4.100&lt;br /&gt;
vdw LA    NA            0.36952    3.050&lt;br /&gt;
vdw LA    LA            0.25104    3.750&lt;br /&gt;
charge NA 1.000&lt;br /&gt;
charge CL -1.000&lt;br /&gt;
charge LA 3.000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
from the DL_Poly MD simulation I simply copied the FIELD file and pasted below the declare lines. At the start of each line from the FIELD file i put vdw and deleted LJ from the middle of each line. &lt;br /&gt;
&lt;br /&gt;
I then manually included the charge section for each ion in the simulation.&lt;br /&gt;
&lt;br /&gt;
=== cluster.pun ===&lt;br /&gt;
&lt;br /&gt;
cluster_x.pun contains the coordinates, charges and connectivity of the cluster. &lt;br /&gt;
&lt;br /&gt;
Example file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
block = fragment records = 0&lt;br /&gt;
block = title records = 1&lt;br /&gt;
molecule 1&lt;br /&gt;
block = coordinates records = 128&lt;br /&gt;
NA  -1.17552336830323e+01 -2.25822336289483e+00 -7.41906688094151e+00&lt;br /&gt;
NA  -1.13521549857055e+01 1.04974316157998e+01 3.17001647803856e+00&lt;br /&gt;
NA  -6.73838733674510e+00 7.11482088811635e+00 1.56304961518929e+01&lt;br /&gt;
NA  7.22007866327388e+00 -6.84081052190736e-01 4.34920591606900e+00&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = atom_charges records = 128&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
        1.0000000000&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
block = connectivity records = 163&lt;br /&gt;
1 40&lt;br /&gt;
1 43&lt;br /&gt;
1 66&lt;br /&gt;
1 107&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to check the connectivity records and ensure there are not bonds where you&#039;re not expecting them.&lt;br /&gt;
&lt;br /&gt;
=== cluster_1.chm ===&lt;br /&gt;
&lt;br /&gt;
generated by MolCluster and transferred to HPC. cluster_1.hm is used to generate the custer.pun file.&lt;br /&gt;
&lt;br /&gt;
cluster_1.chm contains the atomic positions of all ions in the cluster cut by MolCluster.&lt;br /&gt;
&lt;br /&gt;
The first line of this file will contain the following. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c_create coords=cluster.pun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line tells chemshell to generate a file called cluster.pun using the coordinate in the file&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630570</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630570"/>
		<updated>2017-06-27T15:29:51Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.hm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.hm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.hm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and ecp sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. When editing tcl files it is important to first make a copy of the file calling it XXXX_original this way no matter what happens you have a copy to start from again! The second important thing is to count the brackets, you have not got to the end of a section if more brackets have been opened than have been closed. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; LINK TO MY GAUSSIAN.TCL FILE &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630569</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630569"/>
		<updated>2017-06-27T15:02:05Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Point charge position with Pseudopotentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.hm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.hm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.hm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and ecp sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. When editing tcl files it is important to first make a copy of the file calling it XXXX_original this way no matter what happens you have a copy to start from again! The second important thing is to count the brackets, you have not got to the end of a section if more brackets have been opened than have been closed. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. This did initially work for jobs employing dl-find, however it doesnt seem to have worked for single point energy jobs. I am still trying to rectify this problem.&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630568</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630568"/>
		<updated>2017-06-27T14:38:04Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Step 1 - Molcluster ===&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Editing input files ===&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.hm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.hm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.hm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Errors that have been encountered ==&lt;br /&gt;
&lt;br /&gt;
===  Point charge position with Pseudopotentials ===&lt;br /&gt;
As I have been trying to model an La ion in molten NaCl I need to employ a pseudo potential for my La ion. When trying to use an in-built PP, such as LanL2DZ the gaussian.com file has point charges between the basis set and eco sections. This resulted in ECP&#039;s not being included on the ions and the job would fail. The gaussian.log file included a large section with all ions having &amp;quot;No pseudo potential on this centre.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
To overcome this problem it was necessary to edit the gaussian.tcl file in the ChemShell tcl directory. I searched for sections on ecp&#039;s and moved them (by copying and pasting) to just below sections on basis sets. This did initially work for jobs employing dl-find, however it doesnt seem to have worked for single point energy jobs. I am still trying to rectify this problem. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== gaussian.update ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the opt.out file a section was included showing the following &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
******************** DL_POLY Pairlist calculation requested ********************&lt;br /&gt;
&lt;br /&gt;
hybrid: dl_poly updated OK&lt;br /&gt;
hybrid: Warning gaussian update failed&lt;br /&gt;
        invalid command name &amp;quot;gaussian.update&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular problem is that the gaussian.update section had not been specified in the gaussian.tcl file or the tclIndex file. &lt;br /&gt;
&lt;br /&gt;
In the tclIndex file the following line needs to be on line number 371&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set auto_index(gaussian.update) [list source [file join $dir gaussian.tcl]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the gaussian.tcl file the following need to the final section&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
proc gaussian.update { args } {&lt;br /&gt;
    return 0&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630567</id>
		<title>Talk:Mod:Hunt Research Group/Chemshell Step By Step</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step&amp;diff=630567"/>
		<updated>2017-06-27T14:26:06Z</updated>

		<summary type="html">&lt;p&gt;Klw14: Created page with &amp;quot;== Step 1 - Molcluster ==  The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is requir...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Step 1 - Molcluster ==&lt;br /&gt;
&lt;br /&gt;
The first thing that needs to be done to run any chemshell job is generate the input files. To cut the clusters a successful MD simulation is required and MolCluster needs to be installed.&lt;br /&gt;
&lt;br /&gt;
For information on how to obtain, install and run MolCluster, read [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step 2 - Editing input files ==&lt;br /&gt;
&lt;br /&gt;
The next stage of the process is editing the input files to do what you want them to do. From the MolCluster directory on your local machine you need to copy the opt.hm, ff.dat and cluster_1.hm files to the hpc.&lt;br /&gt;
::the cluster_1.hm file might be named something else! the file will always end *_1.chm, *_2.chm *_3.chm etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The files need to be edited before you can run a ChemShell job. &lt;br /&gt;
&lt;br /&gt;
::  ff.dat needs to contain the parameters from the MD simulation. This is not a simple copy and paste, the numbers needs by ChemShell are in kCal while the numbers often used in DL_poly are in kJ/mol&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;HOW DO YOU CHANGE BETWEEN THE TWO&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::  the cluster_1.hm (created by MolCluster) file needs to become the cluster.pun (input file for ChemShell) file required by ChemShell. There are 2 methods to do this depending on the ChemShell code you are using. Both methods are explained on the Running ChemShell page [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell here]&lt;br /&gt;
&lt;br /&gt;
:: opt.chm is essentially the control file. It contains all of the keywords and tells ChemShell what you want it to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each of these files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files here]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=630566</id>
		<title>Mod:Hunt Research Group</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=630566"/>
		<updated>2017-06-27T14:11:18Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Running QM/MM Simulations in ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hunt Group Wiki==&lt;br /&gt;
&lt;br /&gt;
Back to the main [http://www.ch.ic.ac.uk/hunt web-page]&lt;br /&gt;
===HPC Resources===&lt;br /&gt;
#Computing resources available in the chemistry department [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/computing_resources link]&lt;br /&gt;
#HPC servers and run scripts [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc link]&lt;br /&gt;
#Setting up a connection to HPC if you have a PC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_connections link] &lt;br /&gt;
#How to fix Windows files under UNIX [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Windowsfiles link] &lt;br /&gt;
#How to make ssh more comfortable [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpSSH link] &lt;br /&gt;
#How to make qsub more comfortable (gfunc) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpQSUB link] &lt;br /&gt;
#How to set up a SSH keypair [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/SSHkeyfile link] &lt;br /&gt;
#How to use gaussview directly on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gview link] &lt;br /&gt;
#How to comfortably search through old BASH commands [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/searchbash link]&lt;br /&gt;
#How to connect to HPC directory on desktop for file transfers - MacFusion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_Directory_on_desktop link]&lt;br /&gt;
#How to set up cx2 [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cx2 link]&lt;br /&gt;
&lt;br /&gt;
===Visualisation===&lt;br /&gt;
*&#039;&#039;&#039;density based visualisation&#039;&#039;&#039;&lt;br /&gt;
#download [http://aim.tkgristmill.com AIMALL]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;ESPs&#039;&#039;&#039;&lt;br /&gt;
#Instructions for visualizing electrostatic potentials (Gaussview)[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials link]&lt;br /&gt;
#Electrostatic Potentials II (Molden) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials_2 link] &lt;br /&gt;
*&#039;&#039;&#039;VMD: a molecular dynamics visualisation package&#039;&#039;&#039;&lt;br /&gt;
#Download VMD [//wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/download_vmd link]&lt;br /&gt;
#Quick reminder [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDReminder link]&lt;br /&gt;
#Tricks and tips [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDTips link]&lt;br /&gt;
#Changing the graphical representation of your structures [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/vmd link]&lt;br /&gt;
#Basic visualisation of a trajectory [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VisualisingyourSimulation link] &lt;br /&gt;
#How to turn a Gaussian optimization into a VMD movie [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/VMDmovie link] &lt;br /&gt;
#Using scripts in VMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScripts link]&lt;br /&gt;
#Dealing with periodic boundaries and bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsPeriodic link]&lt;br /&gt;
#Dealing with bonding (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdBonding link]&lt;br /&gt;
#Overlapping two structures [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdVisual link]&lt;br /&gt;
*&#039;&#039;&#039;JMol&#039;&#039;&#039;&lt;br /&gt;
#Visualising MOs using Jmol [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:basic_jmol_instructions link]&lt;br /&gt;
#Surfaces (Solvent-Accessible and Connolly) in Jmol [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/jmolsurfaces link]&lt;br /&gt;
*&#039;&#039;&#039;EMO Code&#039;&#039;&#039;&lt;br /&gt;
#How to use Ling&#039;s emo plot code[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emoplot link] &lt;br /&gt;
#How to plot EMOs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emo link]&lt;br /&gt;
*&#039;&#039;&#039;PyGauss&#039;&#039;&#039;&lt;br /&gt;
#Python API for analysis of Gaussian compuations [https://pygauss.readthedocs.org - Documentation]&lt;br /&gt;
*&#039;&#039;&#039;MD Post processing&#039;&#039;&#039;&lt;br /&gt;
#Code to Recentre DL_PLOY HISTORY file [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/recentre_xyz.py link]&lt;br /&gt;
#Link to the code to convert the DL_POLY HISTORY file to the multi-frame XYZ file[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/his2xyz.py link]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SDFs&#039;&#039;&#039;&lt;br /&gt;
#How to generate SDFs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/sdfs_generate link]&lt;br /&gt;
&lt;br /&gt;
===Gaussian General===&lt;br /&gt;
#We are starting a database of common errors encountered when running Gaussian jobs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gaussian_errors link]&lt;br /&gt;
# Here is an already existing database of common errors [https://www.ace-net.ca/wiki/Gaussian_Error_Messages link]&lt;br /&gt;
# [http://www.ch.ic.ac.uk/hunt/g03_man/index.htm G03 Manual]&lt;br /&gt;
#How to run NBO5.9 on the HPC [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/NBO5.9 link] &lt;br /&gt;
#How to include dispersion [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dispersion link] &lt;br /&gt;
#Basic ONIOM (Mechanical Embedding) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/basiconiom link]&lt;br /&gt;
#M0n and DFT-D [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/DFTD link]&lt;br /&gt;
#IL ONIOM clusters [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/oniomclusers link]&lt;br /&gt;
#Molecular volume calculations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molecular_volume link]&lt;br /&gt;
#problems with scf convergence [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/scf_convergence link]&lt;br /&gt;
#Using a z-matrix [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/z-matrix link]&lt;br /&gt;
#generating natural transition orbitals [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/nto link]&lt;br /&gt;
#Using solvent models [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/solvent link]&lt;br /&gt;
#Using SMD on ILs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Using_SMD_on_ILs link]&lt;br /&gt;
#computing excited state polarisabilities [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_ES_alpha link]&lt;br /&gt;
#computing deuterated and/or anharmonic spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Danharm link]&lt;br /&gt;
#manipulating checkpoint files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:usingchkfiles link]&lt;br /&gt;
#AimAll with pseudo potentials [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_pseudopotentials link]&lt;br /&gt;
#Script to pull thermodynamic data and low frequencies from log files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:freq_script link]&lt;br /&gt;
#General procedure for locating transition state structures [[link]]&lt;br /&gt;
&lt;br /&gt;
===ADF General===&lt;br /&gt;
#Submission script [http://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/ADF_sricpt link]&lt;br /&gt;
&lt;br /&gt;
===Codes to Help Analysis===&lt;br /&gt;
# Extract E2 Values (From NBO Calculations) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/NBO_Matlab_Code link]&lt;br /&gt;
# Calculate pDoS/XP spectra code (under construction) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Calc_XPS_Code link]&lt;br /&gt;
# Codes to extract frequency data from gaussian .log files and generate vibrational spectra [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:frequency_spectrum_script link]&lt;br /&gt;
# Optimally Tuned Range Seperated Hybrid Functionals [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/OTRSH_Funct link]&lt;br /&gt;
&lt;br /&gt;
===Setup and Running Ab-Initio MD Simulations===&lt;br /&gt;
#CPMD: Car-Parrinello Molecular Dynamics [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd link]&lt;br /&gt;
#How to run CPMD to study aqueous solutions [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/cpmd_water link]&lt;br /&gt;
#How to run CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k_how link] &lt;br /&gt;
#[bmim]Cl using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cpmd  link] &lt;br /&gt;
#[bmim]Cl using CP2K [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/bmimCl_cp2k  link] &lt;br /&gt;
#mman using CPMD and Gaussian [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/mman link] &lt;br /&gt;
#[emim]SCN using CP2K[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emimscn link] &lt;br /&gt;
#CP2K Donts [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/cp2k link] &lt;br /&gt;
&lt;br /&gt;
===Setup and Running Classical MD Simulations===&lt;br /&gt;
#DLPOLY a MD simulation package, Installation on an IMac (old needs to be updated) [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dlpoly_install  link]&lt;br /&gt;
#DL_POLY FAQs [http://www.stfc.ac.uk/cse/DL_POLY/ccp1gui/38621.aspx] from DL_POLY webpage.&lt;br /&gt;
#Installing Packmol&lt;br /&gt;
#Getting started: generating a solvated structure and &amp;quot;relaxing&amp;quot; it [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Starting_MD link] &lt;br /&gt;
#Equilibration and production simulations [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/EquilibrationandProduction link] &lt;br /&gt;
#How to equilibrate an MD run[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/equilibration link] &lt;br /&gt;
#Getting the Force Field [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Wheretostart link] &lt;br /&gt;
#Choosing an Ensemble [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Ensembles link] &lt;br /&gt;
#Molten Salt Simulations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/MoltenSaltSimulation link]&lt;br /&gt;
#Common Errors [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CommonErrors link]&lt;br /&gt;
#Voids in ILs[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/voids link] &lt;br /&gt;
#Equilibration of [bmim][BF4] and [bmim][NO3][https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/BmimBF4_equilibration link] &lt;br /&gt;
#Summary of discussions with Ruth[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/Aug09QtoRuth link]&lt;br /&gt;
&lt;br /&gt;
===Running QM/MM Simulations in ChemShell===&lt;br /&gt;
#ChemShell official website which contains the manual and a tutorial [http://www.stfc.ac.uk/CSE/randd/ccg/36254.aspx link]&lt;br /&gt;
#Introduction to ChemShell - Copper in water [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Introduction link]&lt;br /&gt;
#Defining the system: Cu&amp;lt;sup&amp;gt;2+&amp;lt;/sup&amp;gt; and its first 2 solvation shells [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_System_Aqeuous_Cu(II) link] &lt;br /&gt;
#Defining the force field parameters [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II) link] &lt;br /&gt;
#Single point QM/MM energy calculation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_SP_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Optimisation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_OPT_Aqeuous_Cu(II) link] &lt;br /&gt;
#QM/MM Molecular Dynamics [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/QMMM_MD_Aqeuous_Cu(II) link]&lt;br /&gt;
#Using MolCluster [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/MolCluster link]&lt;br /&gt;
#Running ChemShell [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell link]&lt;br /&gt;
#Explaining ChemShell files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files link]&lt;br /&gt;
#Step By Step [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Chemshell_Step_By_Step link]&lt;br /&gt;
&lt;br /&gt;
===Research Notes===&lt;br /&gt;
#Cl- in water [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/wannier_centre link] &lt;br /&gt;
#The use of Legendre time correlation functions to study reorientational dynamics in liquids[https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/legendre  link] &lt;br /&gt;
#Functional for ILs using CPMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/IL_cpmd_functional link] &lt;br /&gt;
#Solving the angular part of the Schrödinger equation for a hydrogen atom [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/angular_schrodinger link] (notes by Vincent)&lt;br /&gt;
#Systematic conformational scan for ion-pair dimers [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ion_pair_scan link]&lt;br /&gt;
#Obtaining NBO, ESP, and RESP charges [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Charges link]&lt;br /&gt;
&lt;br /&gt;
===Installing and using other packages===&lt;br /&gt;
#How to install POLYRATE [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/polyrate link] &lt;br /&gt;
#How to install Geomview [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/geomview link] &lt;br /&gt;
#XMGRACE, gfortran, c compilers for Lion [http://hpc.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
===Admin Stuff===&lt;br /&gt;
#Not used to writing a wiki, make your test runs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/testing  on this page]&lt;br /&gt;
#How to set-up new macs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_setup link]&lt;br /&gt;
#How to set-up remote desktop [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_remote link]&lt;br /&gt;
#[https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/calendar Calendar]&lt;br /&gt;
#How to switch the printer HP CP3525dn duplex on and off [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/printing link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630565</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630565"/>
		<updated>2017-06-27T10:43:38Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. &lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
All input files are explained in the Explaining ChemShell files page from the Hunt Research Group wiki home page. The ff.dat is also explained in the Force Field Parameters page. &lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link] &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;alternatively if ChemShell is installed on your HPC account you can use the submission script [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh_local-install here] &amp;lt;/span&amp;gt;&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630564</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630564"/>
		<updated>2017-06-27T10:34:23Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. &lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
All input files are explained in the Explaining ChemShell files page from the Hunt Research Group wiki home page. The ff.dat is also explained in the Force Field Parameters page. &lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link] alternatively if ChemShell is installed on your HPC account you can use the submission script [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh_local-install here]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh_local-install&amp;diff=630563</id>
		<title>Talk:Mod:Hunt Research Group/submit opt.sh local-install</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh_local-install&amp;diff=630563"/>
		<updated>2017-06-27T10:32:59Z</updated>

		<summary type="html">&lt;p&gt;Klw14: Created page with &amp;quot;&amp;lt;pre&amp;gt;  #!/bin/sh #PBS -l walltime=300:00:00 #PBS -lselect=1:ncpus=16:mem=64000mb #PBS -j oe #PBS -q pqph  module load dl_poly/2.19 module load mpi module load intel-suite/2016...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#PBS -l walltime=300:00:00&lt;br /&gt;
#PBS -lselect=1:ncpus=16:mem=64000mb&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
&lt;br /&gt;
module load dl_poly/2.19&lt;br /&gt;
module load mpi&lt;br /&gt;
module load intel-suite/2016.3&lt;br /&gt;
module load gaussian/g09-d01&lt;br /&gt;
#module load chemshell/3.5.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cp $PBS_O_WORKDIR/opt.chm $TMPDIR/.&lt;br /&gt;
cp $PBS_O_WORKDIR/ff.dat $TMPDIR/.&lt;br /&gt;
cp $PBS_O_WORKDIR/cluster.pun $TMPDIR/.&lt;br /&gt;
cp $PBS_O_WORKDIR/*.chk $TMPDIR/.&lt;br /&gt;
cd $TMPDIR&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x opt.chm &amp;gt; opt.out&lt;br /&gt;
&lt;br /&gt;
cp $TMPDIR/cluster* /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/dlf_* /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/gaussian.* /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/opt* /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/path* /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/param.defs /$PBS_O_WORKDIR/&lt;br /&gt;
cp $TMPDIR/hybrid* /$PBS_O_WORKDIR/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630562</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630562"/>
		<updated>2017-06-27T10:25:25Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. &lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
All input files are explained in the Explaining ChemShell files page from the Hunt Research Group wiki home page. The ff.dat is also explained in the Force Field Parameters page. &lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630561</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630561"/>
		<updated>2017-06-27T10:18:36Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified [[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files| here]]&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630560</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630560"/>
		<updated>2017-06-27T10:18:17Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified ][https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files| here]]&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630559</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630559"/>
		<updated>2017-06-27T10:17:33Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files| here]&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630558</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630558"/>
		<updated>2017-06-27T10:15:37Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster needs to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630555</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630555"/>
		<updated>2017-06-22T16:04:29Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will need to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630554</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630554"/>
		<updated>2017-06-22T16:00:29Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;2. can be found by clicking gaussian, after following step 1.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630553</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630553"/>
		<updated>2017-06-22T15:48:25Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{font color|red|There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&lt;br /&gt;
&lt;br /&gt;
1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&lt;br /&gt;
2. can be found by clicking gaussian, after following step 1.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630552</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630552"/>
		<updated>2017-06-22T15:46:43Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;red&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&lt;br /&gt;
2. can be found by clicking gaussian, after following step 1.&lt;br /&gt;
&lt;br /&gt;
writing&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630551</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630551"/>
		<updated>2017-06-22T15:46:08Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;red&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&lt;br /&gt;
&lt;br /&gt;
1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&lt;br /&gt;
2. can be found by clicking gaussian, after following step 1.&lt;br /&gt;
writing&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630550</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630550"/>
		<updated>2017-06-22T15:44:11Z</updated>

		<summary type="html">&lt;p&gt;Klw14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell 1 and the other is specific to gaussian 2. I can&#039;t seem to provide links!&lt;br /&gt;
&lt;br /&gt;
1. can be found by looking on the ChemShell user manual homepage and clicking QM interfaces under the Energy/Gradient Evaluators heading on the left of screen.&lt;br /&gt;
2. can be found by clicking gaussian, after following step 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630549</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630549"/>
		<updated>2017-06-22T15:41:23Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] or the dedicated ChemShell Force Field Parameters Aqueous Cu(II) page from the wiki home page. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/quantum.html| here] and the other is specific to gaussian [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/gaussian.html| here]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630548</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630548"/>
		<updated>2017-06-22T15:37:38Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] and [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II)| here]. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/quantum.html| here] and the other is specific to gaussian [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/gaussian.html| here]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630547</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630547"/>
		<updated>2017-06-22T15:37:06Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] and [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II)| here]. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell [www.cse.scitech.ac.uk/ccg/software/chemshell/manual/quantum.html| here] and the other is specific to gaussian [www.cse.scitech.ac.uk/ccg/software/chemshell/manual/gaussian.html| here]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630546</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630546"/>
		<updated>2017-06-22T15:35:58Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] and [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II)| here]. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at for finding QM keywords. 1 page is a general page for all QM_theory that can be used in ChemShell [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/quantum.html| here] and the other is specific to gaussian [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/gaussian.html| here]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630545</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630545"/>
		<updated>2017-06-22T15:35:01Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] and [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II)| here]. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
There are 2 different pages to look at here. 1 page is a general page for all QM_theory that can be used in ChemShell [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/quantum.html| here] and the other is specific to gaussian [http://www.cse.scitech.ac.uk/ccg/software/chemshell/manual/gaussian.html| here]. Between the two you should be able to find all the keywords you need for controlling the QM region&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630544</id>
		<title>Talk:Mod:Hunt Research Group/ChemShell</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell&amp;diff=630544"/>
		<updated>2017-06-22T15:30:32Z</updated>

		<summary type="html">&lt;p&gt;Klw14: /* Input for ChemShell */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Input for ChemShell ==&lt;br /&gt;
&lt;br /&gt;
*To run a QM/MM optimisation, three input files are required:&lt;br /&gt;
  opt.chm&lt;br /&gt;
  cluster.pun&lt;br /&gt;
  ff.dat&lt;br /&gt;
&lt;br /&gt;
::*ff.dat : the forcefield in ChemShell format  - ff.dat files are explained [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_files#ff.dat| here] and [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_Force_Field_Parameters_Aqueous_Cu(II)| here]. &amp;lt;B&amp;gt;The ff.dat file generated in MolCluster need to be edited! &amp;lt;/B&amp;gt;&lt;br /&gt;
::*opt.chm: ChemShell input file. Options for the ChemShell optimisation specified here.&lt;br /&gt;
::*cluster.pun: coordinate, atom_charges and connectivity records&lt;br /&gt;
&lt;br /&gt;
::*as part of generating the &amp;quot;cut&amp;quot; cluster using MolCluster you will have generated a range files, e.g. check the directory &amp;quot;cluster_1&amp;quot;, and the files you need now are cluster_1.chm, ff.dat and opt.hm&lt;br /&gt;
&lt;br /&gt;
::*note that MolCluster has not generated cluster.pun, but has generated cluster_n.chm, the coordinates file, which is used to generate cluster.pun&lt;br /&gt;
&lt;br /&gt;
*login to CX1 and copy your cluster directories over then ...&lt;br /&gt;
&lt;br /&gt;
*To generate cluster.pun from cluster_n.chm, load ChemShell and then run cluster_n.chm directly on the cx1 login shell&lt;br /&gt;
  &amp;lt;pre&amp;gt;module load chemshell mpi&lt;br /&gt;
  chemsh.x cluster_n.chm&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*successful result will generate a file cluster.pun and the screen info will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialising ChemShell 3.5.0 on linux&lt;br /&gt;
c_create/======================================== Tstep:    0.1 Ttot:    0.1 ==&lt;br /&gt;
ChemShell exiting code 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE June 2017&amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giuseppe has installed chemshell onto my HPC account, so I&#039;m not using the chemshell code on the HPC available to everyone. &lt;br /&gt;
&lt;br /&gt;
To generate the cluster.pun file copy the cluster_1.chm file generated by MolCluster to the HPC. Create a new file called cluster_pun_generate and paste the following into it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export TCLROOT=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/&lt;br /&gt;
export TCLLIBPATH=/work/$USER/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/tcl/&lt;br /&gt;
export TCL_LIBRARY=/work/$USER/tcl/tcl8.4.20___gcc_4.4.7/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$TCL_LIBRARY:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
/work/klw14/ChemShell/chemsh-3.5.0___intel-suite__2016.3___tcl8.4.20___gcc_4.4.7/bin/chemsh.x cluster_*.chm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lines in this script are specific to my file set up so make sure you are calling the correct files. &lt;br /&gt;
&lt;br /&gt;
It is then important to give yourself permission to run the script. &amp;quot;chmod u+x cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to run the script and generate the cluster.pun file type &amp;quot;./cluster_pun_generate&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; UPDATE END &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;NB&#039;&#039;&#039;: check the connectivity in the cluster.pun &lt;br /&gt;
:add some more information on this&lt;br /&gt;
:if you have only water molecules there should be no issue, but if you have a solvated species spurious &amp;quot;connectivity&amp;quot; may occur.&lt;br /&gt;
:in the CuSO4 example ....&lt;br /&gt;
search for /conn&lt;br /&gt;
lines to remove, total number to change&lt;br /&gt;
&lt;br /&gt;
EXAMPLE SECTION OF FILE&lt;br /&gt;
&lt;br /&gt;
*edit the opt.chm according to the system under study&lt;br /&gt;
*open opt.chm and edit the &#039;qm_theory&#039; options (nproc, scfconv, g98_mem, charge, multiplicity, basis set, method etc )&lt;br /&gt;
edit the number of nproc so it is one less than the number called by PBS&lt;br /&gt;
mocluster generates defaults, maxcyc should relate to the number of degrees of freedom, so g09 suggests 3N+20 so for 51 atoms =173)&lt;br /&gt;
memory is in bytes 1,000,000 is 1 MB.&lt;br /&gt;
&lt;br /&gt;
LINK TO EXPLANATION&lt;br /&gt;
&lt;br /&gt;
*you will beed to add conn and mxexcl options manually to this file after the mm_theory. &lt;br /&gt;
::*mxexcl depends on the QM region, in the chemshell manual this is &amp;quot;Allocation parameter for excluded atom list, may need to be increased for qm/mm calculations with a large qm region&amp;quot; please refer ChemShell manual for more details [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ChemShell_manual link]&lt;br /&gt;
chemshell has a list of all the atoms, and those in the QM region need to be excluded from the MM computation&lt;br /&gt;
this number needs checking!!  This relates to the number ...&lt;br /&gt;
::*conn=cluster.pun tells chemshell to read the connectivity from the cluster.pun file&lt;br /&gt;
::*for our example you will need to change ...&lt;br /&gt;
&lt;br /&gt;
     qm_theory=gaussian : { nproc=15 maxcyc=200 scfconv=5 basis=631gdp g98_mem=640000000 charge=0 mult=2 hamiltonian=b3lyp } \&lt;br /&gt;
      mm_theory=dl_poly : { mm_defs=ff.dat \&lt;br /&gt;
      conn=cluster.pun \&lt;br /&gt;
      mxexcl=500 \&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; please make sure that there is no space left after the backslash in every line. If there is any space after the &#039;\&#039;, the job will be terminated&lt;br /&gt;
* &amp;lt;B&amp;gt; the submit script &amp;lt;/B&amp;gt;, submit_opt.sh, to run ChemShell optimisation is here  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
this script submit the job, note that only the xx file is redirected while the job is running all other files are only copied over at the termination&lt;br /&gt;
add a comment re maxcycle being changed as wall time is hard, it will kill the job&lt;br /&gt;
cuso4+water QM +x active +y frozen a maxcycl of x and wall time of y are a good option&lt;br /&gt;
*don&#039;t forget different ques have different waltzes, and the more processors you use the &amp;quot;more&amp;quot; time you have&lt;br /&gt;
&lt;br /&gt;
::* to submit the job&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub submit_opt.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*the ChemShell optimisation creates as set of checkpoint files, gaussian files and &#039;path&#039; files along with the output &#039;opt.out&#039;&lt;br /&gt;
*load &#039;path_active.xyz&#039; in VMD to follow the optimisation&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;To restart a job&#039;&#039;&#039;&lt;br /&gt;
::*rename the &#039;op.out&#039; to &#039;opt.out-n&#039; (n=1,2,3..), else the previous opt.out will be overwritten and will loose the data. Please maintain the format as &#039;opt.out-n&#039;, since the python script to analyse the data reads this file format&lt;br /&gt;
:*open opt.chm&lt;br /&gt;
::::*increase maxcyle at the end of the file and add &#039;restart = yes \&#039; command as the second last line&lt;br /&gt;
&lt;br /&gt;
      list_option = full \&lt;br /&gt;
      maxcycle = 1500 \&lt;br /&gt;
      dump = 1 \&lt;br /&gt;
      restart = yes \&lt;br /&gt;
      result = cluster_opt.pun&lt;br /&gt;
::*edit the submit script to read the checkpoint files before submitting the job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/submit_opt.sh link]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Analysis of the ChemShell optimisation &lt;br /&gt;
::* A python utility has been developed by Vincent to extract the various contributions to the total QM/MM energy, atom-atom distances and other parameters from the ChemShell output&lt;br /&gt;
:::*Among the files generated &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; lists the number of each of the water oxygens in the first salvation shell (here for the first salvation shell of Cu along with the distance of each of the Ow from Cu) and &#039;n&#039; is the cluster number [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Cu_OW_first_solvation link]&lt;br /&gt;
*To trace back the particular water molecule in the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; to the DL_POLY HISTORY file, first map it to the Ow atom number in the opt.chm&lt;br /&gt;
*To map the Ow number to that in opt.chm, go to &#039;active_atoms&#039; in opt.chm&lt;br /&gt;
&amp;lt;pre&amp;gt;active_atoms = { 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 31 32 33 52 53 54 55 56 57 58 59 60 61 62 63 67 68 69 73 74 75 76 77 78 79 80 81 85 86 87 88 89 90  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*bring the curser to &#039;{&#039; &lt;br /&gt;
*say for example the Ow number from the &#039;n_Cu_OW_first_solvation_shell_init_and_final_dist.txt&#039; is 163, type &#039;163&#039; and press &#039;w&#039;&lt;br /&gt;
*It will give the Ow number in opt.chm (e.g365). to go back to &#039;{&#039;, enter163 and press &#039;b&#039;&lt;br /&gt;
*In the cluster folder has &#039;atom_no_mapping.txt&#039; created by MolCluster, which contain a list of &#039;orig_atom_no&#039; and &#039; new_atom_no&#039;. &#039;orig_atom_no&#039; is the number in the HISTORY file and &#039;new_atom_no&#039; is the corresponding atom number in the opt.chm&lt;br /&gt;
*open &#039;atom_no_mapping.txt&#039; and map the atom number &#039;365&#039; to  &#039;orig_atom_no&#039; list. &lt;br /&gt;
*e.g if the  &#039;orig_atom_no&#039; is &#039;643&#039;, use &#039;643&#039; in the script to draw the path of the centre of mass of a molecule throughout an animation [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsMapCoMoverTraj link]&lt;/div&gt;</summary>
		<author><name>Klw14</name></author>
	</entry>
</feed>