<?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=Jb6518</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=Jb6518"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Jb6518"/>
	<updated>2026-05-18T11:30:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Third_Year_TS_and_Reactivity_Lab&amp;diff=813191</id>
		<title>Third Year TS and Reactivity Lab</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Third_Year_TS_and_Reactivity_Lab&amp;diff=813191"/>
		<updated>2020-10-05T15:18:00Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* Assessment Information */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In this computational lab, you will model several pericyclic reactions by calculating and characterising Transition State (TS) structures.&lt;br /&gt;
&lt;br /&gt;
In your first- and second-year computational labs you will have used Quantum Mechanical methods, through the programs Gaussian and PySCF, to calculate and analyse simple molecules. In this lab you will extend on these, using different Quantum Mechanical methods through Gaussian to model reaction pathways for familiar Diels-Alder reactions. You will learn how to calculate TS structures for a reaction and will gain understanding about how reactants, products and TS structures relate to a molecule’s potential energy surface. By analysing the geometry and MOs of the TS structures, you will gain insight into the reaction mechanism that cannot be gained from experimental organic labs alone. Different reaction paths and barrier heights will also be calculated which will give understanding to the thermodynamics/kinetics of the reactions. &lt;br /&gt;
&lt;br /&gt;
The lab is split into two sections:&lt;br /&gt;
&lt;br /&gt;
: 1) A [[Third_Year_TS_and_Reactivity_Lab:_Tutorial|tutorial section]] to work through frst. The tutorial will introduce you to the software, background and methods required to complete the lab.&lt;br /&gt;
&lt;br /&gt;
: 2) An assessed [[Third_Year_TS_and_Reactivity_Lab:_Exercises|exercise section]] where you will apply what you have learnt during the tutorial to model different pericyclic reactions.&lt;br /&gt;
&lt;br /&gt;
=== Computational Methods ===&lt;br /&gt;
&lt;br /&gt;
The lab uses Quantum Mechanics to model reaction mechanisms. Gaussian is a compuational chemistry program that will be used to run Quantum Mechanical calculations. You will be using Gaussian to calculate the minimum and transition state structures for several reactions. Two differernt methods will be used for the calculations:&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;PM6&#039;&#039;&#039; - A semi-empirical method. This means that the method is parameterised using experimental data which saves computational time and resources but does result in lower accuracy than ab initio methods. &amp;lt;br /&amp;gt;&lt;br /&gt;
: &#039;&#039;&#039;B3LYP/6-31G(d)&#039;&#039;&#039; - Where &#039;&#039;&#039;B3LYP&#039;&#039;&#039; is a Density Functional Theory (DFT) method. B3LYP is reasonably fast compared to other DFT or &#039;&#039;ab inito&#039;&#039; methods and is capable of reproducing chemical data. &#039;&#039;&#039;6-31G(d)&#039;&#039;&#039; is a basis set, which generally are a set of functions that typically mimic atomic orbitals and when combined linearly generate molecular orbitals. In a way, they are the building blocks of molecular orbitals. The higher the basis set, the more blocks are available to construct a molecular orbital, at the cost of computational effort.&lt;br /&gt;
&lt;br /&gt;
Both of the methods approximate the Schrodinger Equation in different ways to calculate the energy of a system.&lt;br /&gt;
&lt;br /&gt;
== Assessment Information == &lt;br /&gt;
=== Lab Objectives ===&lt;br /&gt;
&lt;br /&gt;
The objectives of the lab are:&lt;br /&gt;
* Using Quantum Mechanical calculations (via Gaussian) to calculate and analyse structures and to develop understanding about the methods being used.&lt;br /&gt;
* Being able to explain what a Transition State and a Potential Energy Surface are.&lt;br /&gt;
* Being able to use chemical intuition to help locate stationary points on a potential energy surface (i.e. relate the energy balance of a reaction to its landscape).&lt;br /&gt;
* Being able to discuss the role of sterics and secondary orbital interactions in determining the kinetic and thermodynamic products of a reaction.&lt;br /&gt;
&lt;br /&gt;
=== Mark Scheme ===&lt;br /&gt;
&lt;br /&gt;
The break-down for the marks for this lab are as follows:&lt;br /&gt;
* &#039;&#039;&#039;Introduction&#039;&#039;&#039; 20%&lt;br /&gt;
* &#039;&#039;&#039;Exercises&#039;&#039;&#039; 60%&lt;br /&gt;
* &#039;&#039;&#039;Conclusions&#039;&#039;&#039; 20%&lt;br /&gt;
** Main discussion (10%)&lt;br /&gt;
** Further discussion (5%)&lt;br /&gt;
** Presentation and writing style (5%)&lt;br /&gt;
&lt;br /&gt;
=== Write Up ===&lt;br /&gt;
&lt;br /&gt;
Generally, try to use clear and concise writing style: short sentences that follow each other logically, with a simple writing style. Label all tables, diagrams, and figures with self-contained captions. Use the appropriate referencing style. Consider moving long lists of images to an SI section.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Introduction&#039;&#039;&#039;: This is where you should discuss the background theory and the computational methods that you have applied in this lab. You should include:&lt;br /&gt;
:* Potential Energy Surfaces and Transition States:&lt;br /&gt;
::* What is a potential energy surface (PES)?&lt;br /&gt;
::* What are the mathematical definitions of minima, maxima and saddle-points on a PES, and how can these features on the PES be related to chemical events/structures.&lt;br /&gt;
:* Computational methods:&lt;br /&gt;
::* A brief introduction to Quantum Mechanical methods&lt;br /&gt;
::* An introduction to the two methods being used including: what are the main approximations of the two methods? How are they different? Why we are using these two methods? &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exercises&#039;&#039;&#039;: Follow the guidelines for the 3 exercises to be completed in the [[Third_Year_TS_and_Reactivity_Lab:_Exercises|exercise section]].&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Conclusion&#039;&#039;&#039;: The main part of the conclusions should summarise the key concepts of the lab and your results. You &#039;&#039;&#039;should&#039;&#039;&#039; include:&lt;br /&gt;
:* An evaluation of what your results mean and the chemistry of the reactions.&lt;br /&gt;
:* An evaluation of the computational methods used.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The further discussion element of the conclusion remains quite open and can be directed by what you found more interesting about the lab. You should consider justified suggestions for improvements or advancements on the systems studied or on the computational methods used in the lab. &lt;br /&gt;
Other points that you could consider include:&lt;br /&gt;
:* Were there any difficulties encountered etc. when locating TSs? In what situations would locating the TS become more difficult?&lt;br /&gt;
:* The accuracy of the methods, the results and the MOs.&lt;br /&gt;
:* What ways could you obtain better descriptions of the reactions you have studied?&lt;br /&gt;
:* Insight provided into the Diels-Alder reactions.&lt;br /&gt;
:* Can calculations help to understand how to run the reactions studied here in a lab (e.g. reaction conditions)?&lt;br /&gt;
:* Can calculations help to understand how to improve the reactions by modifying the reactants? (what functional groups would you add to modify the reactions?)&lt;br /&gt;
&lt;br /&gt;
===Report Submission ===&lt;br /&gt;
&lt;br /&gt;
The assigned lab hours are 10.00-17.00 Mon, Tue, Thu, Fri.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;report deadline is on Wednesday at 12.00 noon&#039;&#039;&#039;, the week after starting the lab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must submit on Blackboard:&#039;&#039;&#039;&lt;br /&gt;
* A written report as a PDF.&lt;br /&gt;
* A zip file containing output (.log) files from &#039;&#039;&#039;all&#039;&#039;&#039; calculations which you use to answer the questions.&lt;br /&gt;
&lt;br /&gt;
The lab time assigned is sufficient to be able to complete the tutorial, assessed exercises and write up within the lab time. In general, it is advised that:&lt;br /&gt;
&lt;br /&gt;
* The tutorial should be completed before moving on to the assessed section. It is advised that you have started on the assessed exercises by Wednesday mornig at the latest.&lt;br /&gt;
* All calculations should be completed by the end of Friday.&lt;br /&gt;
* Write up as you go, it will help you keep track of results and answers.&lt;br /&gt;
* Submitted reports and output files will be checked for plagiarism&lt;br /&gt;
* Name your output files sensibly and use a unique name (e.g. your username or shortcode: hgr16_butadiene.log)&lt;br /&gt;
* ChemDraw is recommended to create MO diagrams and reaction coordinates&lt;br /&gt;
&lt;br /&gt;
=== Demonstrator Sessions ===&lt;br /&gt;
&lt;br /&gt;
The lab will start with an introduction at 10.00 am on Monday. There will be regular demonstrator sessions on Microsoft Teams lab channel () at:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Monday 10.00 - 14.00&#039;&#039;&#039; &amp;lt;br /&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Tuesday 10.00 - 12.00&#039;&#039;&#039; &amp;lt;br /&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Thursday 10.00 - 12.00&#039;&#039;&#039; &amp;lt;br /&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Friday 10.00 - 12.00&#039;&#039;&#039; &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outside of the above hours, please use the Year 3 Computational Labs forum, found on the 3rd Year Chemistry Laboratories and Coursework Blackboard page, to post any questions you have on the lab.&lt;br /&gt;
&lt;br /&gt;
Additionally, there is a [[Mod:ts_troubleshooting|troubleshooting page]] for common errors.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Hunt_runscripts_G16.zip&amp;diff=812995</id>
		<title>File:Hunt runscripts G16.zip</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Hunt_runscripts_G16.zip&amp;diff=812995"/>
		<updated>2020-08-28T22:17:48Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: Jb6518 uploaded a new version of File:Hunt runscripts G16.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812994</id>
		<title>Mod:Hunt Research Group/new gf script</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812994"/>
		<updated>2020-08-28T22:14:21Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* How to set up for Gaussian16 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A new gf script==&lt;br /&gt;
&lt;br /&gt;
This is a python script which does two jobs:&lt;br /&gt;
&lt;br /&gt;
#Edits .com files so that&lt;br /&gt;
##.chk filename matches the .com file &lt;br /&gt;
##the ncps requested is correct&lt;br /&gt;
##the memory requested for gaussian is correct.&lt;br /&gt;
#Submits the job(s) (you can use wildcards in the command) using the standard runscripts ([https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/hpc[link]]) stored in a folder in your home directory.&lt;br /&gt;
Note: the first 3 lines of the .com file need to exist for the editing process to work. ie. You have 3 lines (with anything or nothing on, doesn&#039;t matter) BEFORE your method line. If your method line is in the first 3 lines it will get overwritten and the script won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up for Gaussian16==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;ab1234&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py c01 pqph 20 &amp;quot;01.com&amp;quot;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version c01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py c01 pqph 40 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 40 processors to the pqph queue to run on gaussian16 version c01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use a01 usually.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print(&amp;quot;version = &amp;quot; + version)&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print(&amp;quot;queue = &amp;quot; + queue)&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors:&lt;br /&gt;
#20, or 40&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print(&amp;quot;nprocs = &amp;quot; + nprocs)&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print(&amp;quot;job_input= &amp;quot; + job_input)&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;list of jobs: &amp;quot;)&lt;br /&gt;
print(jobs)&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print(&amp;quot;   &amp;quot;)&lt;br /&gt;
print(&amp;quot;runscript = &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;20&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=20\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;Error: nprocs (argument 3) may only be 20, or 40.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line)&lt;br /&gt;
print(&amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line)&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print(name + &amp;quot; chk_line = &amp;quot; + chk_line)&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [[:File:Hunt runscripts G16.zip|runscripts]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 40 processors in the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be a01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be pqph.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 20, or 40.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
a01_pqph_20&lt;br /&gt;
a01_pqph_40&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;br /&gt;
&lt;br /&gt;
==How to set up for g09==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;rr1210&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot;      will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use d01 usually or b01 for getting latest nbo.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph or pqchem&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors, as standard the options are the same as those defined by Tricia on the wiki:&lt;br /&gt;
#12, 24, 32, 40, 48&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;12&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=12\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=45000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;24&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=24\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;32&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=32\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;48&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=48\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=250000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 12, 24, 32, 40, 48.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be eith d01 or b01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be either pqph or pqchem.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 12, 24, 32, 40 or 48.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
b01_pqchem_12&lt;br /&gt;
b01_pqchem_24&lt;br /&gt;
b01_pqchem_32&lt;br /&gt;
b01_pqchem_40&lt;br /&gt;
b01_pqchem_48&lt;br /&gt;
b01_pqph_12&lt;br /&gt;
b01_pqph_24&lt;br /&gt;
b01_pqph_32&lt;br /&gt;
b01_pqph_40&lt;br /&gt;
b01_pqph_48&lt;br /&gt;
d01_pqchem_12&lt;br /&gt;
d01_pqchem_24&lt;br /&gt;
d01_pqchem_32&lt;br /&gt;
d01_pqchem_40&lt;br /&gt;
d01_pqchem_48&lt;br /&gt;
d01_pqph_12&lt;br /&gt;
d01_pqph_24&lt;br /&gt;
d01_pqph_32&lt;br /&gt;
d01_pqph_40&lt;br /&gt;
d01_pqph_48&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812993</id>
		<title>Mod:Hunt Research Group/new gf script</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812993"/>
		<updated>2020-08-28T22:01:41Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* How to set up for Gaussian16 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A new gf script==&lt;br /&gt;
&lt;br /&gt;
This is a python script which does two jobs:&lt;br /&gt;
&lt;br /&gt;
#Edits .com files so that&lt;br /&gt;
##.chk filename matches the .com file &lt;br /&gt;
##the ncps requested is correct&lt;br /&gt;
##the memory requested for gaussian is correct.&lt;br /&gt;
#Submits the job(s) (you can use wildcards in the command) using the standard runscripts ([https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/hpc[link]]) stored in a folder in your home directory.&lt;br /&gt;
Note: the first 3 lines of the .com file need to exist for the editing process to work. ie. You have 3 lines (with anything or nothing on, doesn&#039;t matter) BEFORE your method line. If your method line is in the first 3 lines it will get overwritten and the script won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up for Gaussian16==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;ab1234&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 40 processors to the pqph queue to run on gaussian16 version a01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use a01 usually.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print(&amp;quot;version = &amp;quot; + version)&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print(&amp;quot;queue = &amp;quot; + queue)&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors:&lt;br /&gt;
#20, or 40&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print(&amp;quot;nprocs = &amp;quot; + nprocs)&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print(&amp;quot;job_input= &amp;quot; + job_input)&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;list of jobs: &amp;quot;)&lt;br /&gt;
print(jobs)&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print(&amp;quot;   &amp;quot;)&lt;br /&gt;
print(&amp;quot;runscript = &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;20&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=20\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;Error: nprocs (argument 3) may only be 20, or 40.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line)&lt;br /&gt;
print(&amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line)&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print(name + &amp;quot; chk_line = &amp;quot; + chk_line)&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [[:File:Hunt runscripts G16.zip|runscripts]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 40 processors in the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be a01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be pqph.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 20, or 40.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
a01_pqph_20&lt;br /&gt;
a01_pqph_40&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;br /&gt;
&lt;br /&gt;
==How to set up for g09==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;rr1210&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot;      will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use d01 usually or b01 for getting latest nbo.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph or pqchem&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors, as standard the options are the same as those defined by Tricia on the wiki:&lt;br /&gt;
#12, 24, 32, 40, 48&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;12&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=12\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=45000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;24&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=24\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;32&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=32\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;48&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=48\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=250000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 12, 24, 32, 40, 48.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be eith d01 or b01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be either pqph or pqchem.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 12, 24, 32, 40 or 48.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
b01_pqchem_12&lt;br /&gt;
b01_pqchem_24&lt;br /&gt;
b01_pqchem_32&lt;br /&gt;
b01_pqchem_40&lt;br /&gt;
b01_pqchem_48&lt;br /&gt;
b01_pqph_12&lt;br /&gt;
b01_pqph_24&lt;br /&gt;
b01_pqph_32&lt;br /&gt;
b01_pqph_40&lt;br /&gt;
b01_pqph_48&lt;br /&gt;
d01_pqchem_12&lt;br /&gt;
d01_pqchem_24&lt;br /&gt;
d01_pqchem_32&lt;br /&gt;
d01_pqchem_40&lt;br /&gt;
d01_pqchem_48&lt;br /&gt;
d01_pqph_12&lt;br /&gt;
d01_pqph_24&lt;br /&gt;
d01_pqph_32&lt;br /&gt;
d01_pqph_40&lt;br /&gt;
d01_pqph_48&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812992</id>
		<title>Mod:Hunt Research Group/new gf script</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812992"/>
		<updated>2020-08-28T21:30:52Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A new gf script==&lt;br /&gt;
&lt;br /&gt;
This is a python script which does two jobs:&lt;br /&gt;
&lt;br /&gt;
#Edits .com files so that&lt;br /&gt;
##.chk filename matches the .com file &lt;br /&gt;
##the ncps requested is correct&lt;br /&gt;
##the memory requested for gaussian is correct.&lt;br /&gt;
#Submits the job(s) (you can use wildcards in the command) using the standard runscripts ([https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/hpc[link]]) stored in a folder in your home directory.&lt;br /&gt;
Note: the first 3 lines of the .com file need to exist for the editing process to work. ie. You have 3 lines (with anything or nothing on, doesn&#039;t matter) BEFORE your method line. If your method line is in the first 3 lines it will get overwritten and the script won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up for Gaussian16==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;ab1234&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 40 processors to the pqph queue to run on gaussian16 version a01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use a01 usually.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors:&lt;br /&gt;
#20, or 40&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;20&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=20\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 20, or 40.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [[:File:Hunt runscripts G16.zip|runscripts]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 40 processors in the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be a01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be pqph.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 20, or 40.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
a01_pqph_20&lt;br /&gt;
a01_pqph_40&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;br /&gt;
&lt;br /&gt;
==How to set up for g09==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;rr1210&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot;      will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use d01 usually or b01 for getting latest nbo.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph or pqchem&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors, as standard the options are the same as those defined by Tricia on the wiki:&lt;br /&gt;
#12, 24, 32, 40, 48&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;12&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=12\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=45000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;24&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=24\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;32&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=32\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;48&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=48\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=250000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 12, 24, 32, 40, 48.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be eith d01 or b01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be either pqph or pqchem.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 12, 24, 32, 40 or 48.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
b01_pqchem_12&lt;br /&gt;
b01_pqchem_24&lt;br /&gt;
b01_pqchem_32&lt;br /&gt;
b01_pqchem_40&lt;br /&gt;
b01_pqchem_48&lt;br /&gt;
b01_pqph_12&lt;br /&gt;
b01_pqph_24&lt;br /&gt;
b01_pqph_32&lt;br /&gt;
b01_pqph_40&lt;br /&gt;
b01_pqph_48&lt;br /&gt;
d01_pqchem_12&lt;br /&gt;
d01_pqchem_24&lt;br /&gt;
d01_pqchem_32&lt;br /&gt;
d01_pqchem_40&lt;br /&gt;
d01_pqchem_48&lt;br /&gt;
d01_pqph_12&lt;br /&gt;
d01_pqph_24&lt;br /&gt;
d01_pqph_32&lt;br /&gt;
d01_pqph_40&lt;br /&gt;
d01_pqph_48&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812991</id>
		<title>Mod:Hunt Research Group/new gf script</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812991"/>
		<updated>2020-08-28T21:27:27Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A new gf script==&lt;br /&gt;
&lt;br /&gt;
This is a python script which does two jobs:&lt;br /&gt;
&lt;br /&gt;
#Edits .com files so that&lt;br /&gt;
##.chk filename matches the .com file &lt;br /&gt;
##the ncps requested is correct&lt;br /&gt;
##the memory requested for gaussian is correct.&lt;br /&gt;
#Submits the job(s) (you can use wildcards in the command) using the standard runscripts ([https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/hpc[link]]) stored in a folder in your home directory.&lt;br /&gt;
Note: the first 3 lines of the .com file need to exist for the editing process to work. ie. You have 3 lines (with anything or nothing on, doesn&#039;t matter) BEFORE your method line. If your method line is in the first 3 lines it will get overwritten and the script won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up for Gaussian16==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;ab1234&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 40 processors to the pqph queue to run on gaussian16 version a01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use a01 usually.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors:&lt;br /&gt;
#20, or 40&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;20&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=20\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 20, or 40.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[Hunt runscripts G16.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 40 processors in the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be a01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be pqph.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 20, or 40.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
a01_pqph_20&lt;br /&gt;
a01_pqph_40&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;br /&gt;
&lt;br /&gt;
==How to set up for g09==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;rr1210&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot;      will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use d01 usually or b01 for getting latest nbo.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph or pqchem&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors, as standard the options are the same as those defined by Tricia on the wiki:&lt;br /&gt;
#12, 24, 32, 40, 48&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;12&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=12\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=45000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;24&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=24\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;32&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=32\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;48&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=48\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=250000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 12, 24, 32, 40, 48.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be eith d01 or b01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be either pqph or pqchem.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 12, 24, 32, 40 or 48.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
b01_pqchem_12&lt;br /&gt;
b01_pqchem_24&lt;br /&gt;
b01_pqchem_32&lt;br /&gt;
b01_pqchem_40&lt;br /&gt;
b01_pqchem_48&lt;br /&gt;
b01_pqph_12&lt;br /&gt;
b01_pqph_24&lt;br /&gt;
b01_pqph_32&lt;br /&gt;
b01_pqph_40&lt;br /&gt;
b01_pqph_48&lt;br /&gt;
d01_pqchem_12&lt;br /&gt;
d01_pqchem_24&lt;br /&gt;
d01_pqchem_32&lt;br /&gt;
d01_pqchem_40&lt;br /&gt;
d01_pqchem_48&lt;br /&gt;
d01_pqph_12&lt;br /&gt;
d01_pqph_24&lt;br /&gt;
d01_pqph_32&lt;br /&gt;
d01_pqph_40&lt;br /&gt;
d01_pqph_48&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Hunt_runscripts_G16.zip&amp;diff=812990</id>
		<title>File:Hunt runscripts G16.zip</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Hunt_runscripts_G16.zip&amp;diff=812990"/>
		<updated>2020-08-28T21:23:21Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812989</id>
		<title>Mod:Hunt Research Group/new gf script</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/new_gf_script&amp;diff=812989"/>
		<updated>2020-08-28T21:17:29Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A new gf script==&lt;br /&gt;
&lt;br /&gt;
This is a python script which does two jobs:&lt;br /&gt;
&lt;br /&gt;
#Edits .com files so that&lt;br /&gt;
##.chk filename matches the .com file &lt;br /&gt;
##the ncps requested is correct&lt;br /&gt;
##the memory requested for gaussian is correct.&lt;br /&gt;
#Submits the job(s) (you can use wildcards in the command) using the standard runscripts ([https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/hpc[link]]) stored in a folder in your home directory.&lt;br /&gt;
Note: the first 3 lines of the .com file need to exist for the editing process to work. ie. You have 3 lines (with anything or nothing on, doesn&#039;t matter) BEFORE your method line. If your method line is in the first 3 lines it will get overwritten and the script won&#039;t work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up for Gaussian16==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;ab1234&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 40 processors to the pqph queue to run on gaussian16 version a01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use a01 usually.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors:&lt;br /&gt;
#20, or 40&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;20&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=20\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 20, or 40.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 20 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 20 processors to the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py a01 pqph 40 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 40 processors in the pqph queue to run on gaussian16 version a01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be a01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be pqph.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 20, or 40.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
a01_pqph_20&lt;br /&gt;
a01_pqph_40&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;br /&gt;
&lt;br /&gt;
==How to set up for g09==&lt;br /&gt;
&lt;br /&gt;
Go to /home/username/bin and type vi gf.py.&lt;br /&gt;
Press i and then copy and paste the following code in:&lt;br /&gt;
&lt;br /&gt;
(instructions continue below the code - ignore the instructions in the code for now, they are just to help out if you are not looking at this page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import os&lt;br /&gt;
import glob&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
############&lt;br /&gt;
#HOW TO RUN#&lt;br /&gt;
############&lt;br /&gt;
&lt;br /&gt;
# 0. Save this script in /rds/general/user/username/home as gf.py &lt;br /&gt;
&lt;br /&gt;
# 1. Enter your username here:&lt;br /&gt;
&lt;br /&gt;
username = &amp;quot;rr1210&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 2. Save the runscripts from https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script in a directory called /rds/general/user/username/home/bin/runscripts &lt;br /&gt;
&lt;br /&gt;
# 3. Go to the directory where your .com files are and type in: &lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py version queuname nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
# For example:&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot;      will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
# python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot;      will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01. &lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Setting the options#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#First variable sets which version of gaussian to use - use d01 usually or b01 for getting latest nbo.&lt;br /&gt;
&lt;br /&gt;
version = sys.argv[1]&lt;br /&gt;
print &amp;quot;version = &amp;quot; + version&lt;br /&gt;
&lt;br /&gt;
#Second variable sets the queue - pqph or pqchem&lt;br /&gt;
&lt;br /&gt;
queue = sys.argv[2]&lt;br /&gt;
print &amp;quot;queue = &amp;quot; + queue&lt;br /&gt;
&lt;br /&gt;
#Third variable sets the number of processors, as standard the options are the same as those defined by Tricia on the wiki:&lt;br /&gt;
#12, 24, 32, 40, 48&lt;br /&gt;
&lt;br /&gt;
nprocs = sys.argv[3]&lt;br /&gt;
print &amp;quot;nprocs = &amp;quot; + nprocs&lt;br /&gt;
&lt;br /&gt;
#Last variable is the input files. You can use wildcards but you need to add &amp;quot;quotes&amp;quot; around the input &lt;br /&gt;
&lt;br /&gt;
job_input = sys.argv[4]&lt;br /&gt;
print &amp;quot;job_input= &amp;quot; + job_input&lt;br /&gt;
jobs = []&lt;br /&gt;
for job in glob.glob(job_input):&lt;br /&gt;
    jobs.append(job)&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;list of jobs: &amp;quot;&lt;br /&gt;
print jobs&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
#Finding the runscript#&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
runscript = &amp;quot;/rds/general/user/&amp;quot; + username + &amp;quot;/home/bin/runscripts/&amp;quot; + version + &amp;quot;_&amp;quot; + queue + &amp;quot;_&amp;quot; + nprocs&lt;br /&gt;
print &amp;quot;   &amp;quot;&lt;br /&gt;
print &amp;quot;runscript = &amp;quot; + runscript&lt;br /&gt;
&lt;br /&gt;
########################&lt;br /&gt;
#Editing the input file#&lt;br /&gt;
########################&lt;br /&gt;
&lt;br /&gt;
#Getting the correct nprocs and mem lines for the .com files:&lt;br /&gt;
&lt;br /&gt;
gauss_nprocs_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
gauss_mem_line = &amp;quot;undefined&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if nprocs == &amp;quot;12&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=12\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=45000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;24&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=24\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;32&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=32\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=58000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;40&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=40\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=120000MB\n&amp;quot;&lt;br /&gt;
elif nprocs == &amp;quot;48&amp;quot;:&lt;br /&gt;
    gauss_nprocs_line = &amp;quot;%nprocs=48\n&amp;quot;&lt;br /&gt;
    gauss_mem_line = &amp;quot;%mem=250000MB\n&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;Error: nprocs (argument 3) may only be 12, 24, 32, 40, 48.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;gauss_nprocs_line = &amp;quot; + gauss_nprocs_line&lt;br /&gt;
print &amp;quot;gauss_mem_line = &amp;quot; + gauss_mem_line&lt;br /&gt;
&lt;br /&gt;
#Editing the files:&lt;br /&gt;
&lt;br /&gt;
for job in jobs:&lt;br /&gt;
&lt;br /&gt;
    #Getting the chk line to overwrite the input file&lt;br /&gt;
&lt;br /&gt;
    name_list = job.split(&amp;quot;.&amp;quot;)&lt;br /&gt;
    name = name_list[0]&lt;br /&gt;
    chk_line = &amp;quot;%chk=&amp;quot; + name + &amp;quot;.chk\n&amp;quot;&lt;br /&gt;
    print name + &amp;quot; chk_line = &amp;quot; + chk_line&lt;br /&gt;
&lt;br /&gt;
    #Overwriting the first 3 lines of the input file&lt;br /&gt;
&lt;br /&gt;
    with open(job, &amp;quot;r&amp;quot;) as file:&lt;br /&gt;
        file_lines = file.readlines()&lt;br /&gt;
       #print file_lines&lt;br /&gt;
    file_lines[0] = gauss_nprocs_line&lt;br /&gt;
    file_lines[1] = gauss_mem_line&lt;br /&gt;
    file_lines[2] = chk_line&lt;br /&gt;
    #print file_lines&lt;br /&gt;
    with open(job, &amp;quot;w&amp;quot;) as file:&lt;br /&gt;
        file.writelines(file_lines)&lt;br /&gt;
&lt;br /&gt;
#####################&lt;br /&gt;
#Submitting the jobs#&lt;br /&gt;
#####################&lt;br /&gt;
&lt;br /&gt;
#Getting the terminal to do this: &amp;quot;qsub -N jobname -v in=name runscript&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    print &amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript&lt;br /&gt;
    os.system(&amp;quot;qsub -N &amp;quot; + name + &amp;quot; -v in=&amp;quot; + name + &amp;quot; &amp;quot; + runscript)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then change the username = at the top to your own username, and press :wq enter to save and quit.&lt;br /&gt;
&lt;br /&gt;
Make a directory in /rds/general/user/username/home/bin/ called runscripts and put these scripts in it: [runscripts[https://wiki.ch.ic.ac.uk/wiki/images/a/aa/Phunt_new_gf_script_runscripts.zip]]&lt;br /&gt;
&lt;br /&gt;
==To use==&lt;br /&gt;
&lt;br /&gt;
Go to the directory where your .com files are and type in: &lt;br /&gt;
python /rds/general/user/username/home/bin/gf.py version queuename nprocs inputfiles&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqph 12 &amp;quot;01.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit job 01.com on 12 processors to the pqph queue to run on gaussian version d01.&lt;br /&gt;
&amp;lt;pre&amp;gt;python /rds/general/user/username/home/bin/gf.py d01 pqchem 32 &amp;quot;*.com&amp;quot; &amp;lt;/pre&amp;gt;     will submit all the .com files in the directory to run on 32 processors in the pqchem queue to run on gaussian version d01.&lt;br /&gt;
&lt;br /&gt;
==Possible options==&lt;br /&gt;
&lt;br /&gt;
The version option may be eith d01 or b01.&lt;br /&gt;
&lt;br /&gt;
The queue option may be either pqph or pqchem.&lt;br /&gt;
&lt;br /&gt;
The nprocs options can be 12, 24, 32, 40 or 48.&lt;br /&gt;
&lt;br /&gt;
Depending on which of these you use a different runscript from the runscripts folder is called. The list of runscripts that that are included by default are:&lt;br /&gt;
&lt;br /&gt;
b01_pqchem_12&lt;br /&gt;
b01_pqchem_24&lt;br /&gt;
b01_pqchem_32&lt;br /&gt;
b01_pqchem_40&lt;br /&gt;
b01_pqchem_48&lt;br /&gt;
b01_pqph_12&lt;br /&gt;
b01_pqph_24&lt;br /&gt;
b01_pqph_32&lt;br /&gt;
b01_pqph_40&lt;br /&gt;
b01_pqph_48&lt;br /&gt;
d01_pqchem_12&lt;br /&gt;
d01_pqchem_24&lt;br /&gt;
d01_pqchem_32&lt;br /&gt;
d01_pqchem_40&lt;br /&gt;
d01_pqchem_48&lt;br /&gt;
d01_pqph_12&lt;br /&gt;
d01_pqph_24&lt;br /&gt;
d01_pqph_32&lt;br /&gt;
d01_pqph_40&lt;br /&gt;
d01_pqph_48&lt;br /&gt;
&lt;br /&gt;
This is every combination of the above options. If you want to use a different option to the ones provided simply make the runscript you want to use, and name it with the same convention. If you want a different nprocs option you must also edit the script slightly in the section headed: Editing the input file, in the subsection: Getting the correct nprocs and mem lines for the .com files. You will just need to copy and paste an elif block and change the nprocs and the memory requested to whatever you want. It should be easy to copy what I did for the other examples.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/Getting_started_on_the_HPC&amp;diff=812988</id>
		<title>Mod:Hunt Research Group/Getting started on the HPC</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/Getting_started_on_the_HPC&amp;diff=812988"/>
		<updated>2020-08-28T21:05:46Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* Runscript */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The aim of this wiki is to get new users set up on the Imperial HPC and to take you through:&lt;br /&gt;
*Introduce the Imperial HPC&lt;br /&gt;
*Logging in to the HPC&lt;br /&gt;
*Setting up your HPC environment (.bashrc)&lt;br /&gt;
*Job submission&lt;br /&gt;
*Managing your jobs&lt;br /&gt;
&lt;br /&gt;
Before going through this wiki make sure that you have a:&lt;br /&gt;
*HPC account&lt;br /&gt;
*Are on the HPC Gaussian users list&lt;br /&gt;
&lt;br /&gt;
= What is the HPC? =&lt;br /&gt;
&lt;br /&gt;
HPC systems are usually composed of a cluster of nodes (computers). Just like your laptop/desktop, each node has CPUs (cores/processors), disk space and memory (RAM).&lt;br /&gt;
The imperial HPC has several clusters: CX1 (general), CX2 (high-end parallel jobs) and AX4 (big data). You will be using CX1 for your work.&lt;br /&gt;
&lt;br /&gt;
Upon logging in you will find yourself on one of the login nodes. These nodes act as a gateway to the actual compute nodes (where your jobs will be run) and are good for file transfers, small job testing and setting up software. Don&#039;t use the login node as the place to run your job (it slows it down for everyone!)&lt;br /&gt;
&lt;br /&gt;
From the login node, you will submit your jobs to the compute nodes on CX1. The job submission is handled by something called a &#039;&#039;&#039;scheduler&#039;&#039;&#039;. Imperial use PBS as the scheduler but others exist and all operate in a similar way with similar syntax. &lt;br /&gt;
The job of the scheduler is to submit (non-interactively) the job to run on the compute node appropriately to ensure the resources available are being used efficiently.&lt;br /&gt;
When you queue a job to run, you have to tell it which queue to send it to and the resources you want (number of processors, memory and walltime), the scheduler will do the rest.&lt;br /&gt;
&lt;br /&gt;
== Logging on ==&lt;br /&gt;
To login to the Imperial HPC from a Linux/Unix (mac) system a secure shell client can be used (ssh):&lt;br /&gt;
&lt;br /&gt;
# Open a terminal window&lt;br /&gt;
# Type the line:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt; ssh -XY username@login.cx1.hpc.imperial.ac.uk &amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Replacing username with your username e.g. th194&lt;br /&gt;
# If it is your first time logging in then you will be asked to accept the host, type yes to do so.&lt;br /&gt;
# Enter password when prompted&lt;br /&gt;
&lt;br /&gt;
You are now on one of the HPC login nodes!&lt;br /&gt;
&lt;br /&gt;
Notes: &lt;br /&gt;
* The -XY flags in the ssh command enable X11 forwarding&lt;br /&gt;
&lt;br /&gt;
=Setting up your .bashrc=&lt;br /&gt;
&lt;br /&gt;
Similarly to when setting up your local mac environment, you can use a .bashrc to set variables for your HPC bash environment.&lt;br /&gt;
Below are the steps to do so and an example .bashrc with some useful alias&#039; on. As you progress you can edit your .bashrc (always remember to source it to activate any updates) and if you think of any particularly useful lines then let the group know!&lt;br /&gt;
&lt;br /&gt;
#Using your favourite text editor create the file &#039;&#039;.bashrc&#039;&#039;&lt;br /&gt;
#Copy and paste the script below into the new file&amp;lt;p&amp;gt;&lt;br /&gt;
# Initialise your .bashrc by executing the command:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;source ~/.bashrc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Initial .bashrc to copy:&lt;br /&gt;
 &amp;lt;pre&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# Change the prompt&lt;br /&gt;
   export PS1=&amp;quot;[\$USER@\h]\$PWD \$ &amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Bash history commands&lt;br /&gt;
   HISTSIZE=100&lt;br /&gt;
   PATH=$PATH:~/bin&lt;br /&gt;
   EDITOR=vi&lt;br /&gt;
   export EDITOR&lt;br /&gt;
&lt;br /&gt;
# alias definitions&lt;br /&gt;
   alias force=&amp;quot;grep -i &#039;Maximum Force&#039;&amp;quot;&lt;br /&gt;
   alias dist=&amp;quot;grep -i &#039;Maximum Disp&#039;&amp;quot;&lt;br /&gt;
   alias energy=&amp;quot;grep -i &#039;SCF Done:&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   alias q=&#039;qstat&#039;&lt;br /&gt;
   alias qs=&amp;quot;qstat -q pqph&amp;quot;&lt;br /&gt;
   alias qq=&amp;quot;qstat -q&amp;quot;&lt;br /&gt;
   alias gv=&amp;quot;module load gaussian gaussview; gaussview&amp;quot;&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script mainly contains alias definitions. The most important ones for the HPC are probably the gv alias to allow easy loading of GuassView and the qstat aliases. Once you are more familiar with bash and your HPC use you should feel free to edit your .bashrc to suit you.&lt;br /&gt;
&lt;br /&gt;
You should now see that your command line prompt has changed. If it hasn&#039;t then the above hasn&#039;t worked. If it has then you can now see that you are logged on to one of the login nodes on the HPC (`user@login-#-internal` where # is the number of the login node).&lt;br /&gt;
&lt;br /&gt;
=Job Submission=&lt;br /&gt;
&lt;br /&gt;
To introduce you to the HPC we are going to run a test Gaussian calculation. To do this we need the necessary input files for the calculation (.com and .chk file) and a way to submit out Gaussian job to cx1 to run. Remember, the PBS scheduler manages running the job on the compute nodes. To run our job successfully PBS needs to know the resources and programs that our job requires. We use a runscript (or jobscript) to contain this information. The runscript is essentially a set of instructions on how to run the job.&lt;br /&gt;
&lt;br /&gt;
Therefore, to run our job we need:&lt;br /&gt;
* Input files (.com/.chk)&lt;br /&gt;
* A runscript to tell PBS how to run our job&lt;br /&gt;
&lt;br /&gt;
==Input Files==&lt;br /&gt;
&lt;br /&gt;
# In your home directory set up a folder for the test job and cd into this folder.&amp;lt;br /&amp;gt; If you have a job you want to run on the HPC then we will use that file. This file is likely to be located on your local machine somewhere, in which case: &lt;br /&gt;
# Open a new terminal window and cd to the directory where your .com file is located&lt;br /&gt;
# We want to copy this to your new directory on the hpc, which can be done with the command:&amp;lt;br /&amp;gt; &amp;lt;code&amp;gt;scp test.com username@login.hpc.ic.ac.uk:/rds/general/user/username/home&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt; This command is a secure copy and should be familiar from the unix cp command. &#039;&#039;&#039;Make sure you edit the destination to be the directory for your test job, put your shortcode instead of username and change the name of the file from test.com if it is different.&#039;&#039;&#039; &lt;br /&gt;
# Enter your password at the prompt&lt;br /&gt;
# If the copy was successful then your test .com file should now be located in your directory on the HPC.&lt;br /&gt;
# If the job requires a .chk file then repeat the process for this file&lt;br /&gt;
# A file created on your mac will not run on the hpc, it needs some additional information&lt;br /&gt;
# you need to add a &amp;lt;code&amp;gt;%mem=&amp;lt;/code&amp;gt; for how much memory is required and a &amp;lt;code&amp;gt;%nprocshared= &amp;lt;/code&amp;gt;for how many processors are required commands, the following is the first part of a test.com file setup for the hpc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=test.chk&lt;br /&gt;
%nprocshared=12&lt;br /&gt;
%mem=45000MB&lt;br /&gt;
# hf/3-21g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 C&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking the .com file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We now have a runscript and our input files within the directory. The resources requested in the run script above must match those entered at the top of your .com file.&lt;br /&gt;
#Open your .com file&lt;br /&gt;
#&#039;&#039;&#039;%chk&#039;&#039;&#039; should have the name of the checkpoint file which must be the same as the .com file&lt;br /&gt;
#&#039;&#039;&#039;%NProcShared&#039;&#039;&#039; is the number of processors requested and must match the number requested in the runscript. Edit it to 12.&lt;br /&gt;
#&#039;&#039;&#039;%mem&#039;&#039;&#039; should be slightly less than the memory requested in the runscript. Edit it to 46000MB&lt;br /&gt;
&lt;br /&gt;
NB: There is an easier way to access your files on the HPC which is to mount it locally, this is almost like creating a tunnel between the two so that they can see each other directly. See the bottom of the page for information on how to do this later.&lt;br /&gt;
&lt;br /&gt;
==Runscript==&lt;br /&gt;
&lt;br /&gt;
As mentioned before the runscript contains all of the instructions to successfully run our job. The runscript usually contains PBS directives, which tell PBS the resources our job needs, and then a list of commands executing the job.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To run our job we will be using Gaussian. Firstly, check that you are registered as a user for the Gaussian group. If you are not then the job will fail to run as you will not be able to execute Gaussian. If you are not on the list then email Tricia to get added. &lt;br /&gt;
&lt;br /&gt;
Gaussian and other programmes, such as GaussView, are available on the HPC as &#039;&#039;&#039;modules&#039;&#039;&#039;. To use a module you have to load it first, an example of module load commands were in the .bashrc file before.&lt;br /&gt;
&lt;br /&gt;
Useful commands:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;module avail&amp;lt;/code&amp;gt;: This lists the modules available on the HPC. The names of the modules are usually the programme name and the version (e.g. gaussian/g09-d01)&lt;br /&gt;
: &amp;lt;code&amp;gt;module load&amp;lt;/code&amp;gt;: Used to load a required module. Only once loaded can the program be used. (e.g.  &amp;lt;code&amp;gt;module load gaussian/g09-d01&amp;lt;/code&amp;gt; loads guassian to your local environment)&lt;br /&gt;
&lt;br /&gt;
We will be loading gaussian for use in our runscript.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Computational Resources&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To tell PBS the resources our job needs we use special PBS directives. These are lines in the script which start with &amp;lt;code&amp;gt;#PBS&amp;lt;/code&amp;gt;. Resource requests are denoted by the flag &amp;lt;code&amp;gt;-l&amp;lt;/code&amp;gt; and then the resource itself. These can be:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;walltime=[hhh:mm:ss]&amp;lt;/code&amp;gt;: The amount of real time the job requires to run. (There is usually a limit to the walltime available and this will change for each queue).&lt;br /&gt;
: &amp;lt;code&amp;gt;select=[integer]&amp;lt;/code&amp;gt;: The number of nodes our job needs to run on.&lt;br /&gt;
: &amp;lt;code&amp;gt;nprocs=[integer]&amp;lt;/code&amp;gt;: The number of processors on each node.&lt;br /&gt;
: &amp;lt;code&amp;gt;mem=[integer|GB/MB&amp;lt;/code&amp;gt;]: The amount of memory required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Queues&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We also need to tell PBS where to submit our job, this is the queue. The PBS directive to set the queue is:&lt;br /&gt;
: &amp;lt;code&amp;gt;-q [queue name]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several queues which you may have access too. A queue will have a set number of resources assigned to it and different limits (e.g. to walltime). The number of people who are using a queue defines how busy it will be and therefore, how long it may take waiting for your job to run. Specifying resources efficiently will help jobs run faster on the queue. &lt;br /&gt;
Queues include:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;pqph&#039;&#039;&#039; (various, see below) this is the hunt group queue, runs on the servers listed below&lt;br /&gt;
:: Each user has can have a &#039;&#039;&#039;maximum of 12 running jobs&#039;&#039;&#039;&lt;br /&gt;
:: To help balance usage please have a &#039;&#039;&#039;maximum of 20 jobs running or queued&#039;&#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039;pqchem&#039;&#039;&#039; (42 nodes) this is the chemistry department queue&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Script&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The below script is an example run script.&lt;br /&gt;
*The script starts with  &amp;quot;#!/bin/sh&amp;quot;, without this the job will always go to the queue &amp;quot;short&amp;quot; instead of the queue asked for.&lt;br /&gt;
*The next part of the script is the PBS directives discussed above which set the resources and variables needed.&lt;br /&gt;
*The module for gaussian is then loaded&lt;br /&gt;
*The script then checks to see if a .chk file exists and if so, copies it over to the temporary working directory on the compute node.&lt;br /&gt;
*The final section executes when the job has complete and searches for the output files (e.g. .log file) to copy back over to your home directory.&lt;br /&gt;
&lt;br /&gt;
The script needs to be placed in the directory you are running the job from:&lt;br /&gt;
#Open a new file &#039;rs20&#039; and copy the below into it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# submit jobs to the queue with this script using the following command:&lt;br /&gt;
# qsub -N jobname -v in=name rs20&lt;br /&gt;
# rs12 is this script&lt;br /&gt;
# jobname is a name you will see in the qstat command&lt;br /&gt;
# name is the actual file minus .com etc it is passed into this script as ${in}&lt;br /&gt;
&lt;br /&gt;
# batch processing commands&lt;br /&gt;
#PBS -l walltime=72:00:00&lt;br /&gt;
#PBS -l select=1:ncpus=20:mem=64000MB&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
&lt;br /&gt;
# load modules&lt;br /&gt;
#&lt;br /&gt;
  module load gaussian/g16-a01&lt;br /&gt;
&lt;br /&gt;
# check for a checkpoint file&lt;br /&gt;
#&lt;br /&gt;
# variable PBS_O_WORKDIR=directory from which the job was submitted.&lt;br /&gt;
   test -r $PBS_O_WORKDIR/${in}.chk&lt;br /&gt;
   if [ $? -eq 0 ]&lt;br /&gt;
   then&lt;br /&gt;
     echo &amp;quot;located $PBS_O_WORKDIR/${in}.chk&amp;quot;&lt;br /&gt;
     cp $PBS_O_WORKDIR/${in}.chk $TMPDIR/.&lt;br /&gt;
   else&lt;br /&gt;
     echo &amp;quot;no checkpoint file $PBS_O_WORKDIR/${in}.chk&amp;quot;&lt;br /&gt;
   fi   &lt;br /&gt;
#&lt;br /&gt;
# run gaussian&lt;br /&gt;
#&lt;br /&gt;
  g09 $PBS_O_WORKDIR/${in}.com&lt;br /&gt;
#&lt;br /&gt;
# job has ended copy back the checkpoint file&lt;br /&gt;
# check to see if there are other external files like .wfn or .mos and copy these as well&lt;br /&gt;
#&lt;br /&gt;
  cp $TMPDIR/${in}.chk /$PBS_O_WORKDIR/.&lt;br /&gt;
# exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now have compatible input files and a runscript. We are ready to submit our job!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Job Submission&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The instructions to submit a job are the same as those at the top of the runscript. We run the command:&lt;br /&gt;
&amp;lt;code&amp;gt; qsub -N jobname -v in=name rs12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;qsub&amp;lt;/code&amp;gt; is the PBS command to submit the job.&lt;br /&gt;
* jobname is the name you will see for your job in the qstat command&lt;br /&gt;
* name is the actual file minus .com etc it is passed into this script as ${in}&lt;br /&gt;
* rs12 is the name of the runscript&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;the run script must be in the same directory as your job!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Run the command with the appropriate substitutions&lt;br /&gt;
If successful, a job number (XXXXXXX.cx1) should be printed out to the terminal, this is your jobID which PBS assigns to a submitted job.&lt;br /&gt;
&lt;br /&gt;
= Monitoring your Job =&lt;br /&gt;
&lt;br /&gt;
Now that your job has been submitted you can monitor by using the command &amp;lt;code&amp;gt;qstat&amp;lt;/code&amp;gt;. This gives you the status of your jobs in the queues. Useful commands may be:&lt;br /&gt;
:&amp;lt;code&amp;gt;qstat&amp;lt;/code&amp;gt; to get your jobs that are running&lt;br /&gt;
:&amp;lt;code&amp;gt;qstat -q&amp;lt;/code&amp;gt; to get a list of all queues&lt;br /&gt;
:&amp;lt;code&amp;gt;qstat -f&amp;lt;/code&amp;gt; to get a full printout of all your queued jobs information&lt;br /&gt;
&lt;br /&gt;
To delete a job from the queue you can use the command:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;qdel [jobID]&amp;lt;/code&amp;gt; to remove a job from the queue&lt;br /&gt;
&lt;br /&gt;
In your .bashrc there was an alias set for some of these options. Typing &#039;q&#039; in the terminal should produce the same result as &#039;qstat&#039;.&lt;br /&gt;
The status of your job in the queue will either be Q (waiting to run), or R (running) and the run time so far.&lt;br /&gt;
&lt;br /&gt;
Keep checking your job until it has run. If successful then you the .log file should be copied back to your working directory, check this to see if your job was successful.&lt;br /&gt;
You will also find a file which has the extension: .o[jobID], this is the merged output and error files for your job. If there has been an error it will be detailed with this file along with the resources requested and used by your job.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ABCluster&amp;diff=812985</id>
		<title>Rep:Mod:ABCluster</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:ABCluster&amp;diff=812985"/>
		<updated>2020-07-20T14:39:22Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* Input files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General Comments on ABCluster==&lt;br /&gt;
&lt;br /&gt;
[http://www.zhjun-sci.com/software-abcluster-download.php ABCluster] enables structural searches on atomic and molecular clusters. It consists of five main utilities: atom-optimizer, rigidmol-optimizer, cg-optimizer, isomer, and lego.&lt;br /&gt;
&lt;br /&gt;
ABCluster can be run entirely on its on when used with the inbuilt force field procedures (atom-optimizer, rigidmol-optimizer, cg-optimizer).&lt;br /&gt;
&lt;br /&gt;
Additionally, ABCluster  (isomer, and lego) can be run in conjunction with third-party software, e.g. Gaussian to calculate geometries and energies from quantum chemical methods.&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: ABCluster does not realise if an optimization failed, e.g. due to convergence problems! The output will display a successfull job termination even if the calculation was aborted unexpectedly. Check the optimization files ABCluster is generating!&lt;br /&gt;
&lt;br /&gt;
==How to set up ABCluster on==&lt;br /&gt;
&lt;br /&gt;
===A Mac===&lt;br /&gt;
&lt;br /&gt;
The following instructions were tested on a Mac running MacOS Catalina.&lt;br /&gt;
&lt;br /&gt;
Installing ABCluster v.2.0:&lt;br /&gt;
&lt;br /&gt;
1.	[http://www.zhjun-sci.com/software-abcluster-download.php Download] the ABCluster binaries for Mac OS X&lt;br /&gt;
&lt;br /&gt;
2.	Untar the downloaded file&lt;br /&gt;
&lt;br /&gt;
3.	Rename the created folder ABCluster-MacOS to ABCluster&lt;br /&gt;
&lt;br /&gt;
4.	Move the folder ABCluster to the desired directory (e.g. /Applications)&lt;br /&gt;
&lt;br /&gt;
5.	Try to call one of the ABCluster submodules e.g. lego via: /Applications/ABCluster/isomer&lt;br /&gt;
&lt;br /&gt;
If the first lines of your output show the ABCluster logo below, you are lucky and can skip the following instuctions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       * * * * * * * * * * * * * * * * * *            &lt;br /&gt;
      *       ____   _____ _           _   *          &lt;br /&gt;
     *  /\   |  _ \ / ____| |         | |  * * * * *  &lt;br /&gt;
    *  /  \  | |_) | |    | |_   _ ___| |_ ___ _ __  *&lt;br /&gt;
   *  / /\ \ |  _ &amp;lt;| |    | | | | / __| __/ _ \ &#039;__| *&lt;br /&gt;
  *  / ____ \| |_) | |____| | |_| \__ \ ||  __/ |  *  &lt;br /&gt;
  * /_/    \_\____/ \_____|_|\__,_|___/\__\___|_|  *  &lt;br /&gt;
  *                                                *  &lt;br /&gt;
  * * * * * * * * * * * * * * * * * * * * * * * * *   &lt;br /&gt;
                                                      &lt;br /&gt;
&lt;br /&gt;
ABCluster 2.0&lt;br /&gt;
Specific flag:  official version&lt;br /&gt;
Platform:       Mac OS X&lt;br /&gt;
Compiled by:    Mac@wirelessprv-10-192-8-208.near.illinois.edu&lt;br /&gt;
Compiling date: Jul 30 2018 22:19:01&lt;br /&gt;
C++ compiler:   g++&lt;br /&gt;
C++ options:    -O3 -Os  --std=c++0x  -lboost_system &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most probably calling isomer will result in the following output instead:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dyld: Library not loaded: /usr/local/opt/boost/lib/libboost_system.dylib&lt;br /&gt;
  Referenced from: /Applications/ABCluster/./isomer&lt;br /&gt;
  Reason: image not found&lt;br /&gt;
zsh: abort      ./isomer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you experience this problem, you need to install boost 1.62.0. [https://walton.io/boost-v1-62-0-on-macos-sierra-9af5639f99b3 Here] are some instructions, which are outlined in the following section as well. &lt;br /&gt;
&lt;br /&gt;
The instructions rely on producing symlinks with [https://docs.brew.sh/Installation Homebrew]. So you maybe want to get the Homebrew before starting the installation of boost.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Installing boost v.1.62.0:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1.	Download [https://sourceforge.net/projects/boost/files/boost/1.62.0/ boost_1_62_0.tar.bz2] &lt;br /&gt;
&lt;br /&gt;
2.	Unpack the downloaded directory: tar xjf boost_1_62_0.tar.bz2&lt;br /&gt;
&lt;br /&gt;
3.	Go into the new folder: cd boost_1_62_0&lt;br /&gt;
&lt;br /&gt;
4.	Run the following two commands (execution of the second command takes some 5-10 minutes):&lt;br /&gt;
&lt;br /&gt;
a)	./bootstrap.sh --prefix=/usr/local/Cellar/boost162/1.62.0 --libdir=/usr/local/Cellar/boost162/1.62.0/lib&lt;br /&gt;
&lt;br /&gt;
b)	./b2 --prefix=/usr/local/Cellar/boost162/1.62.0 --libdir=/usr/local/Cellar/boost162/1.62.0/lib -d2 -j4 --layout=tagged install threading=multi,single link=shared,static address-model=64 architecture=x86 pch=off cxxflags=&amp;quot;-arch x86_64 -std=c++11 -stdlib=libc++&amp;quot; linkflags=-stdlib=libc++&lt;br /&gt;
&lt;br /&gt;
5.	Do the symlinks via: brew link boost162&lt;br /&gt;
&lt;br /&gt;
6.	Try to call lego again: /Applications/ABCluster/lego&lt;br /&gt;
&lt;br /&gt;
This should start ABCluster succesfully.&lt;br /&gt;
&lt;br /&gt;
===The HPC===&lt;br /&gt;
&lt;br /&gt;
Download [http://www.zhjun-sci.com/software-abcluster-download.php ABCluster] for Linux, untar it, and copy it into your $HOME directory on the HPC. cd into the ABCluster directory.&lt;br /&gt;
&lt;br /&gt;
First create a document called jobhold.sh and copy the following code inside:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Submit and get job ID.&lt;br /&gt;
me=`whoami`&lt;br /&gt;
jobid=`qsub -N abcluster submit.pbs | tail -1`&lt;br /&gt;
&lt;br /&gt;
# Detect if the job is finished.&lt;br /&gt;
sleep_time=10 # in second&lt;br /&gt;
jobstate=&amp;quot;Q&amp;quot;&lt;br /&gt;
while [ -n &amp;quot;${jobstate}&amp;quot; ]&lt;br /&gt;
do&lt;br /&gt;
  sleep ${sleep_time}&lt;br /&gt;
  jobstate=`qstat -u ${me} | grep ${jobid}`&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a document submit.pbs with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
#PBS -l walltime=119:59:00&lt;br /&gt;
#PBS -lselect=1:ncpus=24:mem=91000MB&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
&lt;br /&gt;
  module load gaussian/g09-d01&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
fn=filename&lt;br /&gt;
&lt;br /&gt;
# run gaussian&lt;br /&gt;
  pbsexec g09 ${fn}.com&lt;br /&gt;
#&lt;br /&gt;
  cp $TMPDIR/${in}.chk /$PBS_O_WORKDIR/.&lt;br /&gt;
#&lt;br /&gt;
# exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Input files==&lt;br /&gt;
&lt;br /&gt;
Most likely you want to run optimizations on molecular clusters using the lego utility. Four types of input files are needed: .inp, .cluster, .xyz, and a optfile. &lt;br /&gt;
&lt;br /&gt;
The content of .inp files differ sligthly when running ABCluster locally on a Mac or on the HPC.&lt;br /&gt;
&lt;br /&gt;
The following input files can be used to perform a structural search on the water dimer with Gaussian on the B3LYP/6-31G/GD3BJ level of theory.&lt;br /&gt;
&lt;br /&gt;
===.inp file on a Mac===&lt;br /&gt;
&lt;br /&gt;
This file set calculation details for ABCluster, like input and output files.&lt;br /&gt;
&lt;br /&gt;
Create H2O_2.inp:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H2O_2             # Result file name&lt;br /&gt;
H2O_2.cluster     # Cluster file name&lt;br /&gt;
cube 2.5 2 2 2    # Structure types&lt;br /&gt;
5                 # Number of calculations&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
./xyz2gaussian optfile $inp$ &amp;gt; $xxx$.com&lt;br /&gt;
g16 &amp;lt; $xxx$.com &amp;gt; $xxx$.log 2&amp;gt;/dev/null&lt;br /&gt;
./gaussian2xyz $xxx$.log &amp;gt; $out$&lt;br /&gt;
mv job.chk $xxx$.chk&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This file assumes you have set an alias g16 to start Gaussian. Change the corresponding line if your alias is different or set the alias accordingly in your .bashrc file.&lt;br /&gt;
&lt;br /&gt;
Check the manual for other sensible structure types than cube for your system.&lt;br /&gt;
&lt;br /&gt;
===.inp file on the HPC===&lt;br /&gt;
&lt;br /&gt;
Create H2O_2.inp:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H2O_2             # Result file name&lt;br /&gt;
H2O_2.cluster     # Cluster file name&lt;br /&gt;
cube 2.5 2 2 2    # Structure types&lt;br /&gt;
5                 # Number of calculations&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
./xyz2gaussian optfile $inp$ &amp;gt; $xxx$.com&lt;br /&gt;
sed -i &#039;11c fn=$xxx$&#039; submit.pbs&lt;br /&gt;
./jobhold.sh&lt;br /&gt;
./gaussian2xyz $xxx$.log &amp;gt; $out$&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===.cluster file===&lt;br /&gt;
&lt;br /&gt;
The .cluster file tells ABCluster where to find the monomer input structures and how many molecules of each species to put intp the cluster.&lt;br /&gt;
&lt;br /&gt;
Create H2O_2.cluster:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1                 # Number of .xyz files to be read&lt;br /&gt;
./H2O.xyz    2    # Path to a .xyz file and number of instances of the molecule to be created&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run a job on two different molecules simply add another line which is giving the path to the .xyz file of the second molecule and the number of molecules of this kind.&lt;br /&gt;
&lt;br /&gt;
===One or more .xyz files===&lt;br /&gt;
&lt;br /&gt;
The .xyz files define the monomer input structures. A .xyz file containing a good monomer structure could be a result of a previous Gaussian optimization.&lt;br /&gt;
&lt;br /&gt;
Create H2O.xyz:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
H2O&lt;br /&gt;
O      -1.594277    1.348303    0.000000&lt;br /&gt;
H      -0.632946    1.385547    0.000000&lt;br /&gt;
H      -1.880068    2.266926    0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===optfile===&lt;br /&gt;
&lt;br /&gt;
The optfile sets calculation details for the Gaussian optimizations.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nproc=2&lt;br /&gt;
%mem=500MB&lt;br /&gt;
%chk=job.chk&lt;br /&gt;
# opt b3lyp/6-31g empiricaldispersion=gd3bj&lt;br /&gt;
&lt;br /&gt;
water dimer search&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to run ABCluster on==&lt;br /&gt;
&lt;br /&gt;
===A Mac===&lt;br /&gt;
&lt;br /&gt;
Assuming all input files are in the same directory as the ABCluster utilities, cd into that directory first.&lt;br /&gt;
&lt;br /&gt;
Call ABCluster with: nohup ./lego H2O_2.inp &amp;gt;&amp;amp; H2O.out &amp;amp;&lt;br /&gt;
&lt;br /&gt;
If you are calling lego from outside the ABCluster directory you need to give the whole path to lego and the .inp file. Additionally, you need to modify the lines in the .inp file to call gaussian2xyz and xyz2gaussian.&lt;br /&gt;
&lt;br /&gt;
===The HPC===&lt;br /&gt;
&lt;br /&gt;
Do the same as you would on you local machine but load the appropriate compiler first: module load gcc/5.4.0&lt;br /&gt;
After job submission, lego will run on the login nodes and submit Gaussian optimizations pqph. CURRENTLY CHASING ICT TO FIND OUT IF LEGO IS TAKING UP A LOT OF RESOURCES ON THE LOGIN NODES.&lt;br /&gt;
&lt;br /&gt;
==Output==&lt;br /&gt;
&lt;br /&gt;
During one calculation run several output files will be generated. &lt;br /&gt;
&lt;br /&gt;
1. A .out file stating the energies of all structures generated during the run in a descending order.&lt;br /&gt;
&lt;br /&gt;
2. A series of Gaussian .com and .log files called abclusterUSERNAME_# -&amp;gt; Check if optimizations terminated normally!&lt;br /&gt;
&lt;br /&gt;
3. A directory called H2O_2-LM containing #.gjf and #.xyz files. These files specify output geometries and their energies.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812984</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812984"/>
		<updated>2020-07-10T08:59:26Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* =For Windows Users with a Linux subsystem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linux subsystem===&lt;br /&gt;
&lt;br /&gt;
Download and install [https://sourceforge.net/projects/xming/ Xming].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inlcude the following line in your .bashrc/.zshrc on your local computer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=localhost:0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start up Xming before opening a terminal window. ssh into the hpc and follow the instructions above.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812983</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812983"/>
		<updated>2020-07-09T13:54:50Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* =For Windows Users with a Linux subsystem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linux subsystem==&lt;br /&gt;
&lt;br /&gt;
Download and install [https://sourceforge.net/projects/xming/ Xming].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inlcude the following line in your .bashrc/.zshrc on your local computer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=localhost:0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start up Xming before opening a terminal window. ssh into the hpc and follow the instructions above.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812982</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812982"/>
		<updated>2020-07-09T13:54:24Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* =For Windows Users with a Linuxsubsystem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linux subsystem==&lt;br /&gt;
&lt;br /&gt;
Download and install [https://sourceforge.net/projects/xming/ Xming].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inlcude the following line in your .bashrc/.zshrc on your local computer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=localhost:0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start up Xming before opening a terminal window. Connect to the hpc via the ssh command and follow the instructions above.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812981</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812981"/>
		<updated>2020-07-09T13:54:15Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* =For Windows Users with a Linuxsubsystem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linuxsubsystem==&lt;br /&gt;
&lt;br /&gt;
Download and install [https://sourceforge.net/projects/xming/ Xming].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inlcude the following line in your .bashrc/.zshrc on your local computer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=localhost:0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start up Xming before opening a terminal window. Connect to the hpc via the ssh command and follow the instructions above.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812980</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812980"/>
		<updated>2020-07-09T13:53:31Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linuxsubsystem==&lt;br /&gt;
&lt;br /&gt;
Download and install [https://sourceforge.net/projects/xming/ Xming].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inlcude the following line in your .bashrc/.zshrc on your local computer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=localhost:0.0&lt;br /&gt;
&amp;lt;pre/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start up Xming before opening a terminal window. Connect to the hpc via the ssh command and follow the instructions above.&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812979</id>
		<title>Mod:Hunt Research Group/gview</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/gview&amp;diff=812979"/>
		<updated>2020-07-09T13:50:24Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to... use gaussview directly on the HPC ==&lt;br /&gt;
&lt;br /&gt;
In case you are a gussview user, and would like to have a look at your  calculations without copying them back to your local computer, you can add the line &lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussian&amp;lt;/code&amp;gt;&lt;br /&gt;
to your &#039;~/.bash_profile&#039; file on the HPC. I personally have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;module load gaussview&lt;br /&gt;
&lt;br /&gt;
module load gaussian&lt;br /&gt;
&lt;br /&gt;
module load gnuplot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but that is your choice. These commands provide access to the respective software packages from your shell. I use a few of the gaussian commands (not gaussian itself of course) and gnuplot directly from the shell. have a look at &#039;&#039;module avail&#039;&#039; to see if there is anything you need.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in.&lt;br /&gt;
&lt;br /&gt;
If you have MacOS 10.5 installed you just have to type &#039;&#039;gaussview [filename.log]&#039;&#039; in any SSH session to open gaussview. If you have MacOS 10.4, it has to be a xterm session (There might be a way around this restriction, but as I have a 10.5 here, I currently can not test it).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===For Windows Users with a Linuxsubsystem==&lt;br /&gt;
&lt;br /&gt;
Download and [https://sourceforge.net/projects/xming/ Xming]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812837</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812837"/>
		<updated>2020-06-19T09:29:47Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1) Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
&lt;br /&gt;
2) Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) A computer restart might be required for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
5) Press the windows button, search for Ubuntu, wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux6.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6) Use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hints:&lt;br /&gt;
&lt;br /&gt;
 -You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&lt;br /&gt;
&lt;br /&gt;
 -When you start up Ubuntu you will be in the following directory &#039;&#039;/mnt/c/Windows/System32&#039;&#039;. If you enter &#039;&#039;cd&#039;&#039; you will go to the home directory &#039;&#039;~&#039;&#039; which contains the &#039;&#039;.bashrc file&#039;&#039;. If you only want to create aliases, create a &#039;&#039;.bash_aliases&#039;&#039; file containing the alias definitions. Restarting the terminal or sourcing the &#039;&#039;.bashrc&#039;&#039; file again will activate the aliases. &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;
&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;
&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;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812836</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812836"/>
		<updated>2020-06-19T09:29:11Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1) Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
&lt;br /&gt;
2) Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) A computer restart might be required for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
5) ress the windows button, search for Ubuntu, wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux6.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6) Use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hints:&lt;br /&gt;
&lt;br /&gt;
 -You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&lt;br /&gt;
&lt;br /&gt;
 -When you start up Ubuntu you will be in the following directory &#039;&#039;/mnt/c/Windows/System32&#039;&#039;. If you enter &#039;&#039;cd&#039;&#039; you will go to the home directory &#039;&#039;~&#039;&#039; which contains the &#039;&#039;.bashrc file&#039;&#039;. If you only want to create aliases, create a &#039;&#039;.bash_aliases&#039;&#039; file containing the alias definitions. Restarting the terminal or sourcing the &#039;&#039;.bashrc&#039;&#039; file again will activate the aliases. &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;
&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;
&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;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812835</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812835"/>
		<updated>2020-06-19T09:20:53Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1) Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) A computer restart might be required for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
4) Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
5) Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
6) Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
[[Image:JB linux6.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linuxb.PNG&amp;diff=812834</id>
		<title>File:JB linuxb.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linuxb.PNG&amp;diff=812834"/>
		<updated>2020-06-19T09:19:12Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linuxa.PNG&amp;diff=812833</id>
		<title>File:JB linuxa.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linuxa.PNG&amp;diff=812833"/>
		<updated>2020-06-19T09:18:32Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux6.PNG&amp;diff=812832</id>
		<title>File:JB linux6.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux6.PNG&amp;diff=812832"/>
		<updated>2020-06-19T09:17:06Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux5.PNG&amp;diff=812831</id>
		<title>File:JB linux5.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux5.PNG&amp;diff=812831"/>
		<updated>2020-06-19T09:16:48Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux4.PNG&amp;diff=812830</id>
		<title>File:JB linux4.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux4.PNG&amp;diff=812830"/>
		<updated>2020-06-19T09:16:28Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux3.PNG&amp;diff=812829</id>
		<title>File:JB linux3.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux3.PNG&amp;diff=812829"/>
		<updated>2020-06-19T09:16:03Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux2.PNG&amp;diff=812828</id>
		<title>File:JB linux2.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux2.PNG&amp;diff=812828"/>
		<updated>2020-06-19T09:15:43Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux1.PNG&amp;diff=812827</id>
		<title>File:JB linux1.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:JB_linux1.PNG&amp;diff=812827"/>
		<updated>2020-06-19T09:15:26Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812826</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812826"/>
		<updated>2020-06-19T09:12:21Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* b) Install a Linux distribution for Windows (Windows10 only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1) Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
&lt;br /&gt;
2) Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
&lt;br /&gt;
3) A computer restart might be required for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
4) Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
&lt;br /&gt;
5) Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
&lt;br /&gt;
6) Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812825</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812825"/>
		<updated>2020-06-18T17:15:39Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* b) Install a Linux distribution for Windows (Windows10 only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812824</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812824"/>
		<updated>2020-06-18T16:30:35Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the &#039;&#039;session&#039;&#039; button in the top left corner and select &#039;&#039;SSH&#039;&#039; in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the &#039;&#039;Remote host&#039;&#039;, tick the &#039;&#039;Specify username&#039;&#039; box and enter your college login name in the abcd1234 format. Go to &#039;&#039;Advanced SSH settings&#039;&#039; and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Bookmark settings&#039;&#039; and change &#039;&#039;Session name&#039;&#039; to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812823</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812823"/>
		<updated>2020-06-18T13:41:21Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functional terminal which allows to perform all operations which are possible on native Linux machines.&lt;br /&gt;
You need to have around 500MB free disk space to install the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812822</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812822"/>
		<updated>2020-06-18T13:40:26Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC.&lt;br /&gt;
&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812821</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812821"/>
		<updated>2020-06-18T13:39:56Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812820</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812820"/>
		<updated>2020-06-18T13:39:13Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812819</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812819"/>
		<updated>2020-06-18T13:38:11Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG|693x693px]]&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
[[Image:Jb moba2.PNG|693x693px]]&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC).&lt;br /&gt;
[[Image:Jb moba3.PNG|693x693px]]&lt;br /&gt;
Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
[[Image:Jb moba4.PNG|693x693px]]&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
[[Image:Jb moba5.PNG|693x693px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812818</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812818"/>
		<updated>2020-06-18T13:36:38Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Jb moba1.PNG]]&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC). Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba5.PNG&amp;diff=812817</id>
		<title>File:Jb moba5.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba5.PNG&amp;diff=812817"/>
		<updated>2020-06-18T13:34:46Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba4.PNG&amp;diff=812816</id>
		<title>File:Jb moba4.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba4.PNG&amp;diff=812816"/>
		<updated>2020-06-18T13:34:20Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba3.PNG&amp;diff=812815</id>
		<title>File:Jb moba3.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba3.PNG&amp;diff=812815"/>
		<updated>2020-06-18T13:33:52Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812814</id>
		<title>File:Jb moba2.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812814"/>
		<updated>2020-06-18T13:33:09Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: Jb6518 uploaded a new version of File:Jb moba2.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812813</id>
		<title>File:Jb moba2.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812813"/>
		<updated>2020-06-18T13:33:06Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: Jb6518 uploaded a new version of File:Jb moba2.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba1.PNG&amp;diff=812812</id>
		<title>File:Jb moba1.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba1.PNG&amp;diff=812812"/>
		<updated>2020-06-18T13:32:32Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: Jb6518 uploaded a new version of File:Jb moba1.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812811</id>
		<title>File:Jb moba2.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba2.PNG&amp;diff=812811"/>
		<updated>2020-06-18T13:31:26Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba1.PNG&amp;diff=812810</id>
		<title>File:Jb moba1.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Jb_moba1.PNG&amp;diff=812810"/>
		<updated>2020-06-18T13:31:02Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812809</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812809"/>
		<updated>2020-06-18T12:19:31Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC from a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC). Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812808</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812808"/>
		<updated>2020-06-18T12:19:08Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC on a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;login.hpc.ic.ac.uk&#039;&#039; as the Remote host, tick the Specify username box and enter your college login name in the abcd1234 format. Go to Advanced SSH settings and make sure X11-Forwarding is enabled (needed to use GaussView on the HPC). Go to Bookmark settings and change Session name to something sensible (e.g. HPC or cx1...). Press OK.&lt;br /&gt;
&lt;br /&gt;
A new window should open up, asking you for your password. If you can login, you are all set up to use MobaXterm as you would use the terminal to work un the HPC.&lt;br /&gt;
When you close and open MobaXterm you can simply double-click the short-cut you created earlier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===b) Install a Linux distribution for Windows (Windows10 only)===&lt;br /&gt;
&lt;br /&gt;
Instructions on how to install Linux subsystem for Windows can be found on the [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Microsoft] webpage.&lt;br /&gt;
A short guide:&lt;br /&gt;
&lt;br /&gt;
1)Press the windows button and enter powershell, run Windows PowerShell as administrator.&lt;br /&gt;
2)Run dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart&lt;br /&gt;
3)A computer restart might be required for the changes to take effect.&lt;br /&gt;
4)Press the windows button, enter store, and open up the Microsoft Store. Search for Ubuntu (or any other Linux distribution you like), download it and double click the installer.&lt;br /&gt;
5)Wait for the installation to be finished, and create a new Linux user and password (this will be the admin and the password needed to run sudo commands).&lt;br /&gt;
6)Press the windows button, search for Ubuntu and use the command line as you would do normally.&lt;br /&gt;
&lt;br /&gt;
Hint: You can only open one command line window through the Ubuntu executable. If needed simply press the windows button, enter bash and enter to open up another terminal window. This way you can open as many terminal windows as you like.&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812807</id>
		<title>Mod:Hunt Research Group/hpc connections</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/hpc_connections&amp;diff=812807"/>
		<updated>2020-06-18T11:54:20Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;New version 18.06.2020 - Julian&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To access the HPC on a windows machine you can choose between two options:&lt;br /&gt;
&lt;br /&gt;
a) Use a ssh client&lt;br /&gt;
b) Install a Linux distribution for Windows (Windows10 only)&lt;br /&gt;
&lt;br /&gt;
Using a ssh client is straight forward and allows easy access to the HPC&lt;br /&gt;
Installing a Linux distribution is sligthly more complex but after the process you will have a completely functinoal terminal which allows to perform all operations which are possible on native Linux machines. You need to have around 500MB free disk space to insall the Linux distribution of you choice.&lt;br /&gt;
&lt;br /&gt;
===a) Use a ssh client===&lt;br /&gt;
&lt;br /&gt;
There are several options - my personal recommandation is [https://mobaxterm.mobatek.net/download.html MobaXterm]. Download and install the free &#039;&#039;Home Edition&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Open up the program and the widow you see should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the session button in the top left corner and select SSH in the new window:&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;
&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;
&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;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;First version on 25th June 09 – Hieu Nguyen&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HPC system runs on Unix so if you are using Macintosh, Linux or any other Unix-based operating systems, simply open a terminal and use the ssh command line:&lt;br /&gt;
&lt;br /&gt;
e.g. : ssh username@login.cx1.hpc.ic.ac.uk&lt;br /&gt;
&lt;br /&gt;
If you are Windows users, you have to use a ssh client in order to connect to HPC. There are quite a few available online for free such as PuTTY, OpenSSH, MobaXterm …. &lt;br /&gt;
Winscp has been recommended to me: http://winscp.net/eng/docs/introduction&lt;br /&gt;
&lt;br /&gt;
Another option is: http://www.cc.uoa.gr/fileadmin/cc.uoa.gr/uploads/files/software/SSHSecureShellClient-3.2.9.exe&lt;br /&gt;
&lt;br /&gt;
An example for using PuTTY and MobaXterm will be demonstrated below:&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
- Go to : http://chiark.greenend.org.uk/~sgtatham/putty/download.html to download the latest version of the software. Choose to download the file putty.exe (make sure you allow authentication for your firewall/Anti-virus to run the file) to a destination on your PC.&lt;br /&gt;
&lt;br /&gt;
- Run putty.exe. There will be a promt:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty1.JPG]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- In the Host Name (or IP address) box, type login.cx1.hpc.ic.ac.uk and press Open. It will open a terminal and a dialogue box:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Putty2.JPG]]&lt;br /&gt;
&lt;br /&gt;
- Click on Yes to continue.&lt;br /&gt;
- In the terminal window, key in your username in the space after ‘ login as ‘ and Enter. You will be required to type in your password in order to login in the next line:&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty3.JPG]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
- Press Enter after your password and you will be connected to HPC.&lt;br /&gt;
&lt;br /&gt;
=== MobaXterm ===&lt;br /&gt;
- Go to :https://mobaxterm.mobatek.net/[https://mobaxterm.mobatek.net/] to download the latest version of the software. Choose &#039;Get MobaXterm Now&#039; to download the program to a destination on your PC. &lt;br /&gt;
&lt;br /&gt;
-Ensure that you select the &#039;Home Edition&#039; version&lt;br /&gt;
&lt;br /&gt;
-Once installed, open the program and select &#039;start local terminal&#039; to begin a session&lt;br /&gt;
&lt;br /&gt;
[[File:MobaXterm.png|693x693px]]&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group&amp;diff=812654</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=812654"/>
		<updated>2020-06-03T12:32:46Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &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;
#advice [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;
#Moving large files and directories around [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/file_move link]&lt;br /&gt;
&lt;br /&gt;
===HPC Resources===&lt;br /&gt;
#Getting started and introduction to the HPC: [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Getting_started_on_the_HPC link]&lt;br /&gt;
#&#039;&#039;&#039;Hunt group HPC resources 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 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 run jobs interactively  [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/run_interactive 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;
#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;
#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;
#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 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 [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;
#How to use a slimmed down terminal on your IPhone [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/termius]&lt;br /&gt;
&lt;br /&gt;
===Using evil Windows and PCs===&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;
#Using windows and setting up a connection to HPC [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;
&lt;br /&gt;
===Key Papers, References and Resources===&lt;br /&gt;
*&#039;&#039;&#039;Papers&#039;&#039;&#039;&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;
#Box size for MD simulations of ILs [https://dx.doi.org/10.1063/1.4748352 doi]&lt;br /&gt;
*&#039;&#039;&#039;Notes&#039;&#039;&#039;&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;
#DFT Workshop Notes [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/DFT_Workshop]&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;
&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;
#partial optimisations and scans [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/z-matrix link]&lt;br /&gt;
#General procedure for locating transition state structures [[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;
#problems with scf convergence [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/scf_convergence 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;
#Population and charge analysis [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/population link]&lt;br /&gt;
&lt;br /&gt;
===Gaussian Advanced===&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;
#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;
#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;
#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;
#Correcting the entropy due to low modes [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:low_modes_entropy link]&lt;br /&gt;
#Optimisation of charged molecules in an electric field [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Optimising_charged_molecules_in_electric_fields link]&lt;br /&gt;
#Multidimensional Scans of Internal Coordinates [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Multidimensional_Scans_of_Internal_Coordinates link]&lt;br /&gt;
#Conformational search of atomic and molecular clusters with ABCluster [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:ABCluster#.inp_file_on_the_HPC link]&lt;br /&gt;
&lt;br /&gt;
===Solvation===&lt;br /&gt;
#Using the SMD model [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;
#Troublesome optimisations in SMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:troublesome_smd link]&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;
#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;
====Python and Python codes====&lt;br /&gt;
# Using and installing python [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/python link]&lt;br /&gt;
# Python toolkit currently focussed towards gaussian analysis [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molLego link]&lt;br /&gt;
# Standalone python scripts and analysis: &lt;br /&gt;
#* List the energy for each step of a gaussian log file, find the lowest energy and produce a quick graph in kJ/mol [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_energy link]&lt;br /&gt;
#* Build a frequency file from an optimisation file ready to submit, this will require editing for your particular job [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/build_freq 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 last structure of gaussian optimisation and build a freq com file for job with PP [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/build_freq_file link]&lt;br /&gt;
#* Extract each optimised step from a scan into xyz coordinate file [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_scan_geom link]&lt;br /&gt;
#* Extract thermodynamic data and low frequencies from log files (python 2) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:simple_freq_script link]&lt;br /&gt;
#* Extract thermodynamic data and low frequencies from log files to enter into excel template provided for the database (python 3) [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group:model_freq_script 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;
#* 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;
#* 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;
#* Script to pull thermodynamic data and low frequencies from log files AND evaluate to a reference [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;
#* Codes to visualise data matrices (correlation matrices/heatmaps)[https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/heatmap link]&lt;br /&gt;
#* Python API for analysis of Gaussian computations [https://pygauss.readthedocs.org - Documentation]&lt;br /&gt;
#* Charge arm [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/charge_arm link]&lt;br /&gt;
#* Extract the MO orbital energies and concert to eV  [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/MO_energies link]&lt;br /&gt;
&lt;br /&gt;
====Other codes====&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;
# Optimally Tuned Range Separated 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;
===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;
#once downloaded and installed you need to send tricia your aimall-serialnumber.txt file, and she will arrange for a aimallpro.lic or license file for you&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;
#AIMAll 19.10.12 on iMacs [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:AIMAllQuickFix 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;
*&#039;&#039;&#039;MOs&#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;
&lt;br /&gt;
===Setup and Running Classical MD Simulations===&lt;br /&gt;
====dl_poly====&lt;br /&gt;
#DLPOLY_4.0 Installation for an IMac [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Installing_DL_POLY_4.09_on_MacOS_Mojave link]&lt;br /&gt;
#DLPOLY_Classic Installation for an IMac [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Installing_DL_POLY_classic link]&lt;br /&gt;
&lt;br /&gt;
#DL_POLY FAQs [http://www.stfc.ac.uk/cse/DL_POLY/ccp1gui/38621.aspx] from DL_POLY webpage.&lt;br /&gt;
#some basics for getting started using DL_POLY [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/dl_poly_basics  link]&lt;br /&gt;
#control file basics [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/control_basics  link]&lt;br /&gt;
*useful links&lt;br /&gt;
::[https://www.ccp5.ac.uk https://www.ccp5.ac.uk]&lt;br /&gt;
::[https://www.scd.stfc.ac.uk/Pages/DL_POLY.aspx https://www.scd.stfc.ac.uk/Pages/DL_POLY.aspx]&lt;br /&gt;
::[ftp://ftp.dl.ac.uk/ccp5/DL_POLY/DL_POLY_4.0/DOCUMENTS/USRMAN4.pdf dlpoly4 user manual]&lt;br /&gt;
::[ftp://ftp.dl.ac.uk/ccp5/DL_POLY/DL_POLY_4.0/DOCUMENTS/JavaGUI.pdf javagui user manual]&lt;br /&gt;
::[ftp://ftp.dl.ac.uk/ccp5/DL_POLY/ dlpoly ftp server]&lt;br /&gt;
:::you can find test files in DL_POLY_4.0/DATA&lt;br /&gt;
:::more info about the dlpoly test files [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/DL_POLY_test_files link]&lt;br /&gt;
&lt;br /&gt;
====gromacs====&lt;br /&gt;
#GROMACS installing and getting started with gromacs [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/gromacs_1 link]&lt;br /&gt;
#using Agilio Padua force fields for ionic liquids [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/ilff  link]&lt;br /&gt;
#Packmol installing and running to generate a starting box [https://www.ch.ic.ac.uk/wiki/index.php/Mod:Hunt_Research_Group/packmol_1 link]&lt;br /&gt;
#initial rough relaxation [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/Starting_MD link] &lt;br /&gt;
#GROMACS general run [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/gromacs_run link] &lt;br /&gt;
#GROMACS viewing data [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/gromacs_viewing_MD link] &lt;br /&gt;
#GROMACS control file [https://www.ch.ic.ac.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/gromacs_control_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;
====general====&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;
#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;
#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;
*&#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;
*&#039;&#039;&#039;Python Genereal&#039;&#039;&#039;&lt;br /&gt;
# General python recommendations and set up [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PythonGeneral link]&lt;br /&gt;
# Analysis toolkit mainly geared towards processing Gaussian calculations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_Analysis_Tools 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;
#Run SAPT calculations using Psi4 [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT 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;
&lt;br /&gt;
===Running QM/MM Simulations in ChemShell===&lt;br /&gt;
&lt;br /&gt;
==Tcl-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;
==Py-chemshell==&lt;br /&gt;
&lt;br /&gt;
# Compiling Chemshell and required programs []&lt;br /&gt;
# The DL_POLY_4 manual is available for download at this link [ftp://ftp.dl.ac.uk/ccp5/DL_POLY/DL_POLY_4.0/DOCUMENTS/USRMAN4.pdf]&lt;br /&gt;
# Molecular Mechanics computation with DL_POLY [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Chemshell:_MM_Single_Point_computation]&lt;br /&gt;
# Basic QM/MM single point and optimisations [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Chemshell:Chemshell:_QM/MM_Single_Point_and_optimisation]&lt;br /&gt;
# Visualise optimisation trajectories in VMD [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Chemshell:Chemshell:_Visualising_trajectories_with_VMD]&lt;br /&gt;
# Computing Mulliken charges and creating .wfn inputs for AIM analysis [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Chemshell:Chemshell:_Mulliken]&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>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=812653</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=812653"/>
		<updated>2020-06-03T12:30:06Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
===Installing Psi4 on the HPC===&lt;br /&gt;
&lt;br /&gt;
Psi4 comes as a pyhton module, thus we can use conda to create personal versions of Psi4 on the HPC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Create your personal conda&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Have a look at the [https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/support/applications/conda/ HPC webpage].&lt;br /&gt;
&lt;br /&gt;
The command to install your personal conda is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;anaconda-setup&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Create a Psi4 environment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Load conda via:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;module load anaconda3/personal&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a Psi4 environment of the latest stable Psi4 release which will be called p4env via:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;conda create -n p4env psi4 -c psi4&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Check the installation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Load the environment you just created:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;conda activate p4env&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the version you installed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;psi4 --version&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
&lt;br /&gt;
Copy the submission script below into a file called p4run.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N psi4job&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
#PBS -l walltime=5:00:00&lt;br /&gt;
#PBS -l select=1:ncpus=20:mem=5gb&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
# Load relevant modules&lt;br /&gt;
module load anaconda3/personal&lt;br /&gt;
source activate p4env&lt;br /&gt;
#export MYSCRATCH=/scratch/user/psi4.$PBS_JOBID&lt;br /&gt;
#foreach i (`sort $PBS_NODEFILE | uniq`)&lt;br /&gt;
#    echo &amp;quot;Creating scratch directory &amp;quot; ${MYSCRATCH} &amp;quot; on &amp;quot; $i&lt;br /&gt;
#    ssh $i rm -rf ${MYSCRATCH}&lt;br /&gt;
#    ssh $i mkdir -p ${MYSCRATCH}&lt;br /&gt;
#end&lt;br /&gt;
#unsetenv PSIDATADIR&lt;br /&gt;
# Change directory and set scratch directory&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
export PSI_SCRATCH=$TMPDIR&lt;br /&gt;
#if ! ( $?PSIPATH ) setenv PSIPATH &amp;quot;&amp;quot;&lt;br /&gt;
#setenv PSIPATH /path/to/external/modules:${PSIPATH}&lt;br /&gt;
# Execute psi4 job&lt;br /&gt;
psi4 -i ${in}.in -o ${in}.out -n 20&lt;br /&gt;
#foreach i (`sort $PBS_NODEFILE | uniq`)&lt;br /&gt;
#    echo &amp;quot;Removing scratch directory &amp;quot; ${MYSCRATCH} &amp;quot; on &amp;quot; $i&lt;br /&gt;
#    ssh $i rm -rf ${MYSCRATCH}&lt;br /&gt;
#end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; You need to specify the memory and number of CPUs as usual in the submission script (#PBS -l select=1:ncpus=20:mem=30gb). You still need to take care that these numbers match the number of CPUs you give in the fifth row from the bottom (psi4 -i ${in}.in -o ${in}.out -n &#039;&#039;&#039;20&#039;&#039;&#039;) and the memory specified in the actual input file. If you have mismatching parameters the job still might start running but not with the full capacity of the recourses you requested. For example if you request 20 cores and 30 GB of memory in the submission script but you only submit the job with 4 cores and 5 GB, you will have 16 cores and 20 GB which are not used during the computation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example Input===&lt;br /&gt;
&lt;br /&gt;
Here is an examplpe input file for the SAPT(2) calculation of the H3N-HCl dimer. Copy the content into a file called NH4Cl.in&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 16 GB&lt;br /&gt;
&lt;br /&gt;
molecule mol {&lt;br /&gt;
0 1&lt;br /&gt;
N        1.876377    0.000001   -0.000006&lt;br /&gt;
H        2.237648    0.661745   -0.680615&lt;br /&gt;
H        2.237486    0.258575    0.913443&lt;br /&gt;
H        2.237570   -0.920339   -0.232740&lt;br /&gt;
--&lt;br /&gt;
0 1&lt;br /&gt;
Cl      -1.177795    0.000000   -0.000001&lt;br /&gt;
H        0.175168    0.000012   -0.000026&lt;br /&gt;
&lt;br /&gt;
units angstrom&lt;br /&gt;
symmetry c1&lt;br /&gt;
no_reorient&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
set basis         6-311+G(d,p)&lt;br /&gt;
&lt;br /&gt;
energy(&#039;sapt2&#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Assuming that both the PBS script and the input file are located in the same directory, submit the job via:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;qsub -N SAPT2 -v in=NH4Cl p4run.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results of the SAPT(2) calculation is a .out file. At the end of the NH4Cl.out file you will find the results of the SAPT(2) analysis which should be similar to this (slight differences might occur depending on the version of Psi4 you used):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    SAPT Results&lt;br /&gt;
  --------------------------------------------------------------------------------------------------------&lt;br /&gt;
    Electrostatics                -36.32899016 [mEh]     -22.79678645 [kcal/mol]     -95.38176366 [kJ/mol]&lt;br /&gt;
      Elst10,r                    -36.63905676 [mEh]     -22.99135619 [kcal/mol]     -96.19584351 [kJ/mol]&lt;br /&gt;
      Elst12,r                      0.31006660 [mEh]       0.19456974 [kcal/mol]       0.81407985 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Exchange                       51.13218109 [mEh]      32.08592939 [kcal/mol]     134.24754146 [kJ/mol]&lt;br /&gt;
      Exch10                       48.11718409 [mEh]      30.19399013 [kcal/mol]     126.33166682 [kJ/mol]&lt;br /&gt;
      Exch10(S^2)                  46.43751367 [mEh]      29.13998098 [kcal/mol]     121.92169213 [kJ/mol]&lt;br /&gt;
      Exch11(S^2)                   0.99070562 [mEh]       0.62167719 [kcal/mol]       2.60109761 [kJ/mol]&lt;br /&gt;
      Exch12(S^2)                   2.02429139 [mEh]       1.27026208 [kcal/mol]       5.31477704 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Induction                     -22.98775238 [mEh]     -14.42503300 [kcal/mol]     -60.35434386 [kJ/mol]&lt;br /&gt;
      Ind20,r                     -25.00378267 [mEh]     -15.69011116 [kcal/mol]     -65.64743140 [kJ/mol]&lt;br /&gt;
      Ind22                        -1.93327324 [mEh]      -1.21314732 [kcal/mol]      -5.07580888 [kJ/mol]&lt;br /&gt;
      Exch-Ind20,r                 14.66201899 [mEh]       9.20055621 [kcal/mol]      38.49513087 [kJ/mol]&lt;br /&gt;
      Exch-Ind22                    1.13365603 [mEh]       0.71137993 [kcal/mol]       2.97641390 [kJ/mol]&lt;br /&gt;
      delta HF,r (2)              -11.84637149 [mEh]      -7.43371065 [kcal/mol]     -31.10264835 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Dispersion                     -7.02240313 [mEh]      -4.40662468 [kcal/mol]     -18.43731942 [kJ/mol]&lt;br /&gt;
      Disp20                       -9.19384826 [mEh]      -5.76922712 [kcal/mol]     -24.13844860 [kJ/mol]&lt;br /&gt;
      Exch-Disp20                   2.17144513 [mEh]       1.36260245 [kcal/mol]       5.70112918 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
  Total HF                        -10.71000784 [mEh]      -6.72063166 [kcal/mol]     -28.11912557 [kJ/mol]&lt;br /&gt;
  Total SAPT0                     -17.73241096 [mEh]     -11.12725634 [kcal/mol]     -46.55644499 [kJ/mol]&lt;br /&gt;
  Total SAPT2                     -15.20696457 [mEh]      -9.54251473 [kcal/mol]     -39.92588548 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
  Special recipe for scaled SAPT0 (see Manual):&lt;br /&gt;
    Electrostatics sSAPT0         -36.63905676 [mEh]     -22.99135619 [kcal/mol]     -96.19584351 [kJ/mol]&lt;br /&gt;
    Exchange sSAPT0                48.11718409 [mEh]      30.19399013 [kcal/mol]     126.33166682 [kJ/mol]&lt;br /&gt;
    Induction sSAPT0              -20.53889410 [mEh]     -12.88835117 [kcal/mol]     -53.92486646 [kJ/mol]&lt;br /&gt;
    Dispersion sSAPT0              -6.77815052 [mEh]      -4.25335384 [kcal/mol]     -17.79603418 [kJ/mol]&lt;br /&gt;
  Total sSAPT0                    -15.83891729 [mEh]      -9.93907107 [kcal/mol]     -41.58507733 [kJ/mol]&lt;br /&gt;
  --------------------------------------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=812652</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=812652"/>
		<updated>2020-06-03T12:29:09Z</updated>

		<summary type="html">&lt;p&gt;Jb6518: /* Example Input */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
===Installing Psi4 on the HPC===&lt;br /&gt;
&lt;br /&gt;
Psi4 comes as a pyhton module, thus we can use conda to create personal versions of Psi4 on the HPC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Create your personal conda&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Have a look at the [https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/support/applications/conda/ HPC webpage].&lt;br /&gt;
&lt;br /&gt;
The command to install your personal conda is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;anaconda-setup&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Create a Psi4 environment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Load conda via:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;module load anaconda3/personal&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a Psi4 environment of the latest stable Psi4 release which will be called p4env via:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;conda create -n p4env psi4 -c psi4&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Check the installation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Load the environment you just created:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;conda activate p4env&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the version you installed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;psi4 --version&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
&lt;br /&gt;
Copy the submission script below into a file called p4run.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#PBS -N psi4job&lt;br /&gt;
#PBS -q pqph&lt;br /&gt;
#PBS -l walltime=5:00:00&lt;br /&gt;
#PBS -l select=1:ncpus=20:mem=5gb&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
# Load relevant modules&lt;br /&gt;
module load anaconda3/personal&lt;br /&gt;
source activate p4env&lt;br /&gt;
#export MYSCRATCH=/scratch/user/psi4.$PBS_JOBID&lt;br /&gt;
#foreach i (`sort $PBS_NODEFILE | uniq`)&lt;br /&gt;
#    echo &amp;quot;Creating scratch directory &amp;quot; ${MYSCRATCH} &amp;quot; on &amp;quot; $i&lt;br /&gt;
#    ssh $i rm -rf ${MYSCRATCH}&lt;br /&gt;
#    ssh $i mkdir -p ${MYSCRATCH}&lt;br /&gt;
#end&lt;br /&gt;
#unsetenv PSIDATADIR&lt;br /&gt;
# Change directory and set scratch directory&lt;br /&gt;
cd $PBS_O_WORKDIR&lt;br /&gt;
export PSI_SCRATCH=$TMPDIR&lt;br /&gt;
#if ! ( $?PSIPATH ) setenv PSIPATH &amp;quot;&amp;quot;&lt;br /&gt;
#setenv PSIPATH /path/to/external/modules:${PSIPATH}&lt;br /&gt;
# Execute psi4 job&lt;br /&gt;
psi4 -i ${in}.in -o ${in}.out -n 20&lt;br /&gt;
#foreach i (`sort $PBS_NODEFILE | uniq`)&lt;br /&gt;
#    echo &amp;quot;Removing scratch directory &amp;quot; ${MYSCRATCH} &amp;quot; on &amp;quot; $i&lt;br /&gt;
#    ssh $i rm -rf ${MYSCRATCH}&lt;br /&gt;
#end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; You need to specify the memory and number of CPUs as usual in the submission script (#PBS -l select=1:ncpus=20:mem=30gb). You still need to take care that these numbers match the number of CPUs you give in the fifth row from the bottom (psi4 -i ${in}.in -o ${in}.out -n &#039;&#039;&#039;20&#039;&#039;&#039;) and the memory specified in the actual input file. If you have mismatching parameters the job still might start running but not with the full capacity of the recourses you requested. For example if you request 20 cores and 30 GB of memory in the submission script but you only submit the job with 4 cores and 5 GB, you will have 16 cores and 20 GB which are not used during the computation.&lt;br /&gt;
&lt;br /&gt;
===Example Input===&lt;br /&gt;
&lt;br /&gt;
Here is an examplpe input file for the SAPT(2) calculation of the H3N-HCl dimer. Copy the content into a file called NH4Cl.in&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 16 GB&lt;br /&gt;
&lt;br /&gt;
molecule mol {&lt;br /&gt;
0 1&lt;br /&gt;
N        1.876377    0.000001   -0.000006&lt;br /&gt;
H        2.237648    0.661745   -0.680615&lt;br /&gt;
H        2.237486    0.258575    0.913443&lt;br /&gt;
H        2.237570   -0.920339   -0.232740&lt;br /&gt;
--&lt;br /&gt;
0 1&lt;br /&gt;
Cl      -1.177795    0.000000   -0.000001&lt;br /&gt;
H        0.175168    0.000012   -0.000026&lt;br /&gt;
&lt;br /&gt;
units angstrom&lt;br /&gt;
symmetry c1&lt;br /&gt;
no_reorient&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
set basis         6-311+G(d,p)&lt;br /&gt;
&lt;br /&gt;
energy(&#039;sapt2&#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Assuming that both the PBS script and the input file are located in the same directory, submit the job via:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;qsub -N SAPT2 -v in=NH4Cl p4run.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results of the SAPT(2) calculation is a .out file. At the end of the NH4Cl.out file you will find the results of the SAPT(2) analysis which should be similar to this (slight differences might occur depending on the version of Psi4 you used):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    SAPT Results&lt;br /&gt;
  --------------------------------------------------------------------------------------------------------&lt;br /&gt;
    Electrostatics                -36.32899016 [mEh]     -22.79678645 [kcal/mol]     -95.38176366 [kJ/mol]&lt;br /&gt;
      Elst10,r                    -36.63905676 [mEh]     -22.99135619 [kcal/mol]     -96.19584351 [kJ/mol]&lt;br /&gt;
      Elst12,r                      0.31006660 [mEh]       0.19456974 [kcal/mol]       0.81407985 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Exchange                       51.13218109 [mEh]      32.08592939 [kcal/mol]     134.24754146 [kJ/mol]&lt;br /&gt;
      Exch10                       48.11718409 [mEh]      30.19399013 [kcal/mol]     126.33166682 [kJ/mol]&lt;br /&gt;
      Exch10(S^2)                  46.43751367 [mEh]      29.13998098 [kcal/mol]     121.92169213 [kJ/mol]&lt;br /&gt;
      Exch11(S^2)                   0.99070562 [mEh]       0.62167719 [kcal/mol]       2.60109761 [kJ/mol]&lt;br /&gt;
      Exch12(S^2)                   2.02429139 [mEh]       1.27026208 [kcal/mol]       5.31477704 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Induction                     -22.98775238 [mEh]     -14.42503300 [kcal/mol]     -60.35434386 [kJ/mol]&lt;br /&gt;
      Ind20,r                     -25.00378267 [mEh]     -15.69011116 [kcal/mol]     -65.64743140 [kJ/mol]&lt;br /&gt;
      Ind22                        -1.93327324 [mEh]      -1.21314732 [kcal/mol]      -5.07580888 [kJ/mol]&lt;br /&gt;
      Exch-Ind20,r                 14.66201899 [mEh]       9.20055621 [kcal/mol]      38.49513087 [kJ/mol]&lt;br /&gt;
      Exch-Ind22                    1.13365603 [mEh]       0.71137993 [kcal/mol]       2.97641390 [kJ/mol]&lt;br /&gt;
      delta HF,r (2)              -11.84637149 [mEh]      -7.43371065 [kcal/mol]     -31.10264835 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
    Dispersion                     -7.02240313 [mEh]      -4.40662468 [kcal/mol]     -18.43731942 [kJ/mol]&lt;br /&gt;
      Disp20                       -9.19384826 [mEh]      -5.76922712 [kcal/mol]     -24.13844860 [kJ/mol]&lt;br /&gt;
      Exch-Disp20                   2.17144513 [mEh]       1.36260245 [kcal/mol]       5.70112918 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
  Total HF                        -10.71000784 [mEh]      -6.72063166 [kcal/mol]     -28.11912557 [kJ/mol]&lt;br /&gt;
  Total SAPT0                     -17.73241096 [mEh]     -11.12725634 [kcal/mol]     -46.55644499 [kJ/mol]&lt;br /&gt;
  Total SAPT2                     -15.20696457 [mEh]      -9.54251473 [kcal/mol]     -39.92588548 [kJ/mol]&lt;br /&gt;
&lt;br /&gt;
  Special recipe for scaled SAPT0 (see Manual):&lt;br /&gt;
    Electrostatics sSAPT0         -36.63905676 [mEh]     -22.99135619 [kcal/mol]     -96.19584351 [kJ/mol]&lt;br /&gt;
    Exchange sSAPT0                48.11718409 [mEh]      30.19399013 [kcal/mol]     126.33166682 [kJ/mol]&lt;br /&gt;
    Induction sSAPT0              -20.53889410 [mEh]     -12.88835117 [kcal/mol]     -53.92486646 [kJ/mol]&lt;br /&gt;
    Dispersion sSAPT0              -6.77815052 [mEh]      -4.25335384 [kcal/mol]     -17.79603418 [kJ/mol]&lt;br /&gt;
  Total sSAPT0                    -15.83891729 [mEh]      -9.93907107 [kcal/mol]     -41.58507733 [kJ/mol]&lt;br /&gt;
  --------------------------------------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jb6518</name></author>
	</entry>
</feed>