<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=OPTIM%2FQ-Chem_Tutorial</id>
	<title>OPTIM/Q-Chem Tutorial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=OPTIM%2FQ-Chem_Tutorial"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=OPTIM/Q-Chem_Tutorial&amp;action=history"/>
	<updated>2026-04-12T04:38:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=OPTIM/Q-Chem_Tutorial&amp;diff=1190&amp;oldid=prev</id>
		<title>Adk44: Created page with &quot;== Setup Q-Chem == First ensure that Q-Chem is installed: if   qchem gives   Need at least to specify the input file.   Usage: qchem [ -save ] [ -np procs ] infile [ outfile ]...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=OPTIM/Q-Chem_Tutorial&amp;diff=1190&amp;oldid=prev"/>
		<updated>2019-05-10T17:26:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Setup Q-Chem == First ensure that Q-Chem is installed: if   qchem gives   Need at least to specify the input file.   Usage: qchem [ -save ] [ -np procs ] infile [ outfile ]...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Setup Q-Chem ==&lt;br /&gt;
First ensure that Q-Chem is installed:&lt;br /&gt;
if&lt;br /&gt;
  qchem&lt;br /&gt;
gives&lt;br /&gt;
  Need at least to specify the input file.&lt;br /&gt;
  Usage: qchem [ -save ] [ -np procs ] infile [ outfile ] [ dir ]&lt;br /&gt;
then skip to the next section.  Otherwise you will need to add the following line to your ~/.bashrc file, and then source your ~/.bashrc&lt;br /&gt;
  . ~ajwt3/code/qchem/qcsetup.bash&lt;br /&gt;
&lt;br /&gt;
== H&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O test ==&lt;br /&gt;
&lt;br /&gt;
create a new directory with the following files&lt;br /&gt;
h2o.inp&lt;br /&gt;
  $comment&lt;br /&gt;
  water    HF   3-21G*   Single point energy&lt;br /&gt;
  $end&lt;br /&gt;
  &lt;br /&gt;
  $molecule&lt;br /&gt;
  0  1&lt;br /&gt;
  O        -0.4160001815        0.0000000000        0.0454252753&lt;br /&gt;
  H        -0.9343018760        0.0000000000       -0.8673296731&lt;br /&gt;
  H         0.3503028923        0.0000000000        0.0194028911&lt;br /&gt;
  $end&lt;br /&gt;
  &lt;br /&gt;
  $rem&lt;br /&gt;
  EXCHANGE           HF       Exact exchange&lt;br /&gt;
  BASIS              3-21G*   Basis Set&lt;br /&gt;
  SCF_CONVERGENCE    8        Tight convergence&lt;br /&gt;
  jobtype force&lt;br /&gt;
  sym_ignore true&lt;br /&gt;
  $end&lt;br /&gt;
h2o&lt;br /&gt;
  $comment&lt;br /&gt;
  water    HF   3-21G*   Single point energy&lt;br /&gt;
  $end&lt;br /&gt;
  &lt;br /&gt;
  $molecule&lt;br /&gt;
  0  1&lt;br /&gt;
  O        -0.4160001815        0.0000000000        0.0454252753&lt;br /&gt;
  H        -0.9343018760        0.0000000000       -0.8673296731&lt;br /&gt;
  H         0.3503028923        0.0000000000        0.0194028911&lt;br /&gt;
  $end&lt;br /&gt;
  &lt;br /&gt;
  $rem&lt;br /&gt;
  scf_guess read&lt;br /&gt;
  EXCHANGE           HF       Exact exchange&lt;br /&gt;
  BASIS              3-21G*   Basis Set&lt;br /&gt;
  SCF_CONVERGENCE    8        Tight convergence&lt;br /&gt;
  jobtype force&lt;br /&gt;
  sym_ignore true&lt;br /&gt;
  $end&lt;br /&gt;
and odata&lt;br /&gt;
  STEPS           20&lt;br /&gt;
  DEBUG&lt;br /&gt;
  QCHEM &amp;#039;qchem -save&amp;#039; &amp;#039;h2o&amp;#039; &amp;#039;h2osavedir&amp;#039;&lt;br /&gt;
  BFGSMIN 1.0D-5&lt;br /&gt;
  POINTS&lt;br /&gt;
&lt;br /&gt;
h2o.inp will be used to create an initial scf calculation which will be used to restart the OPTIM runs&lt;br /&gt;
  qchem -save h2o.inp h2o.out h2osavedir&lt;br /&gt;
This will create h2o.out as well as $QCSCRATCH/h2osavedir where the converged calculation will save its files.  Without the -save, Q-Chem will delete its working files.&lt;br /&gt;
Check that it&amp;#039;s actually worked:&lt;br /&gt;
  ajwt3@dexter:~/calc/qchem_optim_test/test1$ tail h2o.out &lt;br /&gt;
   Total job time:  0.12s(wall), 0.11s(cpu) &lt;br /&gt;
   Wed Sep 18 17:44:58 2013&lt;br /&gt;
  &lt;br /&gt;
          *************************************************************&lt;br /&gt;
          *                                                           *&lt;br /&gt;
          *  Thank you very much for using Q-Chem.  Have a nice day.  *&lt;br /&gt;
          *                                                           *&lt;br /&gt;
          *************************************************************&lt;br /&gt;
If not then email me to work out what&amp;#039;s wrong.&lt;br /&gt;
&lt;br /&gt;
Now we can inspect the QCHEM line of the odata file.  The first option is how to run Q-Chem.  The second is the input file name, and the third is Q-Chem&amp;#039;s working directory.&lt;br /&gt;
The only difference between h2o and h2o.inp is that the former includes the line&lt;br /&gt;
  scf_guess read&lt;br /&gt;
which indicates it should restart from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
Now you can run OPTIM and sit back and relax.&lt;/div&gt;</summary>
		<author><name>Adk44</name></author>
	</entry>
</feed>