<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sagacioushours.org.uk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wikiadmin</id>
	<title>wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://sagacioushours.org.uk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wikiadmin"/>
	<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php/Special:Contributions/Wikiadmin"/>
	<updated>2026-05-25T15:15:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31072</id>
		<title>Ibarramyes</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31072"/>
		<updated>2026-05-22T08:43:21Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==lab marking==&lt;br /&gt;
You have a good working wiki. It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 1.53e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_nh3smaller.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:NH3_OPTF_POP_MI_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#d5b3ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NH3_OPTF_POP_MI_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (H-N-H)=106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||1089 || 1693|| 1693 || 3461|| 3589|| 3589&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 145|| 14|| 14|| 1|| 0.3|| 0.3&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_IRspectra_nh3.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_nh3ChargeAnalysisFull.PNG ]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.375&lt;br /&gt;
|-&lt;br /&gt;
| H|| -1.125&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file||MI_N2F2_OPTF_POP_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 3.17e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table and Low Frequencies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
 Low frequencies ---    0.0005    0.0005    0.0013    3.2233    4.3533    5.0998&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_N2F2image.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:MI_N2F2_OPTF_POP_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized  N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#edd1ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;MI_N2F2_OPTF_POP_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.391&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N=N)1.220&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (F-N=N)=35&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||348 || 561|| 772 || 949|| 987|| 1637&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 0.6|| 0|| 75|| 75|| 81|| 21&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_N2F2_IRspectra.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
[[File:MI_N2F2_ChargeAnalysis.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.215&lt;br /&gt;
|-&lt;br /&gt;
| F|| -0.215&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
[[File:MI_N2F2_MO9.PNG |350px ]] [[File:MI_n2f2_LCAO.jpg |350px ]]&lt;br /&gt;
&lt;br /&gt;
=== Additional Questions about N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Q. How many vibrations are expected from the 3N-6 rule? &amp;lt;br&amp;gt;&lt;br /&gt;
A. N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; has 4 atoms, therefore 3(4)-6=6; so 6 vibrations are expected.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
A. There are 6 vibrational modes but due to its symmetry, some modes have 0 intensity. Only the modes that can change the dipole moment will appear visible on the IR spectrum. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
A. The vibration at 949cm-1&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. What is the nature of the highest energy vibration&amp;lt;br&amp;gt;&lt;br /&gt;
A. The N=N stretch&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
A. MO 1 and MO 2 are for the S orbitals for the F, and MO 3 and MO 4 for the S orbitals for the N&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Computational Lab 2==&lt;br /&gt;
&lt;br /&gt;
==BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-26.615324&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000002&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| D3H&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
           Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000004     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000003     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000017     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000011     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            1                      2                      3&lt;br /&gt;
                     A2&amp;quot;                    ?A                     ?A&lt;br /&gt;
 Frequencies --   1162.9745              1213.1390              1213.1392&lt;br /&gt;
 Red. masses --      1.2531                 1.1072                 1.1072&lt;br /&gt;
 Frc consts  --      0.9986                 0.9600                 0.9600&lt;br /&gt;
 IR Inten    --     92.5682                14.0550                14.0544&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00  -0.16    -0.10   0.00   0.00     0.00  -0.10   0.00&lt;br /&gt;
     2   1     0.00   0.00   0.57     0.81   0.00   0.00     0.00  -0.08   0.00&lt;br /&gt;
     3   1     0.00   0.00   0.57     0.14  -0.39   0.00    -0.39   0.59   0.00&lt;br /&gt;
     4   1     0.00   0.00   0.57     0.14   0.39   0.00     0.39   0.59   0.00&lt;br /&gt;
                      4                      5                      6&lt;br /&gt;
                     ?B                     ?A                     ?A&lt;br /&gt;
 Frequencies --   2582.5813              2715.7180              2715.7189&lt;br /&gt;
 Red. masses --      1.0078                 1.1273                 1.1273&lt;br /&gt;
 Frc consts  --      3.9604                 4.8987                 4.8987&lt;br /&gt;
 IR Inten    --      0.0000               126.3320               126.3260&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00   0.00    -0.11   0.00   0.00     0.00  -0.11   0.00&lt;br /&gt;
     2   1     0.00   0.58   0.00    -0.02   0.00   0.00     0.00   0.81   0.00&lt;br /&gt;
     3   1    -0.50  -0.29   0.00     0.60   0.36   0.00     0.36   0.19   0.00&lt;br /&gt;
     4   1     0.50  -0.29   0.00     0.60  -0.36   0.00    -0.36   0.19   0.00&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;ub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| MI_NH3BH3_opt.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy|| -&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| -&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000002     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000001     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000021     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000009     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                       1                      2                      3&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --    263.3534               632.9708               638.4420&lt;br /&gt;
 Red. masses --      1.0078                 5.0021                 1.0452&lt;br /&gt;
 Frc consts  --      0.0412                 1.1808                 0.2510&lt;br /&gt;
 IR Inten    --      0.0000                14.0108                 3.5497&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.01   0.36     0.29  -0.03   0.00     0.44   0.10   0.04&lt;br /&gt;
     2   1     0.00   0.31  -0.19     0.29   0.02   0.03    -0.33   0.13   0.01&lt;br /&gt;
     3   1     0.00  -0.32  -0.18     0.29   0.02  -0.03    -0.10   0.14   0.05&lt;br /&gt;
     4   1     0.00   0.01   0.45    -0.36   0.00   0.00     0.56   0.17   0.06&lt;br /&gt;
     5   1     0.00  -0.39  -0.22    -0.36   0.00   0.00    -0.13   0.20   0.07&lt;br /&gt;
     6   1     0.00   0.38  -0.23    -0.36   0.00   0.00    -0.43   0.19   0.03&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.48   0.00   0.00     0.00  -0.03  -0.01&lt;br /&gt;
     8   7     0.00   0.00   0.00    -0.36   0.00   0.00     0.00  -0.05  -0.01&lt;br /&gt;
                      4                      5                      6&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --    638.5038              1069.1625              1069.1794&lt;br /&gt;
 Red. masses --      1.0452                 1.3347                 1.3347&lt;br /&gt;
 Frc consts  --      0.2511                 0.8989                 0.8989&lt;br /&gt;
 IR Inten    --      3.5466                40.5061                40.5107&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1    -0.13  -0.03   0.15     0.58   0.04   0.07    -0.26  -0.01   0.15&lt;br /&gt;
     2   1    -0.31  -0.06   0.12    -0.51   0.10  -0.02    -0.37  -0.10   0.09&lt;br /&gt;
     3   1     0.45  -0.02   0.11    -0.07   0.15   0.08     0.63   0.00   0.04&lt;br /&gt;
     4   1    -0.17  -0.05   0.20    -0.41  -0.06  -0.05     0.18   0.03  -0.12&lt;br /&gt;
     5   1     0.57  -0.04   0.17     0.05  -0.11  -0.06    -0.44   0.02  -0.07&lt;br /&gt;
     6   1    -0.40  -0.07   0.18     0.36  -0.09  -0.01     0.26   0.07  -0.09&lt;br /&gt;
     7   5     0.00   0.01  -0.03     0.00  -0.12  -0.05     0.00   0.05  -0.12&lt;br /&gt;
     8   7     0.00   0.01  -0.05     0.00   0.10   0.04     0.00  -0.04   0.10&lt;br /&gt;
                      7                      8                      9&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   1196.1906              1203.5375              1203.5588&lt;br /&gt;
 Red. masses --      1.1451                 1.0608                 1.0608&lt;br /&gt;
 Frc consts  --      0.9654                 0.9053                 0.9053&lt;br /&gt;
 IR Inten    --    108.9560                 3.4683                 3.4681&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.55   0.17   0.00    -0.18  -0.10  -0.57    -0.21  -0.09   0.49&lt;br /&gt;
     2   1     0.55  -0.09  -0.15    -0.09   0.63  -0.33     0.27   0.15  -0.24&lt;br /&gt;
     3   1     0.55  -0.08   0.15     0.28   0.06   0.18    -0.05   0.66   0.33&lt;br /&gt;
     4   1    -0.02   0.00   0.00     0.01   0.00   0.01     0.02   0.00  -0.01&lt;br /&gt;
     5   1    -0.02   0.00   0.00    -0.02   0.00   0.00     0.00  -0.01  -0.01&lt;br /&gt;
     6   1    -0.02   0.00   0.00     0.01  -0.01   0.01    -0.02   0.00   0.00&lt;br /&gt;
     7   5    -0.11   0.00   0.00     0.00  -0.05   0.06     0.00  -0.06  -0.05&lt;br /&gt;
     8   7    -0.02   0.00   0.00     0.00  -0.01   0.01     0.00  -0.01  -0.01&lt;br /&gt;
                     10                     11                     12&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   1328.8294              1676.0351              1676.0418&lt;br /&gt;
 Red. masses --      1.1792                 1.0555                 1.0555&lt;br /&gt;
 Frc consts  --      1.2268                 1.7470                 1.7470&lt;br /&gt;
 IR Inten    --    113.6263                27.5647                27.5648&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.00   0.00     0.01   0.00   0.01     0.01   0.00  -0.01&lt;br /&gt;
     2   1     0.00   0.00   0.00    -0.01   0.00  -0.01     0.00   0.01  -0.01&lt;br /&gt;
     3   1     0.00   0.00   0.00     0.00   0.01   0.01    -0.01   0.00   0.00&lt;br /&gt;
     4   1     0.53   0.21   0.00    -0.23  -0.11   0.46    -0.17  -0.10  -0.59&lt;br /&gt;
     5   1     0.53  -0.10   0.19    -0.04   0.66   0.34     0.28   0.01   0.18&lt;br /&gt;
     6   1     0.53  -0.11  -0.18     0.26   0.18  -0.27    -0.11   0.62  -0.31&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.00  -0.01   0.00     0.00   0.00   0.01&lt;br /&gt;
     8   7    -0.11   0.00   0.00     0.00  -0.05  -0.04     0.00  -0.04   0.05&lt;br /&gt;
                     13                     14                     15&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   2471.9755              2532.0644              2532.0918&lt;br /&gt;
 Red. masses --      1.0218                 1.1176                 1.1176&lt;br /&gt;
 Frc consts  --      3.6789                 4.2217                 4.2218&lt;br /&gt;
 IR Inten    --     67.2020               231.2493               231.2395&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1    -0.15   0.56  -0.01     0.01  -0.04  -0.01    -0.21   0.78  -0.02&lt;br /&gt;
     2   1    -0.15  -0.29  -0.48     0.18   0.35   0.56     0.12   0.21   0.37&lt;br /&gt;
     3   1    -0.15  -0.27   0.49    -0.19  -0.34   0.61     0.10   0.16  -0.32&lt;br /&gt;
     4   1     0.01   0.00   0.00     0.00   0.00   0.00    -0.01  -0.01   0.00&lt;br /&gt;
     5   1     0.01   0.00   0.00     0.00   0.00  -0.01     0.00   0.00   0.00&lt;br /&gt;
     6   1     0.01   0.00   0.00     0.00   0.00  -0.01     0.00  -0.01   0.00&lt;br /&gt;
     7   5     0.04   0.00   0.00     0.00   0.00  -0.10     0.00  -0.10   0.00&lt;br /&gt;
     8   7     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.00&lt;br /&gt;
                     16                     17                     18&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   3464.0944              3581.1221              3581.1454&lt;br /&gt;
 Red. masses --      1.0270                 1.0921                 1.0921&lt;br /&gt;
 Frc consts  --      7.2611                 8.2518                 8.2519&lt;br /&gt;
 IR Inten    --      2.5107                27.9530                27.9537&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.00   0.00     0.00   0.01   0.00     0.00   0.00   0.00&lt;br /&gt;
     2   1     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.01&lt;br /&gt;
     3   1     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.01&lt;br /&gt;
     4   1    -0.18   0.55  -0.01    -0.28   0.76  -0.01     0.00   0.01  -0.02&lt;br /&gt;
     5   1    -0.18  -0.26   0.48     0.15   0.18  -0.35    -0.24  -0.32   0.57&lt;br /&gt;
     6   1    -0.18  -0.28  -0.47     0.14   0.18   0.33     0.25   0.35   0.57&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.00&lt;br /&gt;
     8   7     0.04   0.00   0.00     0.00  -0.08   0.00     0.00   0.00  -0.08&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Clauseluke&amp;diff=31071</id>
		<title>Clauseluke</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Clauseluke&amp;diff=31071"/>
		<updated>2026-05-22T08:42:09Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==lab marking==&lt;br /&gt;
It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. Please pay a bit more attention to overall formatting. overall a decent attempt. Also, you have uploaded an incorrect file for N2F2. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| lukeclausenNH3optfpop.log&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set||| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000000153&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Optimised molecule image===&lt;br /&gt;
[[file:LdcoptfNH3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my NH3&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LUKECLAUSENNH3OPTFPOP.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(H-N-H)106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===IR NH2===&lt;br /&gt;
[[file:LUKECLAUSENNH3OPTFPOP ir.png|450px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mode||1||2||3||4||5||6&lt;br /&gt;
|-&lt;br /&gt;
|frequency(cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)||1089.37||1693.93||1693.93||3461.38||3589.93||3589.93&lt;br /&gt;
|-&lt;br /&gt;
|intensity||145.4277||13.5571||13.5572||1.0593||0.2699||0.2699&lt;br /&gt;
|-&lt;br /&gt;
|symmetry||A1||E||E||A1||E||E&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---   -5.6864   -3.6131   -3.6124    0.0017    0.0048    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
===charges and MO===&lt;br /&gt;
[[file:ChargesNH3ldc.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==Project Molecule==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| lukeclausenN2F2optfpop.log&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set||| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000000317&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimised molecule image===&lt;br /&gt;
[[file:LDCoptfN2F2.png|150px]]&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENN2F2OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my N2F2&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LUKECLAUSENN2F2OPTFPOP.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.28&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-N)=1.23&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(N-N-F)120.0&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===IR N2F2===&lt;br /&gt;
[[file:LUKECLAUSENN2F2OPTFPOP_ir.png|450px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mode||1||2||3||4||5||6&lt;br /&gt;
|-&lt;br /&gt;
|frequency(cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)||347.8772||561.2472||771.6105||949.4548 || 987.2543||1636.6075&lt;br /&gt;
|-&lt;br /&gt;
|intensity||0.6108||0.000||74.7044||75.4125||81.1265||20.5391&lt;br /&gt;
|-&lt;br /&gt;
|symmetry||A1||A2||B2||A1||B2||A1&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---   -0.0015   -0.0012   -0.0010    3.2225    4.3532    5.1001&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===IR questions===&lt;br /&gt;
How many vibrations are expected from the 3N-6 rule? &lt;br /&gt;
&lt;br /&gt;
3N-6 -&amp;gt; (3*4)-6 = 6 vibrations&lt;br /&gt;
&lt;br /&gt;
Why are there only 4 peaks in the IR spectrum? &lt;br /&gt;
&lt;br /&gt;
Even though there being 6 vibrational modes only some of these are IR active such as symmetric vibrations because cis-N2F2 is small and highly symmetrical some of the movements have no or very little change in dipole moment, and do not appear. they might also just be too small&lt;br /&gt;
&lt;br /&gt;
Which vibration is the asymmetric N-F stretch?&lt;br /&gt;
&lt;br /&gt;
Vibration 3&lt;br /&gt;
&lt;br /&gt;
What is the nature of the highest energy vibration? &lt;br /&gt;
N=N stretch, they move together and then pull apart&lt;br /&gt;
&lt;br /&gt;
==MO and Charges==&lt;br /&gt;
&lt;br /&gt;
[[file:LukeclausenN2F2Orbitlal9MO.png|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:LDCoptfN2F2 charges.png|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Mo9 ldc.jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Lcao ldc.jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
the F - N bonds are showing because they are long and weak and as a result the software doesnt visualise them&lt;br /&gt;
&lt;br /&gt;
the core orbital is n= 1, s orbital&lt;br /&gt;
&lt;br /&gt;
==charge range==&lt;br /&gt;
-0.197 to 0.197&lt;br /&gt;
&lt;br /&gt;
=comp chem lab2=&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| lukeclausenNH3optfpop.log&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set||| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000000153&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Optimised molecule image===&lt;br /&gt;
[[file:LdcoptfNH3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my NH3&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LUKECLAUSENNH3OPTFPOP.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(H-N-H)106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===IR NH3===&lt;br /&gt;
[[file:LUKECLAUSENNH3OPTFPOP ir.png|450px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mode||1||2||3||4||5||6&lt;br /&gt;
|-&lt;br /&gt;
|frequency(cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)||1089.37||1693.93||1693.93||3461.38||3589.93||3589.93&lt;br /&gt;
|-&lt;br /&gt;
|intensity||145.4277||13.5571||13.5572||1.0593||0.2699||0.2699&lt;br /&gt;
|-&lt;br /&gt;
|symmetry||A1||E||E||A1||E||E&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---   -5.6864   -3.6131   -3.6124    0.0017    0.0048    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
===charges and MO===&lt;br /&gt;
[[file:ChargesNH3ldc.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule==&lt;br /&gt;
[[media:LDC_BH3_OPTF_REAL.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my BH3&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LDC_BH3_OPTF_REAL.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| :LDC_BH3_OPTF_REAL &lt;br /&gt;
|-&lt;br /&gt;
|molecule|| BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -26.6153&lt;br /&gt;
|- &lt;br /&gt;
|RMS gradient|| 0.000000013&lt;br /&gt;
|-&lt;br /&gt;
|point group|| D3H&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Item 	Value	 Threshold Converged?&lt;br /&gt;
Maximum Force 	0.000000   0.000015   YES&lt;br /&gt;
RMS Force	 0.000000   0.000010    YES&lt;br /&gt;
Maximum Displacement	 0.000000   0.000060 YES&lt;br /&gt;
RMS Displacement	 0.000000   0.000040 YES &lt;br /&gt;
RMS Displacement 0.000033 0.000040 YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Important Geometric Parameters===&lt;br /&gt;
Optimised bond distance and angle for BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(B-H)= 1.19&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(H-B-H)= 120&amp;amp;deg;&lt;br /&gt;
===Vibrations===&lt;br /&gt;
Full mass-weighted force constant matrix:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---  -9.3466 -9.3312   -0.0721 -0.0009 0.5366 2.5570&lt;br /&gt;
Low frequencies --- 1162.9903 1213.1496 1213.1498&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule==&lt;br /&gt;
[[media:LDC_H3NBH3_OPTF_REAL.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my NH3BH3 molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LDC_H3NBH3_OPTF_REAL.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| :LDC_H3NBH3_OPTF_REAL&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -83.224689&lt;br /&gt;
|- &lt;br /&gt;
|RMS gradient|| 0.000001&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C1&lt;br /&gt;
|}&lt;br /&gt;
===item table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000001     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000058     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000026     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;energy&lt;br /&gt;
:E&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;=E&amp;lt;sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;- (E&amp;lt;sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;+E&amp;lt;sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;=-83.224689-(-56.557769-26.615324)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;=-0.051596 hartree&lt;br /&gt;
:E&amp;lt;sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt; = -83.224689 (Electronice energy hartree) 46.384 (thermal energy kcal/mol)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt; = -56.557769 (Electronice energy hartree) 23.409 (thermal energy kcal/mol)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt; = -26.615324  (Electronice energy hartree) 18.397 (thermal energy kcal/mol)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;=46.384-(23.409+18.397)&lt;br /&gt;
:E&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;=-4.578 kcal/mol&lt;br /&gt;
===low frequency===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Full mass-weighted force constant matrix:&lt;br /&gt;
 Low frequencies ---   -3.3373   -1.0989   -0.0008    0.0005    0.0007    3.6750&lt;br /&gt;
 Low frequencies ---  263.3597  632.9816  638.4447&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Me&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;NHCl molecule===&lt;br /&gt;
[[media:ME3NHC SCAN LDC NOTHF.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my ME3NHCl molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;ME3NHC SCAN LDC NOTHF.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Clauseluke&amp;diff=31070</id>
		<title>Clauseluke</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Clauseluke&amp;diff=31070"/>
		<updated>2026-05-22T05:54:33Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Reverted edits by Clauseluke (talk) to last revision by Qurat&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==lab marking==&lt;br /&gt;
It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. Please pay a bit more attention to overall formatting. overall a decent attempt. Also, you have uploaded an incorrect file for N2F2. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| lukeclausenNH3optfpop.log&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set||| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000000153&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Optimised molecule image===&lt;br /&gt;
[[file:LdcoptfNH3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my NH3&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LUKECLAUSENNH3OPTFPOP.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(H-N-H)106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===IR NH2===&lt;br /&gt;
[[file:LUKECLAUSENNH3OPTFPOP ir.png|450px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mode||1||2||3||4||5||6&lt;br /&gt;
|-&lt;br /&gt;
|frequency(cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)||1089.37||1693.93||1693.93||3461.38||3589.93||3589.93&lt;br /&gt;
|-&lt;br /&gt;
|intensity||145.4277||13.5571||13.5572||1.0593||0.2699||0.2699&lt;br /&gt;
|-&lt;br /&gt;
|symmetry||A1||E||E||A1||E||E&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---   -5.6864   -3.6131   -3.6124    0.0017    0.0048    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
===charges and MO===&lt;br /&gt;
[[file:ChargesNH3ldc.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==Project Molecule==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| lukeclausenN2F2optfpop.log&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set||| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000000317&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimised molecule image===&lt;br /&gt;
[[file:LDCoptfN2F2.png|150px]]&lt;br /&gt;
&lt;br /&gt;
[[media:LUKECLAUSENNH3OPTFPOP.LOG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;3d model of my N2F2&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;black&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;LUKECLAUSENN2F2OPTFPOP.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.28&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-N)=1.23&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta;(N-N-F)120.0&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===IR N2F2===&lt;br /&gt;
[[file:LUKECLAUSENN2F2OPTFPOP_ir.png|450px]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mode||1||2||3||4||5||6&lt;br /&gt;
|-&lt;br /&gt;
|frequency(cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)||347.8772||561.2472||771.6105||949.4548 || 987.2543||1636.6075&lt;br /&gt;
|-&lt;br /&gt;
|intensity||0.6108||0.000||74.7044||75.4125||81.1265||20.5391&lt;br /&gt;
|-&lt;br /&gt;
|symmetry||A1||A2||B2||A1||B2||A1&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Low frequencies ---   -0.0015   -0.0012   -0.0010    3.2225    4.3532    5.1001&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===IR questions===&lt;br /&gt;
How many vibrations are expected from the 3N-6 rule? &lt;br /&gt;
&lt;br /&gt;
3N-6 -&amp;gt; (3*4)-6 = 6 vibrations&lt;br /&gt;
&lt;br /&gt;
Why are there only 4 peaks in the IR spectrum? &lt;br /&gt;
&lt;br /&gt;
Even though there being 6 vibrational modes only some of these are IR active such as symmetric vibrations because cis-N2F2 is small and highly symmetrical some of the movements have no or very little change in dipole moment, and do not appear. they might also just be too small&lt;br /&gt;
&lt;br /&gt;
Which vibration is the asymmetric N-F stretch?&lt;br /&gt;
&lt;br /&gt;
Vibration 3&lt;br /&gt;
&lt;br /&gt;
What is the nature of the highest energy vibration? &lt;br /&gt;
N=N stretch, they move together and then pull apart&lt;br /&gt;
&lt;br /&gt;
==MO and Charges==&lt;br /&gt;
&lt;br /&gt;
[[file:LukeclausenN2F2Orbitlal9MO.png|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:LDCoptfN2F2 charges.png|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Mo9 ldc.jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Lcao ldc.jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
the F - N bonds are showing because they are long and weak and as a result the software doesnt visualise them&lt;br /&gt;
&lt;br /&gt;
the core orbital is n= 1, s orbital&lt;br /&gt;
&lt;br /&gt;
==charge range==&lt;br /&gt;
-0.197 to 0.197&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31069</id>
		<title>Ibarramyes</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31069"/>
		<updated>2026-05-22T05:53:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Undo revision 31064 by Ibarramyes (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==lab marking==&lt;br /&gt;
You have a good working wiki. It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 1.53e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_nh3smaller.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:NH3_OPTF_POP_MI_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#d5b3ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NH3_OPTF_POP_MI_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (H-N-H)=106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||1089 || 1693|| 1693 || 3461|| 3589|| 3589&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 145|| 14|| 14|| 1|| 0.3|| 0.3&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_IRspectra_nh3.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_nh3ChargeAnalysisFull.PNG ]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.375&lt;br /&gt;
|-&lt;br /&gt;
| H|| -1.125&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file||MI_N2F2_OPTF_POP_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 3.17e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table and Low Frequencies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
 Low frequencies ---    0.0005    0.0005    0.0013    3.2233    4.3533    5.0998&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_N2F2image.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:MI_N2F2_OPTF_POP_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized  N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#edd1ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;MI_N2F2_OPTF_POP_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.391&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N=N)1.220&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (F-N=N)=35&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||348 || 561|| 772 || 949|| 987|| 1637&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 0.6|| 0|| 75|| 75|| 81|| 21&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_N2F2_IRspectra.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
[[File:MI_N2F2_ChargeAnalysis.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.215&lt;br /&gt;
|-&lt;br /&gt;
| F|| -0.215&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
[[File:MI_N2F2_MO9.PNG |350px ]] [[File:MI_n2f2_LCAO.jpg |350px ]]&lt;br /&gt;
&lt;br /&gt;
=== Additional Questions about N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Q. How many vibrations are expected from the 3N-6 rule? &amp;lt;br&amp;gt;&lt;br /&gt;
A. N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; has 4 atoms, therefore 3(4)-6=6; so 6 vibrations are expected.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
A. There are 6 vibrational modes but due to its symmetry, some modes have 0 intensity. Only the modes that can change the dipole moment will appear visible on the IR spectrum. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
A. The vibration at 949cm-1&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. What is the nature of the highest energy vibration&amp;lt;br&amp;gt;&lt;br /&gt;
A. The N=N stretch&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
A. MO 1 and MO 2 are for the S orbitals for the F, and MO 3 and MO 4 for the S orbitals for the N&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31068</id>
		<title>Ibarramyes</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31068"/>
		<updated>2026-05-22T05:52:12Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Undo revision 31065 by Ibarramyes (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==lab marking==&lt;br /&gt;
You have a good working wiki. It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 1.53e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_nh3smaller.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:NH3_OPTF_POP_MI_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#d5b3ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NH3_OPTF_POP_MI_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (H-N-H)=106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||1089 || 1693|| 1693 || 3461|| 3589|| 3589&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 145|| 14|| 14|| 1|| 0.3|| 0.3&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_IRspectra_nh3.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_nh3ChargeAnalysisFull.PNG ]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.375&lt;br /&gt;
|-&lt;br /&gt;
| H|| -1.125&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file||MI_N2F2_OPTF_POP_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 3.17e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table and Low Frequencies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
 Low frequencies ---    0.0005    0.0005    0.0013    3.2233    4.3533    5.0998&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_N2F2image.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:MI_N2F2_OPTF_POP_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized  N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#edd1ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;MI_N2F2_OPTF_POP_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.391&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N=N)1.220&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (F-N=N)=35&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||348 || 561|| 772 || 949|| 987|| 1637&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 0.6|| 0|| 75|| 75|| 81|| 21&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_N2F2_IRspectra.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
[[File:MI_N2F2_ChargeAnalysis.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.215&lt;br /&gt;
|-&lt;br /&gt;
| F|| -0.215&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
[[File:MI_N2F2_MO9.PNG |350px ]] [[File:MI_n2f2_LCAO.jpg |350px ]]&lt;br /&gt;
&lt;br /&gt;
=== Additional Questions about N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Q. How many vibrations are expected from the 3N-6 rule? &amp;lt;br&amp;gt;&lt;br /&gt;
A. N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; has 4 atoms, therefore 3(4)-6=6; so 6 vibrations are expected.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
A. There are 6 vibrational modes but due to its symmetry, some modes have 0 intensity. Only the modes that can change the dipole moment will appear visible on the IR spectrum. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
A. The vibration at 949cm-1&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. What is the nature of the highest energy vibration&amp;lt;br&amp;gt;&lt;br /&gt;
A. The N=N stretch&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
A. MO 1 and MO 2 are for the S orbitals for the F, and MO 3 and MO 4 for the S orbitals for the N&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Computational Lab 2==&lt;br /&gt;
&lt;br /&gt;
==BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-26.615324&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000002&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| D3H&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
           Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000004     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000003     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000017     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000011     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            1                      2                      3&lt;br /&gt;
                     A2&amp;quot;                    ?A                     ?A&lt;br /&gt;
 Frequencies --   1162.9745              1213.1390              1213.1392&lt;br /&gt;
 Red. masses --      1.2531                 1.1072                 1.1072&lt;br /&gt;
 Frc consts  --      0.9986                 0.9600                 0.9600&lt;br /&gt;
 IR Inten    --     92.5682                14.0550                14.0544&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00  -0.16    -0.10   0.00   0.00     0.00  -0.10   0.00&lt;br /&gt;
     2   1     0.00   0.00   0.57     0.81   0.00   0.00     0.00  -0.08   0.00&lt;br /&gt;
     3   1     0.00   0.00   0.57     0.14  -0.39   0.00    -0.39   0.59   0.00&lt;br /&gt;
     4   1     0.00   0.00   0.57     0.14   0.39   0.00     0.39   0.59   0.00&lt;br /&gt;
                      4                      5                      6&lt;br /&gt;
                     ?B                     ?A                     ?A&lt;br /&gt;
 Frequencies --   2582.5813              2715.7180              2715.7189&lt;br /&gt;
 Red. masses --      1.0078                 1.1273                 1.1273&lt;br /&gt;
 Frc consts  --      3.9604                 4.8987                 4.8987&lt;br /&gt;
 IR Inten    --      0.0000               126.3320               126.3260&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00   0.00    -0.11   0.00   0.00     0.00  -0.11   0.00&lt;br /&gt;
     2   1     0.00   0.58   0.00    -0.02   0.00   0.00     0.00   0.81   0.00&lt;br /&gt;
     3   1    -0.50  -0.29   0.00     0.60   0.36   0.00     0.36   0.19   0.00&lt;br /&gt;
     4   1     0.50  -0.29   0.00     0.60  -0.36   0.00    -0.36   0.19   0.00&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31067</id>
		<title>Ibarramyes</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31067"/>
		<updated>2026-05-22T05:51:49Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Undo revision 31066 by Wikiadmin (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==lab marking==&lt;br /&gt;
You have a good working wiki. It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 1.53e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_nh3smaller.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:NH3_OPTF_POP_MI_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#d5b3ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NH3_OPTF_POP_MI_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (H-N-H)=106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||1089 || 1693|| 1693 || 3461|| 3589|| 3589&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 145|| 14|| 14|| 1|| 0.3|| 0.3&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_IRspectra_nh3.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_nh3ChargeAnalysisFull.PNG ]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.375&lt;br /&gt;
|-&lt;br /&gt;
| H|| -1.125&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file||MI_N2F2_OPTF_POP_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 3.17e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table and Low Frequencies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
 Low frequencies ---    0.0005    0.0005    0.0013    3.2233    4.3533    5.0998&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_N2F2image.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:MI_N2F2_OPTF_POP_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized  N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#edd1ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;MI_N2F2_OPTF_POP_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.391&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N=N)1.220&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (F-N=N)=35&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||348 || 561|| 772 || 949|| 987|| 1637&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 0.6|| 0|| 75|| 75|| 81|| 21&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_N2F2_IRspectra.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
[[File:MI_N2F2_ChargeAnalysis.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.215&lt;br /&gt;
|-&lt;br /&gt;
| F|| -0.215&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
[[File:MI_N2F2_MO9.PNG |350px ]] [[File:MI_n2f2_LCAO.jpg |350px ]]&lt;br /&gt;
&lt;br /&gt;
=== Additional Questions about N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Q. How many vibrations are expected from the 3N-6 rule? &amp;lt;br&amp;gt;&lt;br /&gt;
A. N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; has 4 atoms, therefore 3(4)-6=6; so 6 vibrations are expected.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
A. There are 6 vibrational modes but due to its symmetry, some modes have 0 intensity. Only the modes that can change the dipole moment will appear visible on the IR spectrum. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
A. The vibration at 949cm-1&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. What is the nature of the highest energy vibration&amp;lt;br&amp;gt;&lt;br /&gt;
A. The N=N stretch&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
A. MO 1 and MO 2 are for the S orbitals for the F, and MO 3 and MO 4 for the S orbitals for the N&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Computational Lab 2==&lt;br /&gt;
&lt;br /&gt;
==BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-26.615324&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.000002&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| D3H&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
           Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000004     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000003     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000017     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000011     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            1                      2                      3&lt;br /&gt;
                     A2&amp;quot;                    ?A                     ?A&lt;br /&gt;
 Frequencies --   1162.9745              1213.1390              1213.1392&lt;br /&gt;
 Red. masses --      1.2531                 1.1072                 1.1072&lt;br /&gt;
 Frc consts  --      0.9986                 0.9600                 0.9600&lt;br /&gt;
 IR Inten    --     92.5682                14.0550                14.0544&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00  -0.16    -0.10   0.00   0.00     0.00  -0.10   0.00&lt;br /&gt;
     2   1     0.00   0.00   0.57     0.81   0.00   0.00     0.00  -0.08   0.00&lt;br /&gt;
     3   1     0.00   0.00   0.57     0.14  -0.39   0.00    -0.39   0.59   0.00&lt;br /&gt;
     4   1     0.00   0.00   0.57     0.14   0.39   0.00     0.39   0.59   0.00&lt;br /&gt;
                      4                      5                      6&lt;br /&gt;
                     ?B                     ?A                     ?A&lt;br /&gt;
 Frequencies --   2582.5813              2715.7180              2715.7189&lt;br /&gt;
 Red. masses --      1.0078                 1.1273                 1.1273&lt;br /&gt;
 Frc consts  --      3.9604                 4.8987                 4.8987&lt;br /&gt;
 IR Inten    --      0.0000               126.3320               126.3260&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   5     0.00   0.00   0.00    -0.11   0.00   0.00     0.00  -0.11   0.00&lt;br /&gt;
     2   1     0.00   0.58   0.00    -0.02   0.00   0.00     0.00   0.81   0.00&lt;br /&gt;
     3   1    -0.50  -0.29   0.00     0.60   0.36   0.00     0.36   0.19   0.00&lt;br /&gt;
     4   1     0.50  -0.29   0.00     0.60  -0.36   0.00    -0.36   0.19   0.00&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;ub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| MI_NH3BH3_opt.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;BH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy|| -&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| -&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000002     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000001     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000021     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000009     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                       1                      2                      3&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --    263.3534               632.9708               638.4420&lt;br /&gt;
 Red. masses --      1.0078                 5.0021                 1.0452&lt;br /&gt;
 Frc consts  --      0.0412                 1.1808                 0.2510&lt;br /&gt;
 IR Inten    --      0.0000                14.0108                 3.5497&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.01   0.36     0.29  -0.03   0.00     0.44   0.10   0.04&lt;br /&gt;
     2   1     0.00   0.31  -0.19     0.29   0.02   0.03    -0.33   0.13   0.01&lt;br /&gt;
     3   1     0.00  -0.32  -0.18     0.29   0.02  -0.03    -0.10   0.14   0.05&lt;br /&gt;
     4   1     0.00   0.01   0.45    -0.36   0.00   0.00     0.56   0.17   0.06&lt;br /&gt;
     5   1     0.00  -0.39  -0.22    -0.36   0.00   0.00    -0.13   0.20   0.07&lt;br /&gt;
     6   1     0.00   0.38  -0.23    -0.36   0.00   0.00    -0.43   0.19   0.03&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.48   0.00   0.00     0.00  -0.03  -0.01&lt;br /&gt;
     8   7     0.00   0.00   0.00    -0.36   0.00   0.00     0.00  -0.05  -0.01&lt;br /&gt;
                      4                      5                      6&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --    638.5038              1069.1625              1069.1794&lt;br /&gt;
 Red. masses --      1.0452                 1.3347                 1.3347&lt;br /&gt;
 Frc consts  --      0.2511                 0.8989                 0.8989&lt;br /&gt;
 IR Inten    --      3.5466                40.5061                40.5107&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1    -0.13  -0.03   0.15     0.58   0.04   0.07    -0.26  -0.01   0.15&lt;br /&gt;
     2   1    -0.31  -0.06   0.12    -0.51   0.10  -0.02    -0.37  -0.10   0.09&lt;br /&gt;
     3   1     0.45  -0.02   0.11    -0.07   0.15   0.08     0.63   0.00   0.04&lt;br /&gt;
     4   1    -0.17  -0.05   0.20    -0.41  -0.06  -0.05     0.18   0.03  -0.12&lt;br /&gt;
     5   1     0.57  -0.04   0.17     0.05  -0.11  -0.06    -0.44   0.02  -0.07&lt;br /&gt;
     6   1    -0.40  -0.07   0.18     0.36  -0.09  -0.01     0.26   0.07  -0.09&lt;br /&gt;
     7   5     0.00   0.01  -0.03     0.00  -0.12  -0.05     0.00   0.05  -0.12&lt;br /&gt;
     8   7     0.00   0.01  -0.05     0.00   0.10   0.04     0.00  -0.04   0.10&lt;br /&gt;
                      7                      8                      9&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   1196.1906              1203.5375              1203.5588&lt;br /&gt;
 Red. masses --      1.1451                 1.0608                 1.0608&lt;br /&gt;
 Frc consts  --      0.9654                 0.9053                 0.9053&lt;br /&gt;
 IR Inten    --    108.9560                 3.4683                 3.4681&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.55   0.17   0.00    -0.18  -0.10  -0.57    -0.21  -0.09   0.49&lt;br /&gt;
     2   1     0.55  -0.09  -0.15    -0.09   0.63  -0.33     0.27   0.15  -0.24&lt;br /&gt;
     3   1     0.55  -0.08   0.15     0.28   0.06   0.18    -0.05   0.66   0.33&lt;br /&gt;
     4   1    -0.02   0.00   0.00     0.01   0.00   0.01     0.02   0.00  -0.01&lt;br /&gt;
     5   1    -0.02   0.00   0.00    -0.02   0.00   0.00     0.00  -0.01  -0.01&lt;br /&gt;
     6   1    -0.02   0.00   0.00     0.01  -0.01   0.01    -0.02   0.00   0.00&lt;br /&gt;
     7   5    -0.11   0.00   0.00     0.00  -0.05   0.06     0.00  -0.06  -0.05&lt;br /&gt;
     8   7    -0.02   0.00   0.00     0.00  -0.01   0.01     0.00  -0.01  -0.01&lt;br /&gt;
                     10                     11                     12&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   1328.8294              1676.0351              1676.0418&lt;br /&gt;
 Red. masses --      1.1792                 1.0555                 1.0555&lt;br /&gt;
 Frc consts  --      1.2268                 1.7470                 1.7470&lt;br /&gt;
 IR Inten    --    113.6263                27.5647                27.5648&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.00   0.00     0.01   0.00   0.01     0.01   0.00  -0.01&lt;br /&gt;
     2   1     0.00   0.00   0.00    -0.01   0.00  -0.01     0.00   0.01  -0.01&lt;br /&gt;
     3   1     0.00   0.00   0.00     0.00   0.01   0.01    -0.01   0.00   0.00&lt;br /&gt;
     4   1     0.53   0.21   0.00    -0.23  -0.11   0.46    -0.17  -0.10  -0.59&lt;br /&gt;
     5   1     0.53  -0.10   0.19    -0.04   0.66   0.34     0.28   0.01   0.18&lt;br /&gt;
     6   1     0.53  -0.11  -0.18     0.26   0.18  -0.27    -0.11   0.62  -0.31&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.00  -0.01   0.00     0.00   0.00   0.01&lt;br /&gt;
     8   7    -0.11   0.00   0.00     0.00  -0.05  -0.04     0.00  -0.04   0.05&lt;br /&gt;
                     13                     14                     15&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   2471.9755              2532.0644              2532.0918&lt;br /&gt;
 Red. masses --      1.0218                 1.1176                 1.1176&lt;br /&gt;
 Frc consts  --      3.6789                 4.2217                 4.2218&lt;br /&gt;
 IR Inten    --     67.2020               231.2493               231.2395&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1    -0.15   0.56  -0.01     0.01  -0.04  -0.01    -0.21   0.78  -0.02&lt;br /&gt;
     2   1    -0.15  -0.29  -0.48     0.18   0.35   0.56     0.12   0.21   0.37&lt;br /&gt;
     3   1    -0.15  -0.27   0.49    -0.19  -0.34   0.61     0.10   0.16  -0.32&lt;br /&gt;
     4   1     0.01   0.00   0.00     0.00   0.00   0.00    -0.01  -0.01   0.00&lt;br /&gt;
     5   1     0.01   0.00   0.00     0.00   0.00  -0.01     0.00   0.00   0.00&lt;br /&gt;
     6   1     0.01   0.00   0.00     0.00   0.00  -0.01     0.00  -0.01   0.00&lt;br /&gt;
     7   5     0.04   0.00   0.00     0.00   0.00  -0.10     0.00  -0.10   0.00&lt;br /&gt;
     8   7     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.00&lt;br /&gt;
                     16                     17                     18&lt;br /&gt;
                      A                      A                      A&lt;br /&gt;
 Frequencies --   3464.0944              3581.1221              3581.1454&lt;br /&gt;
 Red. masses --      1.0270                 1.0921                 1.0921&lt;br /&gt;
 Frc consts  --      7.2611                 8.2518                 8.2519&lt;br /&gt;
 IR Inten    --      2.5107                27.9530                27.9537&lt;br /&gt;
  Atom  AN      X      Y      Z        X      Y      Z        X      Y      Z&lt;br /&gt;
     1   1     0.00   0.00   0.00     0.00   0.01   0.00     0.00   0.00   0.00&lt;br /&gt;
     2   1     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.01&lt;br /&gt;
     3   1     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.01&lt;br /&gt;
     4   1    -0.18   0.55  -0.01    -0.28   0.76  -0.01     0.00   0.01  -0.02&lt;br /&gt;
     5   1    -0.18  -0.26   0.48     0.15   0.18  -0.35    -0.24  -0.32   0.57&lt;br /&gt;
     6   1    -0.18  -0.28  -0.47     0.14   0.18   0.33     0.25   0.35   0.57&lt;br /&gt;
     7   5     0.00   0.00   0.00     0.00   0.00   0.00     0.00   0.00   0.00&lt;br /&gt;
     8   7     0.04   0.00   0.00     0.00  -0.08   0.00     0.00   0.00  -0.08&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31066</id>
		<title>Ibarramyes</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Ibarramyes&amp;diff=31066"/>
		<updated>2026-05-22T05:50:56Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Reverted edits by Ibarramyes (talk) to last revision by Qurat&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==lab marking==&lt;br /&gt;
You have a good working wiki. It would be good if you round off reported values to correct significant figures and report values of wavenumber in your answers as well. If you have any specific questions, do email Prof. Hunt&lt;br /&gt;
&lt;br /&gt;
==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===calculation data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file|| NH3_OPTF_POP_MI_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 1.53e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C3v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_nh3smaller.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:NH3_OPTF_POP_MI_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#d5b3ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NH3_OPTF_POP_MI_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-H)=1.018&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (H-N-H)=106&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
 Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||1089 || 1693|| 1693 || 3461|| 3589|| 3589&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| E|| E&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 145|| 14|| 14|| 1|| 0.3|| 0.3&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_IRspectra_nh3.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_nh3ChargeAnalysisFull.PNG ]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.375&lt;br /&gt;
|-&lt;br /&gt;
| H|| -1.125&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Calculation Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Name of submitted log file||MI_N2F2_OPTF_POP_CHEM307.LOG&lt;br /&gt;
|-&lt;br /&gt;
|Molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Method|| RB3LYP&lt;br /&gt;
|-&lt;br /&gt;
|Basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|Final energy||-309.01241&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 3.17e-07&lt;br /&gt;
|-&lt;br /&gt;
|Point group|| C2v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table and Low Frequencies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
 Low frequencies ---    0.0005    0.0005    0.0013    3.2233    4.3533    5.0998&lt;br /&gt;
 Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimized molecule image===&lt;br /&gt;
[[File:MI_N2F2image.png]]&lt;br /&gt;
&lt;br /&gt;
===Jmol rotatable molecule===&lt;br /&gt;
logfile: [[Media:MI_N2F2_OPTF_POP_CHEM307.LOG]]&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Optimized  N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;#edd1ff&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;200&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;MI_N2F2_OPTF_POP_CHEM307.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Important geometric parameters===&lt;br /&gt;
Optimized bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N-F)=1.391&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
r(N=N)1.220&amp;amp;Acirc;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;theta; (F-N=N)=35&amp;amp;deg;&lt;br /&gt;
&lt;br /&gt;
===Logfile Information===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Mode || 1|| 2|| 3|| 4|| 5|| 6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber(cm-1)||348 || 561|| 772 || 949|| 987|| 1637&lt;br /&gt;
|-&lt;br /&gt;
|Symmetry || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;|| B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity(arbitrary units)|| 0.6|| 0|| 75|| 75|| 81|| 21&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===IR Spectrum of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
[[File:MI_N2F2_IRspectra.PNG]]&lt;br /&gt;
&lt;br /&gt;
===Charge Analysis of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
[[File:MI_N2F2_ChargeAnalysis.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Atom    ||charge&lt;br /&gt;
|-&lt;br /&gt;
| N|| 0.215&lt;br /&gt;
|-&lt;br /&gt;
| F|| -0.215&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
[[File:MI_N2F2_MO9.PNG |350px ]] [[File:MI_n2f2_LCAO.jpg |350px ]]&lt;br /&gt;
&lt;br /&gt;
=== Additional Questions about N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Q. How many vibrations are expected from the 3N-6 rule? &amp;lt;br&amp;gt;&lt;br /&gt;
A. N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; has 4 atoms, therefore 3(4)-6=6; so 6 vibrations are expected.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
A. There are 6 vibrational modes but due to its symmetry, some modes have 0 intensity. Only the modes that can change the dipole moment will appear visible on the IR spectrum. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
A. The vibration at 949cm-1&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. What is the nature of the highest energy vibration&amp;lt;br&amp;gt;&lt;br /&gt;
A. The N=N stretch&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Q. Which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
A. MO 1 and MO 2 are for the S orbitals for the F, and MO 3 and MO 4 for the S orbitals for the N&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=User_talk:MergedUsers&amp;diff=25139</id>
		<title>User talk:MergedUsers</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=User_talk:MergedUsers&amp;diff=25139"/>
		<updated>2026-03-24T04:02:34Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin moved page User talk:Nelsonsimo to User talk:MergedUsers: Automatically moved page while merging the account &amp;quot;Nelsonsimo&amp;quot; to &amp;quot;MergedUsers&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; Molecule==&lt;br /&gt;
===Method information===&lt;br /&gt;
NOTE: values of the energy and gradient will differ slightly for every calculation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| NELSONSIMO_NH3_OPT_PT2.LOG&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| B3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -56.557769&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.0000002&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C&amp;lt;sub&amp;gt;3v&amp;lt;/sub&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000000     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000003     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Low frequencies ---   -5.6864   -3.6131   -3.6124   -0.0014    0.0045    0.0162&lt;br /&gt;
Low frequencies --- 1089.3674 1693.9284 1693.9284&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimised molecule===&lt;br /&gt;
logfile: [[Media:NELSONSIMO_NH3_OPT_PT2.LOG]]&lt;br /&gt;
&lt;br /&gt;
static image:&lt;br /&gt;
[[File:nelsonsimo_nh3_opt.png|300px]]&lt;br /&gt;
&lt;br /&gt;
Jmol rotateable molecule&lt;br /&gt;
&lt;br /&gt;
optimised NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;cyan&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NELSONSIMO_NH3_OPT_PT2.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
| coord || value&lt;br /&gt;
|-&lt;br /&gt;
|r(N-H)|| 1.02&amp;amp;Acirc; &lt;br /&gt;
|-&lt;br /&gt;
|&amp;amp;theta;|| 106&amp;amp;deg;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Vibrations===&lt;br /&gt;
&lt;br /&gt;
table of vibrations:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
|mode || 1 || 2 ||  3 || 4 || 5 ||  6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber (cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)|| 1089 || 1694 ||  1694 || 3461 || 3590 ||  3590&lt;br /&gt;
|-&lt;br /&gt;
|symmetry|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; || E || E || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; || E || E&lt;br /&gt;
|-&lt;br /&gt;
|intensity (arbitary units)|| 145 || 14 || 14 || 1 || 0 || 0&lt;br /&gt;
|}&lt;br /&gt;
IR spectrum:&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:NELSONSIMO NH3 OPT PT1 ir.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Charges===&lt;br /&gt;
image of NBO charges colour coded red for negative and green for positive the charge range is ±1.125e&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Nelsonsimo_nh3_opt_charge.png|300px]]&lt;br /&gt;
[[File:Nelsonsimo_nh3_opt_charge_data.png |300px]]&lt;br /&gt;
&lt;br /&gt;
table of NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; charges:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
!atom|| charge &lt;br /&gt;
|-&lt;br /&gt;
|N|| -1.13 &lt;br /&gt;
|-&lt;br /&gt;
|H|| +0.38&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Project Molecule==&lt;br /&gt;
===Method information===&lt;br /&gt;
NOTE: values of the energy and gradient will differ slightly for every calculation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|name of submitted log file|| NELSONSIMO_N2F2_OPT2.LOG&lt;br /&gt;
|-&lt;br /&gt;
|molecule|| N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|method|| B3LYP&lt;br /&gt;
|-&lt;br /&gt;
|basis set|| 6-31G(d,p)&lt;br /&gt;
|-&lt;br /&gt;
|final energy|| -309.012413&lt;br /&gt;
|-&lt;br /&gt;
|RMS gradient|| 0.0000003&lt;br /&gt;
|-&lt;br /&gt;
|point group|| C&amp;lt;sub&amp;gt;2v&amp;lt;/sub&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Item Table===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
         Item               Value     Threshold  Converged?&lt;br /&gt;
 Maximum Force            0.000001     0.000015     YES&lt;br /&gt;
 RMS     Force            0.000000     0.000010     YES&lt;br /&gt;
 Maximum Displacement     0.000001     0.000060     YES&lt;br /&gt;
 RMS     Displacement     0.000001     0.000040     YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Low frequencies ---   -0.0015   -0.0012   -0.0010    3.2225    4.3532    5.1001&lt;br /&gt;
Low frequencies ---  347.8772  561.2472  771.6105&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optimised molecule===&lt;br /&gt;
logfile: [[Media:NELSONSIMO_N2F2_OPT2.LOG]]&lt;br /&gt;
&lt;br /&gt;
static image:&lt;br /&gt;
[[File:Nelsonsimo_n2f2_opt.png|500px]]&lt;br /&gt;
&lt;br /&gt;
Jmol rotateable molecule&lt;br /&gt;
&lt;br /&gt;
optimised N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule&lt;br /&gt;
&amp;lt;jmol&amp;gt;&amp;lt;jmolApplet&amp;gt;&lt;br /&gt;
&amp;lt;color&amp;gt;cyan&amp;lt;/color&amp;gt;&lt;br /&gt;
&amp;lt;size&amp;gt;300&amp;lt;/size&amp;gt;&lt;br /&gt;
&amp;lt;uploadedFileContents&amp;gt;NELSONSIMO_N2F2_OPT2.LOG&amp;lt;/uploadedFileContents&amp;gt;&lt;br /&gt;
&amp;lt;/jmolApplet&amp;gt;&amp;lt;/jmol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Geometric parameters===&lt;br /&gt;
Optimised bond distance and angle for N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
| coord || value&lt;br /&gt;
|-&lt;br /&gt;
|r(N=N)|| 1.22&amp;amp;Acirc;&lt;br /&gt;
|-&lt;br /&gt;
|r(N-F)|| 1.39&amp;amp;Acirc; &lt;br /&gt;
|-&lt;br /&gt;
|&amp;amp;theta;(F-N=N)|| 114&amp;amp;deg;&lt;br /&gt;
|-&lt;br /&gt;
|D(F-N=N-F)|| 0&amp;amp;deg;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Vibrations===&lt;br /&gt;
&lt;br /&gt;
table of vibrations:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
|mode || 1 || 2 ||  3 || 4 || 5 ||  6&lt;br /&gt;
|-&lt;br /&gt;
|wavenumber (cm&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)|| 348 || 561 ||  772 || 950 || 987 ||  1637&lt;br /&gt;
|-&lt;br /&gt;
|symmetry|| A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; || A&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; || B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; || B&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; || A&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|intensity (arbitary units)|| 1 || 0 || 75 || 75 || 81 || 21&lt;br /&gt;
|}&lt;br /&gt;
IR spectrum:&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Nelsonsimo_n2f2_opt_ir.png|600px]]&lt;br /&gt;
===Charges===&lt;br /&gt;
image of NBO charges colour coded red for negative and green for positive the charge range is ±0.215e&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Nelsonsimo_n2f2_opt_charge2.png|400px]]&lt;br /&gt;
[[File:Nelsonsimo_n2f2_opt_charge_data2.PNG |300px]]&lt;br /&gt;
&lt;br /&gt;
table of N&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; charges:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
!atom|| charge &lt;br /&gt;
|-&lt;br /&gt;
|N|| +0.22 &lt;br /&gt;
|-&lt;br /&gt;
|F|| -0.22&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''answer these questions'''&lt;br /&gt;
&lt;br /&gt;
*the molecule from the log file does not have bonds between the F and N atoms, what is going on here?&amp;lt;br&amp;gt;&lt;br /&gt;
::The bonds are still present, just not viewable in the log file (they are however there in the .chk file) as they exceed a predetermined value in length and gaussview does not show bonds that exceed this value&lt;br /&gt;
&lt;br /&gt;
*how many vibrations are expected from the 3N-6 rule?&amp;lt;br&amp;gt;&lt;br /&gt;
::There are 6 vibrations, as 3(4)-6 = 12-6 = 6 and (N = 4)&lt;br /&gt;
&lt;br /&gt;
*why are there only 4 peaks in the IR spectrum?&amp;lt;br&amp;gt;&lt;br /&gt;
::There are only 4 peaks as the intensity for two of them are too close to 0 to actually show up at the scale the spectra is.&lt;br /&gt;
&lt;br /&gt;
*which vibration is the asymmetric N-F stretch?&amp;lt;br&amp;gt;&lt;br /&gt;
::Mode 3 is the asymmetric stretch of N-F as each side is stretching up and down at different times while the N=N stays the same&lt;br /&gt;
&lt;br /&gt;
*what is the nature of the highest energy vibration?&amp;lt;br&amp;gt;&lt;br /&gt;
::the highest energy vibration is mode 6, where we see N=N stretching&lt;br /&gt;
&lt;br /&gt;
===Molecular Orbitals===&lt;br /&gt;
'''more questions'''&lt;br /&gt;
&lt;br /&gt;
*which MOs are core orbital MOs?&amp;lt;br&amp;gt;&lt;br /&gt;
::MOs 1, 2, 3, and 4 are the core orbitals as they have energy values close to -20eV, being -24.76eV for MOs 1 and 2 and -14.52 for MOs 3 and 4. they also hold onto the electron density very tightly&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&lt;br /&gt;
!MO 9 of N2F2|| the LCAO MO &lt;br /&gt;
|-&lt;br /&gt;
|[[File:Nelsonsimo_n2f2_opt2_MO9.png|300px]]|| [[File:Nelsonsimo_n2f2_MO9_LCAO2.PNG|300px]] &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py&amp;diff=25108</id>
		<title>Mod:Hunt Research Group/AdditionalFunctions.py</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py&amp;diff=25108"/>
		<updated>2025-12-10T07:43:35Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Required arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;i&amp;gt;CubePy is under [https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode CC BY-NC-SA license]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;AdditionalFunctions.py&amp;lt;/code&amp;gt; is a collection of functions that do not work directly with cube files, but with data produced by the other scripts.&lt;br /&gt;
&lt;br /&gt;
=Requirements=&lt;br /&gt;
* Python&lt;br /&gt;
* Matplotlib&lt;br /&gt;
&lt;br /&gt;
An easy way to obtain Python with the required modules is by installing [https://anaconda.org Anaconda].&lt;br /&gt;
&lt;br /&gt;
Anaconda comes with Spyder, which is a Python editor that you can use to write and run Python codes (Applications &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Anaconda Navigator &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; spyder &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Launch)&lt;br /&gt;
&lt;br /&gt;
=Instructions=&lt;br /&gt;
==Running the code==&lt;br /&gt;
The plotting functions can be run from the terminal window by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py function_name file_path1 file_path2... arg1=val1 arg2=val2...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
==OverlapKDEs==&lt;br /&gt;
[[File:ia2514_fig10.png|400px|right|thumb|Figure 1. Plot generated by OverlapKDEs]]&lt;br /&gt;
This function plots overlapping KDEs as read from _kde.out files written by [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py#PlotHistogram &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt;] from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py &amp;lt;code&amp;gt;PlotCube.py&amp;lt;/code&amp;gt;] (when &amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt; is True).&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;fpaths&amp;lt;/code&amp;gt; (string) = paths for _kde.out files&lt;br /&gt;
&lt;br /&gt;
===Optional arguments===&lt;br /&gt;
* &amp;lt;code&amp;gt;value_type&amp;lt;/code&amp;gt; (string, default='esp') = can be ‘esp’/’potential’ or ‘dens’/’density’ (or any uppercase version of the aforementioned); used in conjunction with the keywords &amp;lt;code&amp;gt;au&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; in order to convert the values to the appropriate units&lt;br /&gt;
* &amp;lt;code&amp;gt;xlim&amp;lt;/code&amp;gt; (list, default=None) = x axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;ylim&amp;lt;/code&amp;gt; (list, default=None) = y axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; (boolean, default=True) = if True, it saves a .log file of the command used to run the functions (the command is tidied-up before saving i.e. unnecessary spaces are removed, argument values are converted to their usual uppercase/lowercase versions, file lists are explicit - instead of using wildcard symbols such as *)&lt;br /&gt;
* &amp;lt;code&amp;gt;logfile&amp;lt;/code&amp;gt; (string, default=None) = the name of the log file (if &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; is True); by default the file name is the input file name followed by the function name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Observations===&lt;br /&gt;
* if you only want to specify one limit for either of the axis, use None for the other (e.g. xlim=[None,3.5])&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py OverlapKDEs NH3CH2Cl_esp_kde.out NH3CH2OH_esp_kde.out NH3CH2BH2_esp_kde.out xlim=[2,10]&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulting plot is shown in figure 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PlotHistogram==&lt;br /&gt;
This function plots one KDE and/or one histogram as read from _kde.out and _hist.out files written by [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py#PlotHistogram &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt;] from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py &amp;lt;code&amp;gt;PlotCube.py&amp;lt;/code&amp;gt;] (when &amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt; is True).&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
[[File:ia2514_fig5.png|right|thumb|Figure 2. Plot generated by PlotHistogram]]&lt;br /&gt;
* &amp;lt;code&amp;gt;fpaths&amp;lt;/code&amp;gt; (string) = paths for _kde.out and _hist.out files (should be one of each at most)&lt;br /&gt;
&lt;br /&gt;
===Optional arguments===&lt;br /&gt;
* &amp;lt;code&amp;gt;value_type&amp;lt;/code&amp;gt; (string, default='esp') = can be ‘esp’/’potential’ or ‘dens’/’density’ (or any uppercase version of the aforementioned); used in conjunction with the keywords &amp;lt;code&amp;gt;au&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; in order to convert the values to the appropriate units&lt;br /&gt;
* &amp;lt;code&amp;gt;colour&amp;lt;/code&amp;gt; (string, default='rainbow') = colour scheme ('rainbow' by default, change it to 'bwr' for blue-white-red) - full list [https://matplotlib.org/users/colormaps.html here]&lt;br /&gt;
* &amp;lt;code&amp;gt;cb_lim&amp;lt;/code&amp;gt; (list, default=None) = limits for the colour bar (list of two floats; if not specified, the limits will be the min and max of the values; if the limits do not cover the whole range of values, a warning is printed)&lt;br /&gt;
* &amp;lt;code&amp;gt;xlim&amp;lt;/code&amp;gt; (list, default=None) = x axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;ylim&amp;lt;/code&amp;gt; (list, default=None) = y axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; (boolean, default=True) = if True, it saves a .log file of the command used to run the functions (the command is tidied-up before saving i.e. unnecessary spaces are removed, argument values are converted to their usual uppercase/lowercase versions, file lists are explicit - instead of using wildcard symbols such as *)&lt;br /&gt;
* &amp;lt;code&amp;gt;logfile&amp;lt;/code&amp;gt; (string, default=None) = the name of the log file (if &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; is True); by default the file name is the input file name followed by the function name&lt;br /&gt;
* &amp;lt;code&amp;gt;cb_sym&amp;lt;/code&amp;gt; (boolean, default=False) = if True, the colour bar limits are chosen to be symmetric around 0 (&amp;lt;code&amp;gt;cb_lim&amp;lt;/code&amp;gt;, if specified, overrides &amp;lt;code&amp;gt;cb_sym&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Observations===&lt;br /&gt;
* if you only want to specify one limit for either of the axis, use None for the other (e.g. xlim=[None,3.5])&lt;br /&gt;
* the function only works for one histogram file and/or one KDE file. If multiple files of either type are specified as arguments, the execution of the program is stopped and a warning is printed.&lt;br /&gt;
* the data in the files specified as arguments must be in the same units. If that is not the case, the execution of the program is stopped and a warning is printed.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py PlotHistogram test_emim_oac_esp_kde.out test_emim_oac_esp_hist.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulting plot is shown in figure 2.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py&amp;diff=25107</id>
		<title>Mod:Hunt Research Group/AdditionalFunctions.py</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py&amp;diff=25107"/>
		<updated>2025-12-10T07:42:53Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;i&amp;gt;CubePy is under [https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode CC BY-NC-SA license]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;AdditionalFunctions.py&amp;lt;/code&amp;gt; is a collection of functions that do not work directly with cube files, but with data produced by the other scripts.&lt;br /&gt;
&lt;br /&gt;
=Requirements=&lt;br /&gt;
* Python&lt;br /&gt;
* Matplotlib&lt;br /&gt;
&lt;br /&gt;
An easy way to obtain Python with the required modules is by installing [https://anaconda.org Anaconda].&lt;br /&gt;
&lt;br /&gt;
Anaconda comes with Spyder, which is a Python editor that you can use to write and run Python codes (Applications &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Anaconda Navigator &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; spyder &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Launch)&lt;br /&gt;
&lt;br /&gt;
=Instructions=&lt;br /&gt;
==Running the code==&lt;br /&gt;
The plotting functions can be run from the terminal window by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py function_name file_path1 file_path2... arg1=val1 arg2=val2...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Functions=&lt;br /&gt;
==OverlapKDEs==&lt;br /&gt;
[[File:ia2514_fig10.png|400px|right|thumb|Figure 1. Plot generated by OverlapKDEs]]&lt;br /&gt;
This function plots overlapping KDEs as read from _kde.out files written by [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py#PlotHistogram &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt;] from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py &amp;lt;code&amp;gt;PlotCube.py&amp;lt;/code&amp;gt;] (when &amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt; is True).&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;fpaths&amp;lt;/code&amp;gt; (string) = paths for _kde.out files&lt;br /&gt;
&lt;br /&gt;
===Optional arguments===&lt;br /&gt;
* &amp;lt;code&amp;gt;value_type&amp;lt;/code&amp;gt; (string, default='esp') = can be ‘esp’/’potential’ or ‘dens’/’density’ (or any uppercase version of the aforementioned); used in conjunction with the keywords &amp;lt;code&amp;gt;au&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; in order to convert the values to the appropriate units&lt;br /&gt;
* &amp;lt;code&amp;gt;xlim&amp;lt;/code&amp;gt; (list, default=None) = x axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;ylim&amp;lt;/code&amp;gt; (list, default=None) = y axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; (boolean, default=True) = if True, it saves a .log file of the command used to run the functions (the command is tidied-up before saving i.e. unnecessary spaces are removed, argument values are converted to their usual uppercase/lowercase versions, file lists are explicit - instead of using wildcard symbols such as *)&lt;br /&gt;
* &amp;lt;code&amp;gt;logfile&amp;lt;/code&amp;gt; (string, default=None) = the name of the log file (if &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; is True); by default the file name is the input file name followed by the function name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Observations===&lt;br /&gt;
* if you only want to specify one limit for either of the axis, use None for the other (e.g. xlim=[None,3.5])&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py OverlapKDEs NH3CH2Cl_esp_kde.out NH3CH2OH_esp_kde.out NH3CH2BH2_esp_kde.out xlim=[2,10]&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulting plot is shown in figure 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PlotHistogram==&lt;br /&gt;
This function plots one KDE and/or one histogram as read from _kde.out and _hist.out files written by [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py#PlotHistogram &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt;] from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py &amp;lt;code&amp;gt;PlotCube.py&amp;lt;/code&amp;gt;] (when &amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt; is True).&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
[[File:la2514_fig5.png|400px|right|thumb|Figure 2. Plot generated by PlotHistogram]]&lt;br /&gt;
* &amp;lt;code&amp;gt;fpaths&amp;lt;/code&amp;gt; (string) = paths for _kde.out and _hist.out files (should be one of each at most)&lt;br /&gt;
&lt;br /&gt;
===Optional arguments===&lt;br /&gt;
* &amp;lt;code&amp;gt;value_type&amp;lt;/code&amp;gt; (string, default='esp') = can be ‘esp’/’potential’ or ‘dens’/’density’ (or any uppercase version of the aforementioned); used in conjunction with the keywords &amp;lt;code&amp;gt;au&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; in order to convert the values to the appropriate units&lt;br /&gt;
* &amp;lt;code&amp;gt;colour&amp;lt;/code&amp;gt; (string, default='rainbow') = colour scheme ('rainbow' by default, change it to 'bwr' for blue-white-red) - full list [https://matplotlib.org/users/colormaps.html here]&lt;br /&gt;
* &amp;lt;code&amp;gt;cb_lim&amp;lt;/code&amp;gt; (list, default=None) = limits for the colour bar (list of two floats; if not specified, the limits will be the min and max of the values; if the limits do not cover the whole range of values, a warning is printed)&lt;br /&gt;
* &amp;lt;code&amp;gt;xlim&amp;lt;/code&amp;gt; (list, default=None) = x axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;ylim&amp;lt;/code&amp;gt; (list, default=None) = y axis limits&lt;br /&gt;
* &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; (boolean, default=True) = if True, it saves a .log file of the command used to run the functions (the command is tidied-up before saving i.e. unnecessary spaces are removed, argument values are converted to their usual uppercase/lowercase versions, file lists are explicit - instead of using wildcard symbols such as *)&lt;br /&gt;
* &amp;lt;code&amp;gt;logfile&amp;lt;/code&amp;gt; (string, default=None) = the name of the log file (if &amp;lt;code&amp;gt;log&amp;lt;/code&amp;gt; is True); by default the file name is the input file name followed by the function name&lt;br /&gt;
* &amp;lt;code&amp;gt;cb_sym&amp;lt;/code&amp;gt; (boolean, default=False) = if True, the colour bar limits are chosen to be symmetric around 0 (&amp;lt;code&amp;gt;cb_lim&amp;lt;/code&amp;gt;, if specified, overrides &amp;lt;code&amp;gt;cb_sym&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Observations===&lt;br /&gt;
* if you only want to specify one limit for either of the axis, use None for the other (e.g. xlim=[None,3.5])&lt;br /&gt;
* the function only works for one histogram file and/or one KDE file. If multiple files of either type are specified as arguments, the execution of the program is stopped and a warning is printed.&lt;br /&gt;
* the data in the files specified as arguments must be in the same units. If that is not the case, the execution of the program is stopped and a warning is printed.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;python AdditionalFunctions.py PlotHistogram test_emim_oac_esp_kde.out test_emim_oac_esp_hist.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulting plot is shown in figure 2.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=File:Ia2514_fig5.png&amp;diff=25106</id>
		<title>File:Ia2514 fig5.png</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=File:Ia2514_fig5.png&amp;diff=25106"/>
		<updated>2025-12-10T07:41:36Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=File:Ia2514_fig10.png&amp;diff=25105</id>
		<title>File:Ia2514 fig10.png</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=File:Ia2514_fig10.png&amp;diff=25105"/>
		<updated>2025-12-10T07:39:03Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/report_writing&amp;diff=25104</id>
		<title>Mod:Hunt Research Group/report writing</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/report_writing&amp;diff=25104"/>
		<updated>2025-12-10T04:23:54Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* &amp;quot;have been&amp;quot; or &amp;quot;were&amp;quot;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Report Instructions=&lt;br /&gt;
===written work is NOT a conversation===&lt;br /&gt;
::*many students are far too too colloquial&lt;br /&gt;
::*use a more developed and higher level of language, replace simple generic terms with specific terms&lt;br /&gt;
::*avoid using the following terms: done, even though, although, a lot, meaning, owing, that is,  ...&lt;br /&gt;
::*for example, replace done with &amp;quot;carried out&amp;quot;, &amp;quot;executed&amp;quot;, &amp;quot;investigated&amp;quot;, &amp;quot;implemented&amp;quot;, &amp;quot;performed&amp;quot;&lt;br /&gt;
::*carry out a search on your document for the above words, and ensure you eliminate these from your document unless absolutely essential&lt;br /&gt;
===avoid personal pronouns===&lt;br /&gt;
::* personal pronouns are: I, you, he, she, it, we, they, me, him, her, us, and them&lt;br /&gt;
::* in papers avoid personal pronouns&lt;br /&gt;
::* in a thesis they can be used apringly to emphasise work you did&lt;br /&gt;
::* NOT &amp;quot;we analysed X&amp;quot; &lt;br /&gt;
::* YES &amp;quot;X was analysed&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===science is SPECIFIC===&lt;br /&gt;
::*avoid using the following terms: this, their, these, them, it&lt;br /&gt;
::*all students are expected to have used the &amp;quot;find&amp;quot; feature for the above and to have eliminated these words (there are a few cases where use is appropriate)&lt;br /&gt;
::*never use general extensions such as &amp;quot;and so on&amp;quot;, &amp;quot;etc&amp;quot;, &amp;quot;so on and so forth&amp;quot;&lt;br /&gt;
::*it is OK to repeat a term if it allows you to be specific&lt;br /&gt;
&lt;br /&gt;
===is it LARGER or HIGHER?===&lt;br /&gt;
::*use larger for preference over higher or bigger (and smaller over lower)&lt;br /&gt;
::*options&lt;br /&gt;
:::you can use higher when its a quantity, its positive, and the quantity is normally pictured like a &amp;quot;ladder&amp;quot; or vertical ruler&lt;br /&gt;
:::you can use greater when it refers to a group of things &amp;quot;a greater number of X&amp;quot;&lt;br /&gt;
:::larger is good for sizes, volumes, areas, distances etc&lt;br /&gt;
::*when referring to negative numbers NEVER use larger or bigger or higher&lt;br /&gt;
:::the problem is does larger mean less negative or a larger absolute quantity even though its negative&lt;br /&gt;
:::use &amp;quot;X is more negative&amp;quot; and &amp;quot;X is less negative&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===avoid the use of RUBBISH words===&lt;br /&gt;
::*rubbish words add no knew knowledge or content&lt;br /&gt;
::::&amp;quot;the fact that&amp;quot;&lt;br /&gt;
::::&amp;quot;an interesting point&amp;quot;&lt;br /&gt;
::::&amp;quot;it is worth noting&amp;quot;&lt;br /&gt;
::::&amp;quot;due to the fact&amp;quot;&lt;br /&gt;
::::&amp;quot;it is important to consider&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*words that are colloquial and typical of oral but not written statements&lt;br /&gt;
::::&amp;quot;on the other hand&amp;quot;&lt;br /&gt;
::::&amp;quot;some would say&amp;quot;&lt;br /&gt;
::::&amp;quot;in other words&amp;quot;&lt;br /&gt;
::::&amp;quot;in reality&amp;quot;&lt;br /&gt;
::::&amp;quot;this is indeed&amp;quot;&lt;br /&gt;
::::&amp;quot;when looking at&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*avoid words that mention earlier statements, the reader is intelligent, they know what you have written previously&lt;br /&gt;
::::&amp;quot;as discussed above&amp;quot;&lt;br /&gt;
::::&amp;quot;as noted earlier&amp;quot; &lt;br /&gt;
::::&amp;quot;as mentioned earlier&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*avoid explicitly mentioning data shown in figures and graphs&lt;br /&gt;
::::we are intelligent we can see your graph, do NOT describe graphs or figures in the text&lt;br /&gt;
::::rather make a statement and then just add &amp;quot;..., Figure X&amp;quot; at the end of the sentence&lt;br /&gt;
::::do not use &amp;quot;as shown in Figure X&amp;quot;, &amp;quot;it can be seen in Figure X&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===use proper sentence construction===&lt;br /&gt;
::*SVO=subject-verb-object&lt;br /&gt;
::*example &amp;quot;The graph shows that X is larger than Y.&amp;quot; subject=the graph, verb=shows, object=x and y&lt;br /&gt;
::*the subject can be a noun, pronoun, adjectives or descriptive phrases that go with these&lt;br /&gt;
::*a pronoun refers to people, I, you, he, she, we, they&lt;br /&gt;
::*an adjective qualifies, defines, modifies a noun, for example: big, unique, old&lt;br /&gt;
::*adverbs (consequently, clearly) apply to a whole sentence or clause and can be used to start a sentence&lt;br /&gt;
::*conjunctions or connectors link two elements (clauses) in a sentence, there are two types&lt;br /&gt;
::*ones that cannot come at the start of a sentence (for, and, nor, but, or , yet, that)&lt;br /&gt;
::*ones that can come at the start of a sentence, but please avoid doing so (if, unless, also, provided, as, because, since, therefor, although, though, after, before, while)&lt;br /&gt;
::*the above preface a subordinating clause, ie a clause that clarifies, expands or explains the meaning of the main clause&lt;br /&gt;
::*do NOT start sentences with: as, although, while, because&lt;br /&gt;
::*you can start sentences with: nevertheless, therefor, however&lt;br /&gt;
::*of course, this is English, the rules can-be and are broken at times, but not by you!&lt;br /&gt;
&lt;br /&gt;
===avoid &amp;quot;old&amp;quot; English===&lt;br /&gt;
:do not use old, non modern English, avoid the following ... and related&lt;br /&gt;
::hereby, herein, heretofore, herewith&lt;br /&gt;
::therein, thereby&lt;br /&gt;
::wherein, whereby, whereupon, whereon&lt;br /&gt;
::hitherto, whence&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;have been&amp;quot; or &amp;quot;were&amp;quot;?===&lt;br /&gt;
::Consider the following example&lt;br /&gt;
:::&amp;quot;X have been computed&amp;quot; is choosing to treat this as an event extending to the present. &lt;br /&gt;
:::&amp;quot;X were computed&amp;quot; is choosing to treat this as an event in the past. &lt;br /&gt;
::the numbers we generate in computational chemistry don’t change from the past to the present (if they do there is a problem!) we use “have been”&lt;br /&gt;
::experimentalists, on the other hand, who measure something at a given time in the past, but cannot guarantee it is the same now (in the present) must use “were&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===plurals!===&lt;br /&gt;
::a surprising number of students have problems with plurals&lt;br /&gt;
::if there is more than one, make it plural&lt;br /&gt;
::if you have grouped entities, and then refer to the group, using a singular reference&lt;br /&gt;
::Consider the following example&lt;br /&gt;
:::&amp;quot;the ESP of all molecules has been evaluated&amp;quot;&lt;br /&gt;
:::: there are multiple molecules&lt;br /&gt;
:::: but the whole group (of all molecules) is a single entity and we use &amp;quot;has&amp;quot; and not &amp;quot;have&amp;quot; the plural&lt;br /&gt;
&lt;br /&gt;
===all statements must be TRUE===&lt;br /&gt;
::*read your sentences carefully, in isolation, is it true?&lt;br /&gt;
::*for example a common mistake is &amp;quot;ILs exhibit unique properties&amp;quot; this is NOT true there is no single property that is unique to ILs, but &amp;quot;ILs exhibit a unique combination of properties&amp;quot; is true.&lt;br /&gt;
&lt;br /&gt;
===do not anthropomorphise===&lt;br /&gt;
::* that is do make human an inhuman entity, avoid &amp;quot;their&amp;quot; &amp;quot;themselves&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===your LOGIC must be good===&lt;br /&gt;
::*make sure that when you say &amp;quot;A therefore B&amp;quot; in a sentence that A and B are EXPLICITLY connected&lt;br /&gt;
::*sentence construction NOT &amp;quot;due to B, A&amp;quot; but YES to &amp;quot;A due to B&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===SET-UP the problem===&lt;br /&gt;
::*students have a tendency to start in the middle of an explanation and not set up the problem&lt;br /&gt;
::*start from the beginning explain the problem or concept from scratch&lt;br /&gt;
::*it might be helpful to imagine you are explaining the concept to an UG, who knows nothing about the problem&lt;br /&gt;
&lt;br /&gt;
===ONE sentence ONE idea===&lt;br /&gt;
::*students can have a tendency to produce long rambling sentences&lt;br /&gt;
::*scientific writing is short and to the point&lt;br /&gt;
::*don't be overly wordy, don't try to &amp;quot;sound good&amp;quot; state it as it is.&lt;br /&gt;
&lt;br /&gt;
===use PARAGRAPHS appropriately===&lt;br /&gt;
::*organise your sentences that are about the same point together&lt;br /&gt;
&lt;br /&gt;
===referring to Figures===&lt;br /&gt;
::*do not write &amp;quot;comment ... as shown in Figure X&amp;quot;, rather format this as &amp;quot;comment, Figure X&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===notation and ACRONYMS===&lt;br /&gt;
::*clearly define all notation at the first use e.g. define what N1124 means&lt;br /&gt;
::*avoid the use acronyms if at all possible, only use very COMMON acronyms&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files&amp;diff=25103</id>
		<title>Mod:Hunt Research Group/Python scripts for cube files</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files&amp;diff=25103"/>
		<updated>2025-12-09T00:23:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:ia2514_small_gif.gif|right]]&lt;br /&gt;
&lt;br /&gt;
=Processing Cube Files=&lt;br /&gt;
===Python Codes===&lt;br /&gt;
&amp;lt;b&amp;gt;The latest version of &amp;lt;code&amp;gt;CubePy&amp;lt;/code&amp;gt;, along with a test cube file can be found [[:Media:CubePy_v1.1.zip|here]].&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;CubePy is under [https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode CC BY-NC-SA license]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CubePy encompasses six modules that can be used to read, save, manipulate and visualise data from cube files:&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/ReadCube.py ReadCube.py] - used to extract data from cube files and return it in convenient python formats&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SaveCube.py SaveCube.py] - used to save data from cube files in convenient formats&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CalculateCube.py CalculateCube.py] - used to manipulate data from cube files&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py PlotCube.py] - used to plot data from cube files (using [https://matplotlib.org Matplotlib])&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube_mayavi.py PlotCube_mayavi.py] - used to plot data from cube files (using [http://docs.enthought.com/mayavi/mayavi/ Mayavi])&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py AdditionalFunctions.py] - used to manipulate data &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; from cube files, but from files produced by the scripts above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
*you will need to have installed&lt;br /&gt;
:matplotlib&lt;br /&gt;
:numpy&lt;br /&gt;
:scipy&lt;br /&gt;
:mayavi&lt;br /&gt;
:pandas&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;to run the modules a python script is needed&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Python script can be written and run in different ways:&lt;br /&gt;
* as a new .py file using Spyder (Spyder -&amp;gt; File -&amp;gt; New file... -&amp;gt; [write the file] -&amp;gt; Save As... [make sure you save the file in the same directory as &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt; -&amp;gt; Run -&amp;gt; Run [the file will be run in the iPython console]&lt;br /&gt;
* in the IPython console in Spyder: write the Python commands directly in the console, but make sure that the current working directory is the one containing &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* in the terminal window: type &amp;lt;code&amp;gt;ipython&amp;lt;/code&amp;gt;, then write the Python commands directly in the terminal, but make sure that the current working directory is the one containing &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===If you want to save data from cube files===&lt;br /&gt;
* for saving the values from the cube files, use the functions from SaveCube.py&lt;br /&gt;
* for saving histogram data, use the function &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py with &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt;&lt;br /&gt;
* for saving a short summary file of the minimum, maximum and lowest curvature points on the van der Waals surface, use &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt; when running &amp;lt;code&amp;gt;PlotSurface&amp;lt;/code&amp;gt; from PlotCube_mayavi.py&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If you want to plot surfaces, isosurfaces, slices===&lt;br /&gt;
* use the functions from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube_mayavi.py PlotCube_mayavi.py]. They are faster and better at 3D plotting than the equivalent functions from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py PlotCube.py]&lt;br /&gt;
&lt;br /&gt;
If you want to generate static figures you can also consider using the 3D plotting functions from PlotCube.py. These are especially recommended when wanting to display atoms as they look better than their PlotCube_mayavi.py equivalents. However, keep in mind that Matplotlib sometimes fails at 3D rendering, which generates &amp;quot;incorrect&amp;quot; plots (i.e. elements that should be behind the rest of the plot appear at the front). Therefore, plots created using function from PlotCube.py should be double-checked (by comparing them with plots from PlotCube_mayavi.py, by example).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If you want to plot histograms and KDEs===&lt;br /&gt;
* use &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py to plot a histogram and/or KDE directly from cube files&lt;br /&gt;
* use &amp;lt;code&amp;gt;OverlapKDEs&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from AdditionalFunctions.py to plot histograms and KDEs from files written by &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py when &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files&amp;diff=25102</id>
		<title>Mod:Hunt Research Group/Python scripts for cube files</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files&amp;diff=25102"/>
		<updated>2025-12-09T00:22:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:ia2514_small_gif.gif|right]]&lt;br /&gt;
&lt;br /&gt;
=Processing Cube Files=&lt;br /&gt;
===Python Codes===&lt;br /&gt;
&amp;lt;b&amp;gt;The latest version of &amp;lt;code&amp;gt;CubePy&amp;lt;/code&amp;gt;, along with a test cube file can be found [[:Media:CubePy_v1.1.zip|here]].&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;CubePy is under [https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode CC BY-NC-SA license]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CubePy encompasses six modules that can be used to read, save, manipulate and visualise data from cube files:&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/ReadCube.py ReadCube.py] - used to extract data from cube files and return it in convenient python formats&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SaveCube.py SaveCube.py] - used to save data from cube files in convenient formats&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CalculateCube.py CalculateCube.py] - used to manipulate data from cube files&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py PlotCube.py] - used to plot data from cube files (using [https://matplotlib.org Matplotlib])&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube_mayavi.py PlotCube_mayavi.py] - used to plot data from cube files (using [http://docs.enthought.com/mayavi/mayavi/ Mayavi])&lt;br /&gt;
* [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/AdditionalFunctions.py AdditionalFunctions.py] - used to manipulate data &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; from cube files, but from files produced by the scripts above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
*you will need to have installed&lt;br /&gt;
:matplotlib&lt;br /&gt;
:numpy&lt;br /&gt;
:scipy&lt;br /&gt;
:mayavi&lt;br /&gt;
:pandas&lt;br /&gt;
*&amp;lt;b&amp;gt;old&amp;lt;/b&amp;gt; initial set-up [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/CubePy_setup getting started]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;to run the modules a python script is needed&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Python script can be written and run in different ways:&lt;br /&gt;
* as a new .py file using Spyder (Spyder -&amp;gt; File -&amp;gt; New file... -&amp;gt; [write the file] -&amp;gt; Save As... [make sure you save the file in the same directory as &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt; -&amp;gt; Run -&amp;gt; Run [the file will be run in the iPython console]&lt;br /&gt;
* in the IPython console in Spyder: write the Python commands directly in the console, but make sure that the current working directory is the one containing &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* in the terminal window: type &amp;lt;code&amp;gt;ipython&amp;lt;/code&amp;gt;, then write the Python commands directly in the terminal, but make sure that the current working directory is the one containing &amp;lt;code&amp;gt;CalculateCube.py&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===If you want to save data from cube files===&lt;br /&gt;
* for saving the values from the cube files, use the functions from SaveCube.py&lt;br /&gt;
* for saving histogram data, use the function &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py with &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt;&lt;br /&gt;
* for saving a short summary file of the minimum, maximum and lowest curvature points on the van der Waals surface, use &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt; when running &amp;lt;code&amp;gt;PlotSurface&amp;lt;/code&amp;gt; from PlotCube_mayavi.py&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If you want to plot surfaces, isosurfaces, slices===&lt;br /&gt;
* use the functions from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube_mayavi.py PlotCube_mayavi.py]. They are faster and better at 3D plotting than the equivalent functions from [https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/PlotCube.py PlotCube.py]&lt;br /&gt;
&lt;br /&gt;
If you want to generate static figures you can also consider using the 3D plotting functions from PlotCube.py. These are especially recommended when wanting to display atoms as they look better than their PlotCube_mayavi.py equivalents. However, keep in mind that Matplotlib sometimes fails at 3D rendering, which generates &amp;quot;incorrect&amp;quot; plots (i.e. elements that should be behind the rest of the plot appear at the front). Therefore, plots created using function from PlotCube.py should be double-checked (by comparing them with plots from PlotCube_mayavi.py, by example).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If you want to plot histograms and KDEs===&lt;br /&gt;
* use &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py to plot a histogram and/or KDE directly from cube files&lt;br /&gt;
* use &amp;lt;code&amp;gt;OverlapKDEs&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from AdditionalFunctions.py to plot histograms and KDEs from files written by &amp;lt;code&amp;gt;PlotHistogram&amp;lt;/code&amp;gt; from PlotCube.py when &amp;lt;code&amp;gt;save=True&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25101</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25101"/>
		<updated>2025-12-07T18:59:54Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version *NOTE* currently 23.9.0 is NOT WORKING&lt;br /&gt;
load the previous version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
module load Miniconda3/22.11.1-1&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevent conda from trying to use the system python and pip&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment, check its there and then activate it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25100</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25100"/>
		<updated>2025-12-07T18:58:51Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version *NOTE* currently 23.9.0 is NOT WORKING&lt;br /&gt;
load the previous version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
module load Miniconda3/22.11.1-1&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevent conda from trying to use the system python and pip&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25099</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25099"/>
		<updated>2025-12-07T18:56:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version *NOTE* currently 23.9.0 is NOT WORKING&lt;br /&gt;
load the previous version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
module load Miniconda3/22.11.1-1&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevent conda from trying to use the system python and pip&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25098</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25098"/>
		<updated>2025-12-07T18:53:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version *NOTE* currently 23.9.0 is NOT WORKING&lt;br /&gt;
load the previous version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
module load Miniconda3/22.11.1-1&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevent conda from trying to use the system python and pip&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25097</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25097"/>
		<updated>2025-12-07T18:53:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version *NOTE* currently 23.9.0 is NOT WORKING&lt;br /&gt;
load the previous version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
module load Miniconda3/22.11.1-1&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25096</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25096"/>
		<updated>2025-12-07T18:50:42Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check to see what has been loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
make sure python and GCC and OpenMPI are all present, if not&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25095</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25095"/>
		<updated>2025-12-04T18:54:39Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run interactively */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the job interactively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25094</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25094"/>
		<updated>2025-12-04T18:53:55Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run a test job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25093</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25093"/>
		<updated>2025-12-04T18:53:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Run SAPT calculations using Psi4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file interactively as a test&lt;br /&gt;
Normally you will run via a PBS script!!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25092</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25092"/>
		<updated>2025-12-04T18:52:49Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
===Installing Psi4 locally for yourself on the HPC===&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file interactively as a test&lt;br /&gt;
Normally you will run via a PBS script!!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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;br /&gt;
&lt;br /&gt;
===Run interactively===&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;
*Start an interactive session&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Load your personal conda&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
*Create and activate a Psi4 environment&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
*Install PSI4&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25091</id>
		<title>Mod:Hunt Research Group/SAPT</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT&amp;diff=25091"/>
		<updated>2025-12-04T18:48:39Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run SAPT calculations using Psi4==&lt;br /&gt;
&lt;br /&gt;
===Installing Psi4 locally for yourself on the HPC===&lt;br /&gt;
&lt;br /&gt;
Psi4 website https://psicode.org/psi4manual/master/index.html&lt;br /&gt;
&lt;br /&gt;
===PBS submission script===&lt;br /&gt;
:copy the submission script below into a file called runpsi4.sh&lt;br /&gt;
:copy your input file to testb.inp&lt;br /&gt;
:submit with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sbatch runpsi4.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=testb&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=32GB&lt;br /&gt;
#SBATCH --partition=quicktest&lt;br /&gt;
#SBATCH --time=4:59:00&lt;br /&gt;
#SBATCH -o /nfs/scratch/huntpa/testb.out&lt;br /&gt;
#SBATCH -e /nfs/scratch/huntpa/testb.err&lt;br /&gt;
&lt;br /&gt;
cp /nfs/home/huntpa/julian/testb.inp /nfs/scratch/huntpa/testb.inp&lt;br /&gt;
export PSI_SCRATCH='/nfs/scratch/huntpa/'&lt;br /&gt;
&lt;br /&gt;
cd /nfs/scratch/huntpa/&lt;br /&gt;
module --quiet purge&lt;br /&gt;
module load foss/2024a GCC/13.3.0  OpenMPI/5.0.3 &lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
psi4 -i testb.inp &lt;br /&gt;
&lt;br /&gt;
test -r testb.out&lt;br /&gt;
if [ $? -eq 0 ]&lt;br /&gt;
then&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.out /nfs/home/huntpa/julian/testb.out&lt;br /&gt;
  cp /nfs/scratch/huntpa/testb.log /nfs/home/huntpa/julian/testb.log&lt;br /&gt;
  cp /nfs/scratch/huntpa/timer.dat /nfs/home/huntpa/julian/testb.time&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&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;
====Start an interactive session====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --cpus-per-task=16 --mem=16G --time=0-05:00:00 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Create your personal conda====&lt;br /&gt;
Check the latest version of Miniconda&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module spider Miniconda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then load the latest version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load Miniconda3/23.9.0-0&lt;br /&gt;
conda --version&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda 23.9.0&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PIP_NO_CACHE_DIR=1&lt;br /&gt;
export PYTHONNOUSERSITE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
prevents conda from trying to use the system python and pip&lt;br /&gt;
&lt;br /&gt;
====Create and activate a Psi4 environment====&lt;br /&gt;
Create a Psi4 environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda create -n psi4env&lt;br /&gt;
conda env list&lt;br /&gt;
# conda environments:&lt;br /&gt;
#&lt;br /&gt;
base                     /home/software/EasyBuild/software/Miniconda3/23.9.0-0&lt;br /&gt;
psi4env                  /nfs/home/huntpa/.conda/envs/psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $(conda info --base)/etc/profile.d/conda.sh&lt;br /&gt;
conda activate psi4env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
conda init is not recommended as it modifies your shell configuration files. This can cause problems with the module system and other software. Instead, use the source $(conda info --base)/etc/profile.d/conda.sh command to activate conda in your current shell session.&lt;br /&gt;
&lt;br /&gt;
====Install PSI4====&lt;br /&gt;
Install and check psi4 version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda install -c conda-forge psi4&lt;br /&gt;
Collecting package metadata (current_repodata.json): done&lt;br /&gt;
Solving environment: done&lt;br /&gt;
...&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
...&lt;br /&gt;
Proceed ([y]/n)? &lt;br /&gt;
...&lt;br /&gt;
Downloading and Extracting Packages:&lt;br /&gt;
Preparing transaction: done&lt;br /&gt;
Verifying transaction: done&lt;br /&gt;
Executing transaction: done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then test the version&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 --version&lt;br /&gt;
1.9.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Run a test job===&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 testa.inp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
memory 14 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('sapt2')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the file interactively as a test&lt;br /&gt;
Normally you will run via a PBS script!!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psi4 testa.inp -n 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you will get the following files&lt;br /&gt;
:test.out has your output&lt;br /&gt;
:test.log has runtime info&lt;br /&gt;
:timer.dat has info on timing&lt;br /&gt;
check against the output below for the SAPT section&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>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25085</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25085"/>
		<updated>2025-11-13T16:53:23Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
:the following example has 22 atoms and is centered at atom 16, then the coordinates follow&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
22 &lt;br /&gt;
16&lt;br /&gt;
   7  -0.047020  -1.332546   0.137334 &lt;br /&gt;
   7  -1.252302   0.460618  -0.104654 &lt;br /&gt;
   6  -1.629750   1.865930  -0.321180 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the field it is set to x+50 at the moment&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=altering the script=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25084</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25084"/>
		<updated>2025-11-13T16:52:56Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
:the following example has 22 atoms and is centered at atom 16, then the coordinates follow&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
22 &lt;br /&gt;
16&lt;br /&gt;
   7  -0.047020  -1.332546   0.137334 &lt;br /&gt;
   7  -1.252302   0.460618  -0.104654 &lt;br /&gt;
   6  -1.629750   1.865930  -0.321180 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the field it is set to xp+50 at the moment&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=altering the script=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25083</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25083"/>
		<updated>2025-11-13T16:52:13Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* create an input file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
:the following example has 22 atoms and is centered at atom 16, then the coordinates follow&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
22 &lt;br /&gt;
16&lt;br /&gt;
   7  -0.047020  -1.332546   0.137334 &lt;br /&gt;
   7  -1.252302   0.460618  -0.104654 &lt;br /&gt;
   6  -1.629750   1.865930  -0.321180 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=altering the script=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25082</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25082"/>
		<updated>2025-11-13T16:52:01Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* create an input file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
:example has 22 atoms and is centered at atom 16, then the coordinates follow&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
22 &lt;br /&gt;
16&lt;br /&gt;
   7  -0.047020  -1.332546   0.137334 &lt;br /&gt;
   7  -1.252302   0.460618  -0.104654 &lt;br /&gt;
   6  -1.629750   1.865930  -0.321180 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=altering the script=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25081</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25081"/>
		<updated>2025-11-13T16:49:33Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=altering the script=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25080</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25080"/>
		<updated>2025-11-13T16:49:15Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
:you may want to edit the lines in the script for the optimisation&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25079</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25079"/>
		<updated>2025-11-13T16:47:56Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
&lt;br /&gt;
=pos_restartzmat.py=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_restartzmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords from an electric field run and &lt;br /&gt;
# produce a file to continue the run, ie no re-orientation&lt;br /&gt;
# in a FIRST step you will need to extract the last set of coordinates from your optimisation job&lt;br /&gt;
# use extract_structure.py&lt;br /&gt;
# to run the script type python pos_restartzmat.py input_file_name (without extension)&lt;br /&gt;
# input file has extension .inp and format&lt;br /&gt;
# no of atoms&lt;br /&gt;
# x where we center at atom x&lt;br /&gt;
# atomic symbol and coordinates&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) == 1:&lt;br /&gt;
  print('to run the script please type: python symb_restartzmat.py input_file_name \(without extension\)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_1.com'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='YOU MUST UPDATE THE FIELD AND CHECK CHARGE'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
  s='YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS'&lt;br /&gt;
  print('{0:}'.format(s))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
p=4.0&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
atomtotal=atomtotal-3&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#center at atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomcenter=int(line.rstrip())&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
# write to the _symb.xyz file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=32\n%mem=58GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_1.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s1=&amp;quot;opt=(z-matrix,notrust,maxstep=60) field=x+50 &amp;quot;&lt;br /&gt;
s2=&amp;quot;nosymm pop=(full,nbo7,dipole,chelpg) prop \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}{1:}'.format(s1,s2))&lt;br /&gt;
s=&amp;quot;Title Card Required \n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=-1&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mx[n],m,my[n],m,mz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25078</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25078"/>
		<updated>2025-11-13T16:46:48Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25077</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25077"/>
		<updated>2025-11-13T16:45:41Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
:output will look something like this&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25076</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25076"/>
		<updated>2025-11-13T16:45:09Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
this will produce a file_1.com&lt;br /&gt;
:CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
:output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25075</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25075"/>
		<updated>2025-11-13T16:44:48Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* run the job */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
this will produce a file_1.com&lt;br /&gt;
CHECK THIS FILE&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25074</id>
		<title>Mod:Hunt Research Group:restart symbolic zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat&amp;diff=25074"/>
		<updated>2025-11-13T16:44:17Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Created page with &amp;quot;=create an input file= *extract the final geometry from the optimisation log file first :: extract_structure.py filename (on your log file with without the .log extension) ::...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=create an input file=&lt;br /&gt;
*extract the final geometry from the optimisation log file first&lt;br /&gt;
:: extract_structure.py filename (on your log file with without the .log extension)&lt;br /&gt;
:: this will give you a file filename.xyz&lt;br /&gt;
:: copy this to filename.inp and add the following information to the top of the file&lt;br /&gt;
:: number of atoms&lt;br /&gt;
:: atom at 0,0,0&lt;br /&gt;
&lt;br /&gt;
=run the job=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pos_restartzmat.py file.inp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
this will produce a file_1.com&lt;br /&gt;
***CHECK THIS FILE***&lt;br /&gt;
::change the multiplicity and charge&lt;br /&gt;
::make constants the fixed atom and dummy atoms marking the axes&lt;br /&gt;
output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
input file is emim_yp50_opt.inp&lt;br /&gt;
symbolic z-matrix output file is emim_yp50_opt_1.com&lt;br /&gt;
YOU MUST UPDATE THE FIELD AND CHECK CHARGE&lt;br /&gt;
YOU MUST MAKE THE FIXED ATOM xyz CONSTANTS&lt;br /&gt;
total number of atoms 19&lt;br /&gt;
center at atom 16&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=HRG:HuntResearchGRoup&amp;diff=25073</id>
		<title>HRG:HuntResearchGRoup</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=HRG:HuntResearchGRoup&amp;diff=25073"/>
		<updated>2025-11-13T16:39:50Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* to build new files from data or existing files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hunt Research Group Wiki==&lt;br /&gt;
===Report and Paper Writing===&lt;br /&gt;
#procedures [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/report_procedures link]&lt;br /&gt;
#advice [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/report_writing link]&lt;br /&gt;
#report components [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/report_components link]&lt;br /&gt;
#files to provide when writing a paper [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/paper link]&lt;br /&gt;
&lt;br /&gt;
===Data Base===&lt;br /&gt;
#File naming on the database [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/database-files link]&lt;br /&gt;
#Database xlsx instructions and template [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/database link]&lt;br /&gt;
#Database CREST and xlsx instructions and template [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/database-crest link]&lt;br /&gt;
&lt;br /&gt;
===Methodology===&lt;br /&gt;
#Preferred Methodology [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/preferred_method link]&lt;br /&gt;
#Basis sets [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/different_basis_sets link]&lt;br /&gt;
&lt;br /&gt;
===Key Papers===&lt;br /&gt;
#Best-Practice Protocols for choosing method and basis [https://doi.org/10.1002/anie.202205735 doi]&lt;br /&gt;
#Status and Challenges of Density Functional Theory [https://doi.org/10.1016/j.trechm.2020.02.005 doi]&lt;br /&gt;
#Meta study on DFT functionals [https://pubs.acs.org/doi/abs/10.1021/ct401111c doi]&lt;br /&gt;
#Molecular Geometry is relatively insensitive to basis set [https://doi.org/10.1021/acs.jctc.3c00388 doi]&lt;br /&gt;
#Scale factors for vibrational frequencies DFT [https://pubs.acs.org/doi/10.1021/acs.jpca.2c06908 doi] and MP2 [https://pubs.acs.org/doi/10.1021/jp048233q 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;
&lt;br /&gt;
===HPC Resources===&lt;br /&gt;
#Getting started and introduction to the HPC: [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Getting_started_on_the_HPC link]&lt;br /&gt;
#Running jobs on the HPC Raapoi: [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Running_jobs_on_the_HPC link]&lt;br /&gt;
#Running jobs on the HPC NeSI: [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Running_jobs_on_NeSI link]&lt;br /&gt;
#How much memory (and disk) to use: [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/How_much_memory_to_use link]&lt;br /&gt;
#How to start an interactive session: [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/Start_interactive_session link]&lt;br /&gt;
#How to set-up access from your desktop to the hpc [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_remote link]&lt;br /&gt;
#How to use cloud storage resources [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/cloud link]&lt;br /&gt;
&lt;br /&gt;
===Using Windows PCs===&lt;br /&gt;
#use MobaXTerm [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/mobaxterm link] &lt;br /&gt;
#use Putty [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/putty link] &lt;br /&gt;
#very basic using a Terminal on a Windows PC [https://learn.microsoft.com/en-us/windows/terminal/ external link]&lt;br /&gt;
#install a Linux distribution [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/windows-linux link] &lt;br /&gt;
#How to fix Windows files under UNIX [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/Windowsfiles link]&lt;br /&gt;
&lt;br /&gt;
===Tips and Tricks===&lt;br /&gt;
#Tired of entering your password all the time: set up a SSH keypair [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/SSHkeyfile link] &lt;br /&gt;
#How to make ssh more comfortable [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpSSH link] &lt;br /&gt;
#How to comfortably search through old BASH commands [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/searchbash link]&lt;br /&gt;
#A terminal emulator capable of splitting into multiple screens [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/iterm2 link]&lt;br /&gt;
#module command not working or giving error &amp;quot;bad argument&amp;quot; [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/module 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://sagacioushours.org.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;
#beginners starting from a chemdraw structure [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/from_chemdraw link]&lt;br /&gt;
#optimisation errors and problems [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/opt_problems link]&lt;br /&gt;
#partial optimisations and scans [https://sagacioushours.org.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;
#problems with scf convergence [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/scf_convergence link]&lt;br /&gt;
#Population and charge analysis [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/population link]&lt;br /&gt;
&lt;br /&gt;
===Gaussian Advanced===&lt;br /&gt;
#basic ONIOM (Mechanical Embedding) [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/basiconiom link]&lt;br /&gt;
#how to run at a higher temperature [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:high_temp link]&lt;br /&gt;
#correcting the entropy due to low modes [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:low_modes_entropy link] &lt;br /&gt;
#generating natural transition orbitals [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/nto link]&lt;br /&gt;
#computing excited state polarisabilities [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_ES_alpha link]&lt;br /&gt;
#dipoles in Gaussian [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:dipoles link]&lt;br /&gt;
#molecules in an electric field [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field link]&lt;br /&gt;
#computing deuterated and/or anharmonic spectra [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Danharm link]&lt;br /&gt;
#for NMR calculations look here: [http://cheshirenmr.info/index.htm Chemical Shift Repository]&lt;br /&gt;
#old:systematic conformational scan for ion-pair dimers [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ion_pair_scan link]&lt;br /&gt;
#old: optimisation of charged molecules in an electric field [https://sagacioushours.org.uk/wiki/index.php?title=Optimising_charged_molecules_in_electric_fields link]&lt;br /&gt;
#old: multidimensional Scans of Internal Coordinates [https://sagacioushours.org.uk/wiki/index.php?title=Multidimensional_Scans_of_Internal_Coordinates link]&lt;br /&gt;
&lt;br /&gt;
===Solvation===&lt;br /&gt;
#Atomic radii [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/atomic_radii link]&lt;br /&gt;
#Using the SMD model [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/solvent link]&lt;br /&gt;
#Molecular volume calculations [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molecular_volume link]&lt;br /&gt;
#The cavity [https://sagacioushours.org.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://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/geomview link]&lt;br /&gt;
#Surfaces (Solvent-Accessible and Connolly) in Jmol [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/jmolsurfaces link]&lt;br /&gt;
#Using SMD on ILs [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:_Using_SMD_on_ILs link]&lt;br /&gt;
#Troublesome optimisations in SMD [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:troublesome_smd link]&lt;br /&gt;
&lt;br /&gt;
===QC Visualisation===&lt;br /&gt;
#Using AIMALL: density based visualisation&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://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_basics link]&lt;br /&gt;
##AimAll volume / surface area calculations [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_volume link]&lt;br /&gt;
##AimAll with pseudo potentials [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:aim_pseudopotentials link]&lt;br /&gt;
##AIMAll 19.10.12 on iMacs [https://sagacioushours.org.uk/wiki/index.php?title=Mod:AIMAllQuickFix link]&lt;br /&gt;
#FCHK and CUBE files and manipulation&lt;br /&gt;
##creating formatted checkpoint files [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:usingchkfiles link]&lt;br /&gt;
##generating and manipulating cube files [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:generate_and_manipulate_cube_files link] &lt;br /&gt;
##Format of cube files [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/cube_format link]&lt;br /&gt;
#ESPs files and analysis&lt;br /&gt;
##Instructions for visualizing electrostatic potentials (Gaussview)[https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials link]&lt;br /&gt;
##Electrostatic Potentials II (Molden) [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/electrostatic_potentials_2 link] &lt;br /&gt;
##Using A. Stone's distributed multipole analysis [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/GDMA link] &lt;br /&gt;
##Finding sigma hole (Vs,max and Vs,min values) using Multiwfn [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:sigma_hole_multiwfn link]&lt;br /&gt;
#NCI Plots&lt;br /&gt;
##How to install NCIPlot on your mac [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/InstallNCIPlot link]&lt;br /&gt;
##Using NCIPlot [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/UseNCIPlot link] &lt;br /&gt;
#Using Multiwfn: density based visualisation&lt;br /&gt;
##Download Multiwfn [http://sobereva.com/multiwfn/download.html link]&lt;br /&gt;
##Installation of Multiwfn on Mac [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:multiwfn_on_mac link] &lt;br /&gt;
##Using MP2 Densities in Multiwfn Surface Analysis [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:multiwfn_mp2_density link]&lt;br /&gt;
##Generate BCPs [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:multiwfn_bcps link] &lt;br /&gt;
#Jmol Visualisations&lt;br /&gt;
##Jmol basics [https://sagacioushours.org.uk/wiki/index.php?title=Mod:basic_jmol_instructions link]&lt;br /&gt;
##Visualising MOs using Jmol [https://sagacioushours.org.uk/wiki/index.php?title=Mod:basic_jmol_MOs link]&lt;br /&gt;
##Visualising vibrations using Jmol [https://sagacioushours.org.uk/wiki/index.php?title=Mod:basic_jmol_vibs link]&lt;br /&gt;
##Using Jmol to make a structure animation [https://sagacioushours.org.uk/wiki/index.php?title=Mod:struct_animate_jmol link]&lt;br /&gt;
##Jmol movie script [https://sagacioushours.org.uk/wiki/index.php?title=Mod:jmol_movie link]&lt;br /&gt;
##Using Jmol to overlap structures [https://sagacioushours.org.uk/wiki/index.php?title=Mod:struct_overlap_jmol link]&lt;br /&gt;
#VMD: a molecular dynamics visualisation package&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://sagacioushours.org.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDReminder link]&lt;br /&gt;
##Colour in VMD  [https://sagacioushours.org.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDColor link]&lt;br /&gt;
##Changing the graphical representation of your structures [https://sagacioushours.org.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/vmd link]&lt;br /&gt;
##VMD indexing  [https://sagacioushours.org.uk/wiki/index.php/Talk:Mod:Hunt_Research_Group/VMDindexing link]&lt;br /&gt;
##Using scripts in VMD [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScripts link]&lt;br /&gt;
## Instructions for how to extract geometry and charges (ESP) into a .pdb file for visualising in VMD, especially if you want a blue-red colour variation rather than gaussviews red-greeen [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ESP_charges_for_VMD link]&lt;br /&gt;
##Dealing with periodic boundaries and bonding (under construction) [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdScriptsPeriodic link]&lt;br /&gt;
##Dealing with bonding (under construction) [https://sagacioushours.org.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://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/VMDmovie link] &lt;br /&gt;
##Overlapping two structures [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/VmdVisual link]&lt;br /&gt;
&lt;br /&gt;
===ORCA===&lt;br /&gt;
#This section is about using ORCA 6.1 on the HPC (Raapoi) [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_hpc link]&lt;br /&gt;
#Installing on a mac [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_macs link]&lt;br /&gt;
#Running ORCA [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca_run link]&lt;br /&gt;
#Using different basis sets and pseudopotentials for heavy elements in ORCA [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_PPs link]&lt;br /&gt;
#Plotting MOs with ORCA in GaussView format [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_MOs link]&lt;br /&gt;
#Visualize ORCA output files in GaussView [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_output_visuzlize link]&lt;br /&gt;
#Memory Specification in ORCA [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/orca6_Memory link]&lt;br /&gt;
&lt;br /&gt;
===Other Programes===&lt;br /&gt;
#CREST [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/crest link]&lt;br /&gt;
#ABCluster conformational search of atomic and molecular clusters [https://sagacioushours.org.uk/wiki/index.php?title=Mod:ABCluster#.inp_file_on_the_HPC link]&lt;br /&gt;
#MD programs and instructions [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/MD_info link]&lt;br /&gt;
#ADF Submission script [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/ADF_sricpt link]&lt;br /&gt;
#POLYRATE how to install [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/polyrate link] &lt;br /&gt;
#Psi4 and running SAPT calculations [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SAPT link]&lt;br /&gt;
#LDdecomposition (London Dispersion decomposition) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/LDD link]&lt;br /&gt;
#SpectroIBIS WINDOWS spectral data processing https://github.com/bbulcock/SpectroIBIS&lt;br /&gt;
#MultiWfn WINDOWS density/ESP analysis http://sobereva.com/multiwfn/&lt;br /&gt;
&lt;br /&gt;
===Coding===&lt;br /&gt;
#'''installing Xcode and other programming environments'''&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://sagacioushours.org.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://sagacioushours.org.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;
##Runing windows codes using wine [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/Wine link] &lt;br /&gt;
##gfortran on your mac [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/Gfortran link] &lt;br /&gt;
##using python on your mac [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/python link]&lt;br /&gt;
#'''Ling's''' EMO Code [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/emo link]&lt;br /&gt;
#'''Jan's''' charge based analysis Code [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/Jan_charges link]&lt;br /&gt;
#'''Oxana's''' visualisation of ESPs Code [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/Python_scripts_for_cube_files link]&lt;br /&gt;
#'''Richard M's''' Calculate pDoS/XP spectra code [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Calc_XPS_Code link]&lt;br /&gt;
#'''Becky's''' script to extract frequency data from gaussian .log files and generate vibrational spectra [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:frequency_spectrum_script link]&lt;br /&gt;
&lt;br /&gt;
===Python scripts===&lt;br /&gt;
====Intro====&lt;br /&gt;
*'''note:''' scripts with &amp;quot;D&amp;quot; in front are those made to run on groups of files &lt;br /&gt;
::: they can be for when you have a large number of files from a crest run&lt;br /&gt;
::: they can be for use within a single directory, running on all files in that directory&lt;br /&gt;
::: made to be used with a set of specific gaussian log files, Tricia's ones are made to work on files with a structured naming sequence, for example struc_xx_B3LYP_D3BJ_6311pGdp_opt.log where xx is the individual number&lt;br /&gt;
&lt;br /&gt;
====for set-up and running====&lt;br /&gt;
# '''sumbit.py''' script to submit G16 jobs: Code to auto-create a batch script  [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/create_batch_script link]&lt;br /&gt;
# '''Dsumbit.py''' script: Code to auto-create a batch script for ALL the com files in a partucluar directory and submit them to the que  [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Dsubmit link]&lt;br /&gt;
# '''suborca.py''' script to submit Orca jobs: Code to auto-create a batch script  [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/create_orca_batch_script link]&lt;br /&gt;
# '''Dsuborca.py''' script: Code to auto-create a batch script for a specified number of jobs with input files of the form base_xx.inp [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Dsuborca link]&lt;br /&gt;
# '''get_energy.py''' script: Check a job while it is running, plot energy, find lowest force [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_energy link]&lt;br /&gt;
# '''tlog.py''' script: Check a G16 job while it is running by using tail, printing Max force, Max displacement, Energy and saving a version to your home directory [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/tlog link]&lt;br /&gt;
# '''Dgetorca.py''' script: Check an orca job while it is running, or has finised [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Dgetorca link]&lt;br /&gt;
# '''ocheck.py''' script: Check an orca job while it is running, or has finised [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/ocheck link]&lt;br /&gt;
&lt;br /&gt;
====to extract structures====&lt;br /&gt;
# '''extract_structure.py''' script: Extract last Standard Orientation structure of gaussian log file [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_single_geom link]&lt;br /&gt;
# '''Dextract_structure.py''' script: Extract last Standard Orientation structure of multiple gaussian log files of the form struc_xx_B3LYP_D3BJ_6311pGdp_opt.log [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Dextract_from_multiple_log_files link]&lt;br /&gt;
# '''extract_geom.py''' script: Extract Optimized Geometry Gaussian/ORCA log file into an .xyz or .com file [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_optimized_geom link]&lt;br /&gt;
# '''extract_steps.py''' script: Extract each optimised step from a scan into xyz coordinate file [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_scan_geom link]&lt;br /&gt;
# '''extract_crest_conf.py''' script: Extract given structure from a CREST conformer file and save to a *.xyz file (useful for using with Jmol) [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_crest_conf link]&lt;br /&gt;
&lt;br /&gt;
==== to build new files from data or existing files====&lt;br /&gt;
# '''build_freq.py''' script: Build a frequency file from an optimisation file ready to submit, this will require editing for your particular job [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/build_freq link]&lt;br /&gt;
# '''Dbuild_freq.py''' script: Extract last structure of gaussian optimisation and build a freq com file for multiple gaussian log files of the form struc_xx_B3LYP_D3BJ_6311pGdp_opt.log [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/Dbuild_freq_file link]&lt;br /&gt;
# '''symb_zmat.py''' script: Generate a symbolic z-matrix, requires you to use extract_structure.py and form a *.inp file with the xyz coords and a set of command words [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:gen_symbolic_zmat link]&lt;br /&gt;
# '''pos_zmat.py''' script: Orientate the molecule along a specific axis, rotate by a defined angle and or fix a particular atom as the origin. Requires you to use extract_structure.py and form a *.inp file with the xyz coords and a set of command words, generates a symbolic z-matrix [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:position_symbolic_zmat link]&lt;br /&gt;
# '''pos_restartzmat.py''' script: This script restarts a symbolic z-matrix job (used for electric fields). Requires you to use extract_structure.py and form a *.inp file with the xyz coords, generates a symbolic z-matrix file to continue an optimisation [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:restart_symbolic_zmat link]&lt;br /&gt;
&lt;br /&gt;
====to extract Thermochem data====&lt;br /&gt;
# '''getdata.py''' script: Extract thermodynamic data and low frequencies from a single log file into a formatted line to copy and paste into an excel files for the database [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:model_freq_script link]&lt;br /&gt;
# '''Dgetdata.py''' script: Extract thermodynamic data and low frequencies from all the log files in a directory into a csv file for the database (Tricia) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:Dgetdata link]&lt;br /&gt;
# '''Dget_frequencies_data.py''' script: Extract thermodynamic data and low frequencies from all the log files in a directory to a csv file for the database (Muhammad) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:model_freq_script2 link]&lt;br /&gt;
# '''extract_vib.py''' script: for G16, extract vibrational data and make a plot [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:extract_and_plot_vib link]&lt;br /&gt;
# '''orca_vib.py''' script: for orca, extract vibrational data and make a plot [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:orca_vib link]&lt;br /&gt;
&lt;br /&gt;
====to extract NMR data====&lt;br /&gt;
# '''Dboltzmann_NMR_of_conformers.py''' script: Extract NMR data from all conformed log files into an excel file (csv) for with individual shielding tensors, Boltzmann averaged tensors, Boltzmann factor etc. (Muhammad) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:nmr_of_conformers link]&lt;br /&gt;
&lt;br /&gt;
====to extract charges and calculate dipole moment / charge arm====&lt;br /&gt;
# '''extract_charges.py''' script: Extract ESP and NBO charges [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/extract_ESP_charges link]&lt;br /&gt;
# '''dipole_moment.py''' code to extract multiple charges and evaluate the dipole moment (Irelie) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/dipole_moment link]&lt;br /&gt;
# '''center-of-mass_calculation.py''' code to calculate center of mass (CoM) from an XYZ or log file (Muhammad) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/center_of_mass link]&lt;br /&gt;
# '''calculate_dipole_wrt_CoIR_CoP_g16.py''' code to calculate dipole moment w.r.t center of imidazolium ring from g16 log file (Muhammad) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/dipole_moment_CoIR link]&lt;br /&gt;
# '''calculate_dipole_wrt_atom_or_coordinate_g16.py''' code to calculate dipole moment w.r.t any atom or coordinate from g16 log file (Muhammad) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/dipole_moment_atom_coordinate link]&lt;br /&gt;
&lt;br /&gt;
====Other quantities====&lt;br /&gt;
# '''extract_aim.py''' script: Extract volume data from AIMALL sumviz files [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:extract_volume_aimall link]&lt;br /&gt;
# '''get_MOenergy.py''' script: Extract the MO orbital energies and convert to eV  [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/MO_energies link]&lt;br /&gt;
#'''plot_PES.py''' script: Plot a potential energy surface [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/plot_potenital_energy_surface link]&lt;br /&gt;
&lt;br /&gt;
====Historical codes====&lt;br /&gt;
# '''CArm.py''' script: Extract charges from *.fck and calculate the charge arm [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/charge_arm link]&lt;br /&gt;
# '''freq.py''' historical python2 script&amp;quot; Extract thermodynamic data and low frequencies from log files [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:simple_freq_script link]&lt;br /&gt;
# Codes to visualise data matrices (correlation matrices/heatmaps)[https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/heatmap link]&lt;br /&gt;
# Python toolkit currently focussed towards gaussian analysis [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/molLego link]&lt;br /&gt;
# Extract E2 Values (From NBO Calculations) [https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/NBO_Matlab_Code link]&lt;br /&gt;
&lt;br /&gt;
===Admin Stuff===&lt;br /&gt;
#Not used to writing a wiki, make your test runs [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/testing on this page]&lt;br /&gt;
#How to set-up gaussian and gaussview on macs [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_setup link]&lt;br /&gt;
#Mac user admin basics [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/mac_admin_users link]&lt;br /&gt;
#Moving large files and directories around [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/file_move link]&lt;br /&gt;
#How to launch on a Mac a Gaussview installed on a HPC [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/gv_hpc link]&lt;br /&gt;
&lt;br /&gt;
===Old Imperial ===&lt;br /&gt;
#Old Imperial HPC information [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc link]&lt;br /&gt;
#Old Imperial use gaussview directly on the HPC [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/gview link]&lt;br /&gt;
#Old Imperial How to connect to HPC directory on desktop for file transfers [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/hpc_Directory_on_desktop link]&lt;br /&gt;
#Old Imperial How to run jobs interactively  [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/run_interactive link]&lt;br /&gt;
#Old Imperial Computing resources available in the chemistry department [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/computing_resources link]&lt;br /&gt;
#Old Imperial New gf script (more convenient job submitting) [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/new_gf_script link]&lt;br /&gt;
#Old Imperial How to make qsub more comfortable (gfunc) [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pimpQSUB link]&lt;br /&gt;
#Old Imperial How to use a slimmed down terminal on your IPhone [https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/termius link]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25061</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25061"/>
		<updated>2025-10-23T00:24:35Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* scan a coordinate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''water.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the water.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py water &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Volumes/Tricia_Home/work/jobs/musa&lt;br /&gt;
input file is water.inp&lt;br /&gt;
symbolic z-matrix output file is water_osymb.com&lt;br /&gt;
xyz coord output file is water_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
atoms in the xy-plane 3&lt;br /&gt;
rotation of a-b around xy-pane (z-axis) by 10.0&lt;br /&gt;
centered&lt;br /&gt;
x-axis aligned&lt;br /&gt;
atoms aligned in xy plane&lt;br /&gt;
a-b vector rotated&lt;br /&gt;
write .xyz file&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''water_new.xyz''' and '''water_osymb.xyz'''&lt;br /&gt;
:water_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:water_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=3&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_osymb.chk&lt;br /&gt;
#b3lyp/3-21G int=ultrafine scf=conver=10&lt;br /&gt;
 opt=(maxcyc=50)  nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  0  x2    y2     z2&lt;br /&gt;
H  0  x3    y3     z3&lt;br /&gt;
Xx  0  x4    y4     z4&lt;br /&gt;
Xy  0  x5    y5     z5&lt;br /&gt;
Xz  0  x6    y6     z6&lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x2  = 0.933714&lt;br /&gt;
  y2  = 0.164639&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-0.240373&lt;br /&gt;
  y3  = 0.917142&lt;br /&gt;
  z3  =-0.000000&lt;br /&gt;
  x4  = 4.000000&lt;br /&gt;
  y4  = 0.000000&lt;br /&gt;
  z4  = 0.000000&lt;br /&gt;
  x5  = 0.000000&lt;br /&gt;
  y5  = 4.000000&lt;br /&gt;
  z5  = 0.000000&lt;br /&gt;
  x6  = 0.000000&lt;br /&gt;
  y6  = 0.000000&lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 10 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== scan a coordinate ==&lt;br /&gt;
*you need to build a z-matrix file that includes symbolic coordinates and internal coordinates together&lt;br /&gt;
*for z-matrix the first set of parameters are optimised and the second set are frozen&lt;br /&gt;
*shown by the example for water below&lt;br /&gt;
:atom1 is fixed in place with symbolic coords (note the 0 after the O label)&lt;br /&gt;
:O-H distance is allowed to vary (r1)&lt;br /&gt;
:the angle H-O-H is opened from 100º in 5 steps by 15º each time&lt;br /&gt;
:the scanned coordinate is &amp;quot;frozen&amp;quot; on each step so goes into the block of frozen variables&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=5&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_scan_osymb.chk&lt;br /&gt;
#b3lyp/3-21G nosymm field=x+50&lt;br /&gt;
 opt=(z-matrix,maxcyc=5)&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  1  r1&lt;br /&gt;
H  1  r1  2 a1&lt;br /&gt;
&lt;br /&gt;
  r1  1.0&lt;br /&gt;
  &lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  a1  100.0 S 2 15.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*a torsion angle rotation is more difficult&lt;br /&gt;
*unfortunately you cannot read the z-matrix from a checkpoint file so you need to start from a pre-optimised geometry and then set up the z-matrix rotation&lt;br /&gt;
*here is a demo job for alkyl rotation of emim&lt;br /&gt;
:the C2 is set at the origin (0,0,0) and the coords are frozen to keep the coordinate center fixed&lt;br /&gt;
:the ring atoms are also all frozen in cartesian coords&lt;br /&gt;
:then we need to define all the &amp;quot;moving&amp;quot; atoms with internal coordinates&lt;br /&gt;
:lastly I have the dummy atoms which are showing were the axes are&lt;br /&gt;
:notice the separation of active and frozen variables&lt;br /&gt;
:the scan coordinate is given LAST we are rotating 18 steps of 10 degrees&lt;br /&gt;
*obviously for your application you will want to improve the method/basis-set and maxcycles!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=5&lt;br /&gt;
%mem=5GB&lt;br /&gt;
%chk=emim_outplane_scan2_osymb.chk&lt;br /&gt;
#b3lyp/3-21G nosymm field=x+50&lt;br /&gt;
 opt=(z-matrix,maxcycles=25)&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
1 1&lt;br /&gt;
6  0  x1    y1     z1&lt;br /&gt;
1  0  x2    y2     z2&lt;br /&gt;
6  0  x3    y3     z3&lt;br /&gt;
1  0  x4    y4     z4&lt;br /&gt;
6  0  x5    y5     z5&lt;br /&gt;
1  0  x6    y6     z6&lt;br /&gt;
7  0  x7    y7     z7&lt;br /&gt;
6  0  x8    y8     z8&lt;br /&gt;
1  0  x9    y9     z9&lt;br /&gt;
1  0  x10   y10    z10&lt;br /&gt;
1  0  x11   y11    z11&lt;br /&gt;
7  0  x12   y12    z12&lt;br /&gt;
6  12 rnc   5   acnc   3  dcncc&lt;br /&gt;
1  13 rch1  12  ahcn1  1  dhcn1&lt;br /&gt;
1  13 rch2  12  ahcn2  1  dhcn2&lt;br /&gt;
6  13 rcc   12  accn   1  dccnc&lt;br /&gt;
1  16 rch3  13  ahcc1  12 dhccn1&lt;br /&gt;
1  16 rch4  13  ahcc2  12 dhccn2&lt;br /&gt;
1  16 rch5  13  ahcc3  12 dhccn3&lt;br /&gt;
Xx  0  x20   y20    z20&lt;br /&gt;
Xy  0  x21   y21    z21&lt;br /&gt;
Xz  0  x22   y22    z22&lt;br /&gt;
&lt;br /&gt;
  rnc    1.481&lt;br /&gt;
  acnc   126.0&lt;br /&gt;
  dcncc  180.0&lt;br /&gt;
  rch1   1.09&lt;br /&gt;
  rch2   1.09&lt;br /&gt;
  ahcn1  107.0&lt;br /&gt;
  ahcn2  107.0&lt;br /&gt;
  dhcn1  -135.0&lt;br /&gt;
  dhcn2  -20.0&lt;br /&gt;
  rcc    1.524&lt;br /&gt;
  accn   112.0&lt;br /&gt;
  rch3   1.09&lt;br /&gt;
  rch4   1.09&lt;br /&gt;
  rch5   1.09&lt;br /&gt;
  ahcc1 112.0&lt;br /&gt;
  ahcc2 112.0&lt;br /&gt;
  ahcc3 112.0&lt;br /&gt;
  dhccn1 -60.0&lt;br /&gt;
  dhccn2 180.0&lt;br /&gt;
  dhccn3 60.0&lt;br /&gt;
&lt;br /&gt;
  x2  = 1.076881&lt;br /&gt;
  y2  = 0.000000&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-2.100705&lt;br /&gt;
  y3  = 0.680775&lt;br /&gt;
  z3  = 0.000000&lt;br /&gt;
  x4  =-2.914688&lt;br /&gt;
  y4  = 1.384929&lt;br /&gt;
  z4  =-0.004197&lt;br /&gt;
  x5  =-2.099251&lt;br /&gt;
  y5  =-0.680237&lt;br /&gt;
  z5  =-0.004583&lt;br /&gt;
  x6  =-2.913526&lt;br /&gt;
  y6  =-1.383789&lt;br /&gt;
  z6  =-0.010663&lt;br /&gt;
  x7  =-0.779163&lt;br /&gt;
  y7  = 1.086932&lt;br /&gt;
  z7  = 0.003562&lt;br /&gt;
  x8  =-0.313764&lt;br /&gt;
  y8  = 2.480517&lt;br /&gt;
  z8  =-0.001050&lt;br /&gt;
  x9  = 0.773736&lt;br /&gt;
  y9  = 2.489310&lt;br /&gt;
  z9  = 0.017415&lt;br /&gt;
  x10 =-0.666276&lt;br /&gt;
  y10 = 2.977026&lt;br /&gt;
  z10 =-0.904172&lt;br /&gt;
  x11 =-0.696108&lt;br /&gt;
  y11 = 2.991482&lt;br /&gt;
  z11 = 0.881532&lt;br /&gt;
  x12 =-0.778234&lt;br /&gt;
  y12 =-1.085961&lt;br /&gt;
  z12 =-0.008125&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x20 = 4.000000&lt;br /&gt;
  y20 = 0.000000&lt;br /&gt;
  z20 = 0.000000&lt;br /&gt;
  x21 = 0.000000&lt;br /&gt;
  y21 = 4.000000&lt;br /&gt;
  z21 = 0.000000&lt;br /&gt;
  x22 = 0.000000&lt;br /&gt;
  y22 = 0.000000&lt;br /&gt;
  z22 = 4.000000&lt;br /&gt;
  dccnc 100.0 S 18 10.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25060</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25060"/>
		<updated>2025-10-23T00:19:42Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* scan a coordinate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''water.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the water.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py water &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Volumes/Tricia_Home/work/jobs/musa&lt;br /&gt;
input file is water.inp&lt;br /&gt;
symbolic z-matrix output file is water_osymb.com&lt;br /&gt;
xyz coord output file is water_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
atoms in the xy-plane 3&lt;br /&gt;
rotation of a-b around xy-pane (z-axis) by 10.0&lt;br /&gt;
centered&lt;br /&gt;
x-axis aligned&lt;br /&gt;
atoms aligned in xy plane&lt;br /&gt;
a-b vector rotated&lt;br /&gt;
write .xyz file&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''water_new.xyz''' and '''water_osymb.xyz'''&lt;br /&gt;
:water_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:water_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=3&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_osymb.chk&lt;br /&gt;
#b3lyp/3-21G int=ultrafine scf=conver=10&lt;br /&gt;
 opt=(maxcyc=50)  nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  0  x2    y2     z2&lt;br /&gt;
H  0  x3    y3     z3&lt;br /&gt;
Xx  0  x4    y4     z4&lt;br /&gt;
Xy  0  x5    y5     z5&lt;br /&gt;
Xz  0  x6    y6     z6&lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x2  = 0.933714&lt;br /&gt;
  y2  = 0.164639&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-0.240373&lt;br /&gt;
  y3  = 0.917142&lt;br /&gt;
  z3  =-0.000000&lt;br /&gt;
  x4  = 4.000000&lt;br /&gt;
  y4  = 0.000000&lt;br /&gt;
  z4  = 0.000000&lt;br /&gt;
  x5  = 0.000000&lt;br /&gt;
  y5  = 4.000000&lt;br /&gt;
  z5  = 0.000000&lt;br /&gt;
  x6  = 0.000000&lt;br /&gt;
  y6  = 0.000000&lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 10 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== scan a coordinate ==&lt;br /&gt;
*you need to build a z-matrix file that includes symbolic coordinates and internal coordinates together&lt;br /&gt;
*shown by the example for water below&lt;br /&gt;
:atom1 is fixed in place with symbolic coords (note the 0 after the O label)&lt;br /&gt;
:O-H distance is allowed to vary (r1)&lt;br /&gt;
:the angle H-O-H is openened from 100º in 5 steps by 15º each time&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=5&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_scan_osymb.chk&lt;br /&gt;
#b3lyp/3-21G nosymm field=x+50&lt;br /&gt;
 opt=(z-matrix,maxcyc=5)&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  1  r1&lt;br /&gt;
H  1  r1  2 a1&lt;br /&gt;
&lt;br /&gt;
  r1  1.0&lt;br /&gt;
  &lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  a1  100.0 S 2 15.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*a torsion angle rotation is more difficult&lt;br /&gt;
*unfortunately you cannot read the z-matrix from a checkpoint file so you need to start from a pre-optimised geometry and then set up the rotation&lt;br /&gt;
*here is a demo job for alkyl rotation of emim&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=5&lt;br /&gt;
%mem=5GB&lt;br /&gt;
%chk=emim_outplane_scan2_osymb.chk&lt;br /&gt;
#b3lyp/3-21G nosymm field=x+50&lt;br /&gt;
 opt=(z-matrix,maxcycles=25)&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
1 1&lt;br /&gt;
6  0  x1    y1     z1&lt;br /&gt;
1  0  x2    y2     z2&lt;br /&gt;
6  0  x3    y3     z3&lt;br /&gt;
1  0  x4    y4     z4&lt;br /&gt;
6  0  x5    y5     z5&lt;br /&gt;
1  0  x6    y6     z6&lt;br /&gt;
7  0  x7    y7     z7&lt;br /&gt;
6  0  x8    y8     z8&lt;br /&gt;
1  0  x9    y9     z9&lt;br /&gt;
1  0  x10   y10    z10&lt;br /&gt;
1  0  x11   y11    z11&lt;br /&gt;
7  0  x12   y12    z12&lt;br /&gt;
6  12 rnc   5   acnc   3  dcncc&lt;br /&gt;
1  13 rch1  12  ahcn1  1  dhcn1&lt;br /&gt;
1  13 rch2  12  ahcn2  1  dhcn2&lt;br /&gt;
6  13 rcc   12  accn   1  dccnc&lt;br /&gt;
1  16 rch3  13  ahcc1  12 dhccn1&lt;br /&gt;
1  16 rch4  13  ahcc2  12 dhccn2&lt;br /&gt;
1  16 rch5  13  ahcc3  12 dhccn3&lt;br /&gt;
Xx  0  x20   y20    z20&lt;br /&gt;
Xy  0  x21   y21    z21&lt;br /&gt;
Xz  0  x22   y22    z22&lt;br /&gt;
&lt;br /&gt;
  rnc    1.481&lt;br /&gt;
  acnc   126.0&lt;br /&gt;
  dcncc  180.0&lt;br /&gt;
  rch1   1.09&lt;br /&gt;
  rch2   1.09&lt;br /&gt;
  ahcn1  107.0&lt;br /&gt;
  ahcn2  107.0&lt;br /&gt;
  dhcn1  -135.0&lt;br /&gt;
  dhcn2  -20.0&lt;br /&gt;
  rcc    1.524&lt;br /&gt;
  accn   112.0&lt;br /&gt;
  rch3   1.09&lt;br /&gt;
  rch4   1.09&lt;br /&gt;
  rch5   1.09&lt;br /&gt;
  ahcc1 112.0&lt;br /&gt;
  ahcc2 112.0&lt;br /&gt;
  ahcc3 112.0&lt;br /&gt;
  dhccn1 -60.0&lt;br /&gt;
  dhccn2 180.0&lt;br /&gt;
  dhccn3 60.0&lt;br /&gt;
&lt;br /&gt;
  x2  = 1.076881&lt;br /&gt;
  y2  = 0.000000&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-2.100705&lt;br /&gt;
  y3  = 0.680775&lt;br /&gt;
  z3  = 0.000000&lt;br /&gt;
  x4  =-2.914688&lt;br /&gt;
  y4  = 1.384929&lt;br /&gt;
  z4  =-0.004197&lt;br /&gt;
  x5  =-2.099251&lt;br /&gt;
  y5  =-0.680237&lt;br /&gt;
  z5  =-0.004583&lt;br /&gt;
  x6  =-2.913526&lt;br /&gt;
  y6  =-1.383789&lt;br /&gt;
  z6  =-0.010663&lt;br /&gt;
  x7  =-0.779163&lt;br /&gt;
  y7  = 1.086932&lt;br /&gt;
  z7  = 0.003562&lt;br /&gt;
  x8  =-0.313764&lt;br /&gt;
  y8  = 2.480517&lt;br /&gt;
  z8  =-0.001050&lt;br /&gt;
  x9  = 0.773736&lt;br /&gt;
  y9  = 2.489310&lt;br /&gt;
  z9  = 0.017415&lt;br /&gt;
  x10 =-0.666276&lt;br /&gt;
  y10 = 2.977026&lt;br /&gt;
  z10 =-0.904172&lt;br /&gt;
  x11 =-0.696108&lt;br /&gt;
  y11 = 2.991482&lt;br /&gt;
  z11 = 0.881532&lt;br /&gt;
  x12 =-0.778234&lt;br /&gt;
  y12 =-1.085961&lt;br /&gt;
  z12 =-0.008125&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x20 = 4.000000&lt;br /&gt;
  y20 = 0.000000&lt;br /&gt;
  z20 = 0.000000&lt;br /&gt;
  x21 = 0.000000&lt;br /&gt;
  y21 = 4.000000&lt;br /&gt;
  z21 = 0.000000&lt;br /&gt;
  x22 = 0.000000&lt;br /&gt;
  y22 = 0.000000&lt;br /&gt;
  z22 = 4.000000&lt;br /&gt;
  dccnc 100.0 S 18 10.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25059</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25059"/>
		<updated>2025-10-22T22:11:51Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* orientate to the dipole */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''water.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the water.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py water &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Volumes/Tricia_Home/work/jobs/musa&lt;br /&gt;
input file is water.inp&lt;br /&gt;
symbolic z-matrix output file is water_osymb.com&lt;br /&gt;
xyz coord output file is water_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
atoms in the xy-plane 3&lt;br /&gt;
rotation of a-b around xy-pane (z-axis) by 10.0&lt;br /&gt;
centered&lt;br /&gt;
x-axis aligned&lt;br /&gt;
atoms aligned in xy plane&lt;br /&gt;
a-b vector rotated&lt;br /&gt;
write .xyz file&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''water_new.xyz''' and '''water_osymb.xyz'''&lt;br /&gt;
:water_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:water_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=3&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_osymb.chk&lt;br /&gt;
#b3lyp/3-21G int=ultrafine scf=conver=10&lt;br /&gt;
 opt=(maxcyc=50)  nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  0  x2    y2     z2&lt;br /&gt;
H  0  x3    y3     z3&lt;br /&gt;
Xx  0  x4    y4     z4&lt;br /&gt;
Xy  0  x5    y5     z5&lt;br /&gt;
Xz  0  x6    y6     z6&lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x2  = 0.933714&lt;br /&gt;
  y2  = 0.164639&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-0.240373&lt;br /&gt;
  y3  = 0.917142&lt;br /&gt;
  z3  =-0.000000&lt;br /&gt;
  x4  = 4.000000&lt;br /&gt;
  y4  = 0.000000&lt;br /&gt;
  z4  = 0.000000&lt;br /&gt;
  x5  = 0.000000&lt;br /&gt;
  y5  = 4.000000&lt;br /&gt;
  z5  = 0.000000&lt;br /&gt;
  x6  = 0.000000&lt;br /&gt;
  y6  = 0.000000&lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 10 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== scan a coordinate ==&lt;br /&gt;
*you need to build a z-matrix file that includes symbolic coordinates and internal coordinates together&lt;br /&gt;
*shown by the example for water below&lt;br /&gt;
:atom1 is fixed in place with symbolic coords (note the 0 after the O label)&lt;br /&gt;
:O-H distance is allowed to vary (r1)&lt;br /&gt;
:the angle H-O-H is openened from 100º in 5 steps by 15º each time&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=5&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_scan_osymb.chk&lt;br /&gt;
#b3lyp/3-21G nosymm field=x+50&lt;br /&gt;
 opt=(z-matrix,maxcyc=5)&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  1  r1&lt;br /&gt;
H  1  r1  2 a1&lt;br /&gt;
&lt;br /&gt;
  r1  1.0&lt;br /&gt;
  &lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  a1  100.0 S 2 15.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25058</id>
		<title>Mod:Hunt Research Group/z-matrix</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25058"/>
		<updated>2025-10-22T19:11:35Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Links to G16 manual pages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Partial optimisations, scans and the z-matrix=&lt;br /&gt;
==Links to G16 manual pages==&lt;br /&gt;
*geom [link:https://gaussian.com/geom/]&lt;br /&gt;
*molecule specification [link:https://gaussian.com/molspec/]&lt;br /&gt;
*constructing z-matricies [link:https://gaussian.com/zmat/]&lt;br /&gt;
:look here for dummy atom description too&lt;br /&gt;
:cartesian coords are considered a special type of z-matrix&lt;br /&gt;
:symbolic cartesian coords have an extra &amp;quot;0&amp;quot; eg&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6 0  x1    y1     z1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then define in the variables section&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  x1  =0.000000&lt;br /&gt;
  y1  =0.000000&lt;br /&gt;
  z1  =0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==partial optimisations==&lt;br /&gt;
*involve freezing one coordinate while allowing all others to optimise&lt;br /&gt;
*very occasionally you freeze more than one coordinate, but the errors introduced become larger the more coordinates you freeze&lt;br /&gt;
* use &amp;lt;b&amp;gt;OPT=(modredundant)&amp;lt;/b&amp;gt;&lt;br /&gt;
*in addition you add a section after the coordinates and connectivity&lt;br /&gt;
** identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**give the atoms defining the coordinate and F to freeze the value&lt;br /&gt;
**if you want to activate the coordinate later change the F to A (activate)&lt;br /&gt;
*the following example is for two water molecules&lt;br /&gt;
**we define a bond between atoms 1 and 3 (O and H) to be 1 angsrom&lt;br /&gt;
**then we ask for this bond to be frozen&lt;br /&gt;
*in most cases there is a single important coordinate, but you can add more coordinates after the one given&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=2water.chk&lt;br /&gt;
# opt=(modredundant,maxcycles=12) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Two water molecules&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O                 -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O                 -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==relaxed scan==&lt;br /&gt;
*involve specifying the value of one key coordinate and optimising all others&lt;br /&gt;
*the key coordinate is then varied in a systematic way&lt;br /&gt;
*use the OPT=(modredundant) keyword&lt;br /&gt;
*then in the section after the coordinates and connectivity add&lt;br /&gt;
**identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**specify you want a scan with S and then the number of steps and the change in the variable on each step&lt;br /&gt;
*the following shows how you change the modredundant part of the input file&lt;br /&gt;
**here the O-H bond is specified and set to 1 angstrom&lt;br /&gt;
**then identify the coordinate and specify a scan (S) this time we will take 5 steps of 0.15&lt;br /&gt;
**this will carry out a partial optimisation for the r(O-H) coordinate set to the values =1.0,1.15,1.30,1.45 and 1.60&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==simple scan==&lt;br /&gt;
*involve specifying the value of one key coordinate to alter on each step, all other coordinates are frozen&lt;br /&gt;
*this can be used to get a rough idea, it is not advisable to use this option&lt;br /&gt;
*use the &amp;lt;b&amp;gt;SCAN&amp;lt;/b&amp;gt; keyword&lt;br /&gt;
*the molecular structure must be entered as a Z-matrix, more on the Z-matrix below&lt;br /&gt;
&lt;br /&gt;
==complex partial optimisations==&lt;br /&gt;
*there are times when you want to freeze one coordinate and then scan another&lt;br /&gt;
*for example in H-bonds X---H---Y, you want to freeze the &amp;quot;bond&amp;quot; or distance between X and Y and then scan the H moving between them&lt;br /&gt;
*some of the options identified in the manual DO NOT WORK&lt;br /&gt;
*to freeze two atoms, use -1 in the cartesian coordinates (those not specified default to optimisation)&lt;br /&gt;
*add the redundant coordinate as usual&lt;br /&gt;
*the following freezes the oxygen atoms in place and then scans the O-H distance&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=test.chk&lt;br /&gt;
# opt=(modredundant) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O  -1             -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O  -1             -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*the output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialization pass.&lt;br /&gt;
                           ----------------------------&lt;br /&gt;
                           !    Initial Parameters    !&lt;br /&gt;
                           ! (Angstroms and Degrees)  !&lt;br /&gt;
 --------------------------                            --------------------------&lt;br /&gt;
 ! Name  Definition              Value          Derivative Info.                !&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 ! X1    R(1,-1)                -1.266          Frozen                          !&lt;br /&gt;
 ! Y1    R(1,-2)                -0.3606         Frozen                          !&lt;br /&gt;
 ! Z1    R(1,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! X4    R(4,-1)                -1.9712         Frozen                          !&lt;br /&gt;
 ! Y4    R(4,-2)                 2.4439         Frozen                          !&lt;br /&gt;
 ! Z4    R(4,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! R1    R(1,2)                  0.9653         estimate D2E/DX2                !&lt;br /&gt;
 ! R2    R(1,3)                  1.0            Scan                            !&lt;br /&gt;
 ! R3    R(3,4)                  1.8987         estimate D2E/DX2                !&lt;br /&gt;
 ! R4    R(3,5)                  1.9826         estimate D2E/DX2                !&lt;br /&gt;
 ! R5    R(4,5)                  0.9554         estimate D2E/DX2                !&lt;br /&gt;
 ! R6    R(4,6)                  0.9807         estimate D2E/DX2   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The Z-Matrix and optimising linear bonds==&lt;br /&gt;
&lt;br /&gt;
The z-matrix is an additional method of describing atomic positions. This is very well described on the Gaussian webpage. [http://www.gaussian.com/g_tech/g_ur/c_zmat.htm | Gaussian Z-matricies]&lt;br /&gt;
&lt;br /&gt;
Using Gaussview to build a z-matrix is generally a bad idea. While I was working with simple molecules it completely failed to build a z-matrix, instead building some weird cross over between cartesian coordinated and z-matricies that didn't make any sense. It is best to construct the z-matricies manually (if dealing with small molecules) using Gaussview to give bond lengths and angles. &lt;br /&gt;
&lt;br /&gt;
Using a Z-Matrix to build a pentagon&lt;br /&gt;
&lt;br /&gt;
[[File:Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A &lt;br /&gt;
B  1  1.5&lt;br /&gt;
C  2  1.5    1  108&lt;br /&gt;
D  3  1.5    2  108    1  0.0    0&lt;br /&gt;
E  4  1.5    3  108    2  0.0    0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 0 at the end of lines 4&amp;amp;5 in the Z-matrix indicate that the final value is a dihedral angle. If this was to be a 1, the final value would be a second angle.&lt;br /&gt;
&lt;br /&gt;
It doesn't matter where atom A is, as it is being used a reference point.&lt;br /&gt;
Atom B is connected to atom A (indicated by the 1) at a distance of 1.5.&lt;br /&gt;
Atom C is connected to atom B (indicated by the 2) at a distance of 1.5, with an A-B-C angle of 108.&lt;br /&gt;
Atom D is connected to atom C at a distance of 1.5, with a B-C-D angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
Atom E is connected to atom D at a distance of 1.5, with a C-D-E angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
&lt;br /&gt;
The building of a pentagon is shown below.&lt;br /&gt;
&lt;br /&gt;
[[File:Building-Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
It is possible to include variables that occur throughout a molecule, for example the C-H bond lengths in a long alkyl chain. This is done by using a term within the main body of the input, and the second line beneath the z-matrix putting the term and the value for the bond length/angle. As the N-H bonds lengths and angles will all be the same in the input structure the z-matrix has become.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The term B1 refers to the N-H bond distance, the A1 term refers to the H-N-H bond angle&lt;br /&gt;
&lt;br /&gt;
It is also possible to include values which you wish to keep constant. This is done in a similar way to including variables. To include constants a empty line should be left after the variables, and then the constants are written, again using a term found in the z-matrix. To fix the bond length, the next z-matrix is needed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If working with a larger molecule it is worth looking into combining z-matricies with cartesian coordinates, again this is explained well on the Gaussian webpage. Each atom can be described using either cartesian coordinates or z-matrix. If a atom is being described using a z-matrix the atoms used to define its position need to be included above the z-matrix line, using either a z-matirx or a cartesian coordinate system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Y  0       -0.10608500   -0.05799800    0.01993400&lt;br /&gt;
Cl 0       -1.25351400   -1.98304000    1.34042900&lt;br /&gt;
Cl 0        1.62975500    1.12134800    1.60905800&lt;br /&gt;
Cl 0        1.11223600   -1.09533800   -1.98836000&lt;br /&gt;
Cl 0       -1.76438600    1.62418700   -0.79499400&lt;br /&gt;
Na        4 2.556   1 71.370  5 -1.410 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example showing how an atom which is not bonded to the complex can be represented via a different method for describing atomic positions. &lt;br /&gt;
&lt;br /&gt;
[[File:YCl4-Na2 opt com.jpg]]&lt;br /&gt;
&lt;br /&gt;
'''Optimising Linear bond'''&lt;br /&gt;
&lt;br /&gt;
To optimise linear bonds a dummy atom needs to be introduced. On the gaussian webpage linked earlier there is a section on how to introduce dummy atoms into calculations.&lt;br /&gt;
&lt;br /&gt;
Dummy Atoms&lt;br /&gt;
&lt;br /&gt;
Although being used here to help optimise linear bonds, the dummy atom is useful for other tasks, such as the optimisation of the NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule. Using a dummy atom allows for the angle between the lone pair and the H atoms to be more effectively described and retain the C&amp;lt;sub&amp;gt;3V&amp;lt;/sub&amp;gt; structure. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;N&lt;br /&gt;
X 1 1.&lt;br /&gt;
H 1 nh 2 hnx&lt;br /&gt;
H 1 nh 2 hnx 3  120.0&lt;br /&gt;
H 1 nh 2 hnx 3 -120.0&lt;br /&gt;
&lt;br /&gt;
nh 1.0&lt;br /&gt;
hnx 70.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So here the nh bond length is set to 1.0 and the hnx bond angle is set to 70.&lt;br /&gt;
&lt;br /&gt;
When introducing dummy atoms to linear bonds it is essential that the dummy atom is 'bonded' to the central atom, allowing the atoms either side to be set from the dummy atom. 'Bonded' is in quotes as the dummy atom should never have a formal bond attaching it to anything, think of it more as a point in space relative to the central atom of the linear bond.&lt;br /&gt;
&lt;br /&gt;
Although optimising the CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule doesn't appear to need a dummy atom to be optimised, it has been included here to show one way of introducing it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;C&lt;br /&gt;
O   1  1.2&lt;br /&gt;
O   1  1.2   2 180.0&lt;br /&gt;
X   1  1.0   2 90.0   3 90.0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 1 at the end of the X input line represents a second angle needed for defining the linear angle. A dihedral can be used but its slightly more complex.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25057</id>
		<title>Mod:Hunt Research Group/z-matrix</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25057"/>
		<updated>2025-10-22T19:10:22Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Links to G16 manual pages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Partial optimisations, scans and the z-matrix=&lt;br /&gt;
==Links to G16 manual pages==&lt;br /&gt;
geom [link:https://gaussian.com/geom/]&lt;br /&gt;
molecule specification [link:https://gaussian.com/molspec/]&lt;br /&gt;
constructing z-matricies [link:https://gaussian.com/zmat/]&lt;br /&gt;
:cartesian coords are considered a special type of z-matrix&lt;br /&gt;
:symbolic cartesian coords have an extra &amp;quot;0&amp;quot; eg&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6 0  x1    y1     z1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then define in the variables section&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  x1  =0.000000&lt;br /&gt;
  y1  =0.000000&lt;br /&gt;
  z1  =0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==partial optimisations==&lt;br /&gt;
*involve freezing one coordinate while allowing all others to optimise&lt;br /&gt;
*very occasionally you freeze more than one coordinate, but the errors introduced become larger the more coordinates you freeze&lt;br /&gt;
* use &amp;lt;b&amp;gt;OPT=(modredundant)&amp;lt;/b&amp;gt;&lt;br /&gt;
*in addition you add a section after the coordinates and connectivity&lt;br /&gt;
** identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**give the atoms defining the coordinate and F to freeze the value&lt;br /&gt;
**if you want to activate the coordinate later change the F to A (activate)&lt;br /&gt;
*the following example is for two water molecules&lt;br /&gt;
**we define a bond between atoms 1 and 3 (O and H) to be 1 angsrom&lt;br /&gt;
**then we ask for this bond to be frozen&lt;br /&gt;
*in most cases there is a single important coordinate, but you can add more coordinates after the one given&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=2water.chk&lt;br /&gt;
# opt=(modredundant,maxcycles=12) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Two water molecules&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O                 -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O                 -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==relaxed scan==&lt;br /&gt;
*involve specifying the value of one key coordinate and optimising all others&lt;br /&gt;
*the key coordinate is then varied in a systematic way&lt;br /&gt;
*use the OPT=(modredundant) keyword&lt;br /&gt;
*then in the section after the coordinates and connectivity add&lt;br /&gt;
**identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**specify you want a scan with S and then the number of steps and the change in the variable on each step&lt;br /&gt;
*the following shows how you change the modredundant part of the input file&lt;br /&gt;
**here the O-H bond is specified and set to 1 angstrom&lt;br /&gt;
**then identify the coordinate and specify a scan (S) this time we will take 5 steps of 0.15&lt;br /&gt;
**this will carry out a partial optimisation for the r(O-H) coordinate set to the values =1.0,1.15,1.30,1.45 and 1.60&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==simple scan==&lt;br /&gt;
*involve specifying the value of one key coordinate to alter on each step, all other coordinates are frozen&lt;br /&gt;
*this can be used to get a rough idea, it is not advisable to use this option&lt;br /&gt;
*use the &amp;lt;b&amp;gt;SCAN&amp;lt;/b&amp;gt; keyword&lt;br /&gt;
*the molecular structure must be entered as a Z-matrix, more on the Z-matrix below&lt;br /&gt;
&lt;br /&gt;
==complex partial optimisations==&lt;br /&gt;
*there are times when you want to freeze one coordinate and then scan another&lt;br /&gt;
*for example in H-bonds X---H---Y, you want to freeze the &amp;quot;bond&amp;quot; or distance between X and Y and then scan the H moving between them&lt;br /&gt;
*some of the options identified in the manual DO NOT WORK&lt;br /&gt;
*to freeze two atoms, use -1 in the cartesian coordinates (those not specified default to optimisation)&lt;br /&gt;
*add the redundant coordinate as usual&lt;br /&gt;
*the following freezes the oxygen atoms in place and then scans the O-H distance&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=test.chk&lt;br /&gt;
# opt=(modredundant) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O  -1             -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O  -1             -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*the output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialization pass.&lt;br /&gt;
                           ----------------------------&lt;br /&gt;
                           !    Initial Parameters    !&lt;br /&gt;
                           ! (Angstroms and Degrees)  !&lt;br /&gt;
 --------------------------                            --------------------------&lt;br /&gt;
 ! Name  Definition              Value          Derivative Info.                !&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 ! X1    R(1,-1)                -1.266          Frozen                          !&lt;br /&gt;
 ! Y1    R(1,-2)                -0.3606         Frozen                          !&lt;br /&gt;
 ! Z1    R(1,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! X4    R(4,-1)                -1.9712         Frozen                          !&lt;br /&gt;
 ! Y4    R(4,-2)                 2.4439         Frozen                          !&lt;br /&gt;
 ! Z4    R(4,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! R1    R(1,2)                  0.9653         estimate D2E/DX2                !&lt;br /&gt;
 ! R2    R(1,3)                  1.0            Scan                            !&lt;br /&gt;
 ! R3    R(3,4)                  1.8987         estimate D2E/DX2                !&lt;br /&gt;
 ! R4    R(3,5)                  1.9826         estimate D2E/DX2                !&lt;br /&gt;
 ! R5    R(4,5)                  0.9554         estimate D2E/DX2                !&lt;br /&gt;
 ! R6    R(4,6)                  0.9807         estimate D2E/DX2   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The Z-Matrix and optimising linear bonds==&lt;br /&gt;
&lt;br /&gt;
The z-matrix is an additional method of describing atomic positions. This is very well described on the Gaussian webpage. [http://www.gaussian.com/g_tech/g_ur/c_zmat.htm | Gaussian Z-matricies]&lt;br /&gt;
&lt;br /&gt;
Using Gaussview to build a z-matrix is generally a bad idea. While I was working with simple molecules it completely failed to build a z-matrix, instead building some weird cross over between cartesian coordinated and z-matricies that didn't make any sense. It is best to construct the z-matricies manually (if dealing with small molecules) using Gaussview to give bond lengths and angles. &lt;br /&gt;
&lt;br /&gt;
Using a Z-Matrix to build a pentagon&lt;br /&gt;
&lt;br /&gt;
[[File:Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A &lt;br /&gt;
B  1  1.5&lt;br /&gt;
C  2  1.5    1  108&lt;br /&gt;
D  3  1.5    2  108    1  0.0    0&lt;br /&gt;
E  4  1.5    3  108    2  0.0    0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 0 at the end of lines 4&amp;amp;5 in the Z-matrix indicate that the final value is a dihedral angle. If this was to be a 1, the final value would be a second angle.&lt;br /&gt;
&lt;br /&gt;
It doesn't matter where atom A is, as it is being used a reference point.&lt;br /&gt;
Atom B is connected to atom A (indicated by the 1) at a distance of 1.5.&lt;br /&gt;
Atom C is connected to atom B (indicated by the 2) at a distance of 1.5, with an A-B-C angle of 108.&lt;br /&gt;
Atom D is connected to atom C at a distance of 1.5, with a B-C-D angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
Atom E is connected to atom D at a distance of 1.5, with a C-D-E angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
&lt;br /&gt;
The building of a pentagon is shown below.&lt;br /&gt;
&lt;br /&gt;
[[File:Building-Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
It is possible to include variables that occur throughout a molecule, for example the C-H bond lengths in a long alkyl chain. This is done by using a term within the main body of the input, and the second line beneath the z-matrix putting the term and the value for the bond length/angle. As the N-H bonds lengths and angles will all be the same in the input structure the z-matrix has become.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The term B1 refers to the N-H bond distance, the A1 term refers to the H-N-H bond angle&lt;br /&gt;
&lt;br /&gt;
It is also possible to include values which you wish to keep constant. This is done in a similar way to including variables. To include constants a empty line should be left after the variables, and then the constants are written, again using a term found in the z-matrix. To fix the bond length, the next z-matrix is needed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If working with a larger molecule it is worth looking into combining z-matricies with cartesian coordinates, again this is explained well on the Gaussian webpage. Each atom can be described using either cartesian coordinates or z-matrix. If a atom is being described using a z-matrix the atoms used to define its position need to be included above the z-matrix line, using either a z-matirx or a cartesian coordinate system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Y  0       -0.10608500   -0.05799800    0.01993400&lt;br /&gt;
Cl 0       -1.25351400   -1.98304000    1.34042900&lt;br /&gt;
Cl 0        1.62975500    1.12134800    1.60905800&lt;br /&gt;
Cl 0        1.11223600   -1.09533800   -1.98836000&lt;br /&gt;
Cl 0       -1.76438600    1.62418700   -0.79499400&lt;br /&gt;
Na        4 2.556   1 71.370  5 -1.410 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example showing how an atom which is not bonded to the complex can be represented via a different method for describing atomic positions. &lt;br /&gt;
&lt;br /&gt;
[[File:YCl4-Na2 opt com.jpg]]&lt;br /&gt;
&lt;br /&gt;
'''Optimising Linear bond'''&lt;br /&gt;
&lt;br /&gt;
To optimise linear bonds a dummy atom needs to be introduced. On the gaussian webpage linked earlier there is a section on how to introduce dummy atoms into calculations.&lt;br /&gt;
&lt;br /&gt;
Dummy Atoms&lt;br /&gt;
&lt;br /&gt;
Although being used here to help optimise linear bonds, the dummy atom is useful for other tasks, such as the optimisation of the NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule. Using a dummy atom allows for the angle between the lone pair and the H atoms to be more effectively described and retain the C&amp;lt;sub&amp;gt;3V&amp;lt;/sub&amp;gt; structure. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;N&lt;br /&gt;
X 1 1.&lt;br /&gt;
H 1 nh 2 hnx&lt;br /&gt;
H 1 nh 2 hnx 3  120.0&lt;br /&gt;
H 1 nh 2 hnx 3 -120.0&lt;br /&gt;
&lt;br /&gt;
nh 1.0&lt;br /&gt;
hnx 70.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So here the nh bond length is set to 1.0 and the hnx bond angle is set to 70.&lt;br /&gt;
&lt;br /&gt;
When introducing dummy atoms to linear bonds it is essential that the dummy atom is 'bonded' to the central atom, allowing the atoms either side to be set from the dummy atom. 'Bonded' is in quotes as the dummy atom should never have a formal bond attaching it to anything, think of it more as a point in space relative to the central atom of the linear bond.&lt;br /&gt;
&lt;br /&gt;
Although optimising the CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule doesn't appear to need a dummy atom to be optimised, it has been included here to show one way of introducing it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;C&lt;br /&gt;
O   1  1.2&lt;br /&gt;
O   1  1.2   2 180.0&lt;br /&gt;
X   1  1.0   2 90.0   3 90.0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 1 at the end of the X input line represents a second angle needed for defining the linear angle. A dihedral can be used but its slightly more complex.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25056</id>
		<title>Mod:Hunt Research Group/z-matrix</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/z-matrix&amp;diff=25056"/>
		<updated>2025-10-22T19:06:35Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Partial optimisations, scans and the z-matrix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Partial optimisations, scans and the z-matrix=&lt;br /&gt;
==Links to G16 manual pages==&lt;br /&gt;
molecule specification [link:https://gaussian.com/molspec/]&lt;br /&gt;
==partial optimisations==&lt;br /&gt;
*involve freezing one coordinate while allowing all others to optimise&lt;br /&gt;
*very occasionally you freeze more than one coordinate, but the errors introduced become larger the more coordinates you freeze&lt;br /&gt;
* use &amp;lt;b&amp;gt;OPT=(modredundant)&amp;lt;/b&amp;gt;&lt;br /&gt;
*in addition you add a section after the coordinates and connectivity&lt;br /&gt;
** identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**give the atoms defining the coordinate and F to freeze the value&lt;br /&gt;
**if you want to activate the coordinate later change the F to A (activate)&lt;br /&gt;
*the following example is for two water molecules&lt;br /&gt;
**we define a bond between atoms 1 and 3 (O and H) to be 1 angsrom&lt;br /&gt;
**then we ask for this bond to be frozen&lt;br /&gt;
*in most cases there is a single important coordinate, but you can add more coordinates after the one given&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=2water.chk&lt;br /&gt;
# opt=(modredundant,maxcycles=12) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Two water molecules&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O                 -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O                 -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==relaxed scan==&lt;br /&gt;
*involve specifying the value of one key coordinate and optimising all others&lt;br /&gt;
*the key coordinate is then varied in a systematic way&lt;br /&gt;
*use the OPT=(modredundant) keyword&lt;br /&gt;
*then in the section after the coordinates and connectivity add&lt;br /&gt;
**identify the coordinate type B(bond), A(angle),T(torsion)&lt;br /&gt;
**give the atoms defining the coordinate and the value you want them to have&lt;br /&gt;
**specify you want a scan with S and then the number of steps and the change in the variable on each step&lt;br /&gt;
*the following shows how you change the modredundant part of the input file&lt;br /&gt;
**here the O-H bond is specified and set to 1 angstrom&lt;br /&gt;
**then identify the coordinate and specify a scan (S) this time we will take 5 steps of 0.15&lt;br /&gt;
**this will carry out a partial optimisation for the r(O-H) coordinate set to the values =1.0,1.15,1.30,1.45 and 1.60&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==simple scan==&lt;br /&gt;
*involve specifying the value of one key coordinate to alter on each step, all other coordinates are frozen&lt;br /&gt;
*this can be used to get a rough idea, it is not advisable to use this option&lt;br /&gt;
*use the &amp;lt;b&amp;gt;SCAN&amp;lt;/b&amp;gt; keyword&lt;br /&gt;
*the molecular structure must be entered as a Z-matrix, more on the Z-matrix below&lt;br /&gt;
&lt;br /&gt;
==complex partial optimisations==&lt;br /&gt;
*there are times when you want to freeze one coordinate and then scan another&lt;br /&gt;
*for example in H-bonds X---H---Y, you want to freeze the &amp;quot;bond&amp;quot; or distance between X and Y and then scan the H moving between them&lt;br /&gt;
*some of the options identified in the manual DO NOT WORK&lt;br /&gt;
*to freeze two atoms, use -1 in the cartesian coordinates (those not specified default to optimisation)&lt;br /&gt;
*add the redundant coordinate as usual&lt;br /&gt;
*the following freezes the oxygen atoms in place and then scans the O-H distance&lt;br /&gt;
&amp;lt;pre&amp;gt;%mem=1GB&lt;br /&gt;
%chk=test.chk&lt;br /&gt;
# opt=(modredundant) b3lyp/6-31g geom=connectivity&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
 O  -1             -1.26602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -0.30602562   -0.36057693    0.00000000&lt;br /&gt;
 H                 -1.58648021    0.54435890    0.00000000&lt;br /&gt;
 O  -1             -1.97115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -1.01115382    2.44391033    0.00000000&lt;br /&gt;
 H                 -2.29160840    3.34884617    0.00000000&lt;br /&gt;
&lt;br /&gt;
 1 2 1.0 3 1.0&lt;br /&gt;
 2&lt;br /&gt;
 3&lt;br /&gt;
 4 5 1.0 6 1.0&lt;br /&gt;
 5&lt;br /&gt;
 6&lt;br /&gt;
&lt;br /&gt;
B 1 3 1.0&lt;br /&gt;
B 1 3 S 5 0.15&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*the output will look something like this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Initialization pass.&lt;br /&gt;
                           ----------------------------&lt;br /&gt;
                           !    Initial Parameters    !&lt;br /&gt;
                           ! (Angstroms and Degrees)  !&lt;br /&gt;
 --------------------------                            --------------------------&lt;br /&gt;
 ! Name  Definition              Value          Derivative Info.                !&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 ! X1    R(1,-1)                -1.266          Frozen                          !&lt;br /&gt;
 ! Y1    R(1,-2)                -0.3606         Frozen                          !&lt;br /&gt;
 ! Z1    R(1,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! X4    R(4,-1)                -1.9712         Frozen                          !&lt;br /&gt;
 ! Y4    R(4,-2)                 2.4439         Frozen                          !&lt;br /&gt;
 ! Z4    R(4,-3)                 0.0            Frozen                          !&lt;br /&gt;
 ! R1    R(1,2)                  0.9653         estimate D2E/DX2                !&lt;br /&gt;
 ! R2    R(1,3)                  1.0            Scan                            !&lt;br /&gt;
 ! R3    R(3,4)                  1.8987         estimate D2E/DX2                !&lt;br /&gt;
 ! R4    R(3,5)                  1.9826         estimate D2E/DX2                !&lt;br /&gt;
 ! R5    R(4,5)                  0.9554         estimate D2E/DX2                !&lt;br /&gt;
 ! R6    R(4,6)                  0.9807         estimate D2E/DX2   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The Z-Matrix and optimising linear bonds==&lt;br /&gt;
&lt;br /&gt;
The z-matrix is an additional method of describing atomic positions. This is very well described on the Gaussian webpage. [http://www.gaussian.com/g_tech/g_ur/c_zmat.htm | Gaussian Z-matricies]&lt;br /&gt;
&lt;br /&gt;
Using Gaussview to build a z-matrix is generally a bad idea. While I was working with simple molecules it completely failed to build a z-matrix, instead building some weird cross over between cartesian coordinated and z-matricies that didn't make any sense. It is best to construct the z-matricies manually (if dealing with small molecules) using Gaussview to give bond lengths and angles. &lt;br /&gt;
&lt;br /&gt;
Using a Z-Matrix to build a pentagon&lt;br /&gt;
&lt;br /&gt;
[[File:Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A &lt;br /&gt;
B  1  1.5&lt;br /&gt;
C  2  1.5    1  108&lt;br /&gt;
D  3  1.5    2  108    1  0.0    0&lt;br /&gt;
E  4  1.5    3  108    2  0.0    0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 0 at the end of lines 4&amp;amp;5 in the Z-matrix indicate that the final value is a dihedral angle. If this was to be a 1, the final value would be a second angle.&lt;br /&gt;
&lt;br /&gt;
It doesn't matter where atom A is, as it is being used a reference point.&lt;br /&gt;
Atom B is connected to atom A (indicated by the 1) at a distance of 1.5.&lt;br /&gt;
Atom C is connected to atom B (indicated by the 2) at a distance of 1.5, with an A-B-C angle of 108.&lt;br /&gt;
Atom D is connected to atom C at a distance of 1.5, with a B-C-D angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
Atom E is connected to atom D at a distance of 1.5, with a C-D-E angle of 108 and a dihedral angle of 0.0&lt;br /&gt;
&lt;br /&gt;
The building of a pentagon is shown below.&lt;br /&gt;
&lt;br /&gt;
[[File:Building-Pentagon.jpg ]]&lt;br /&gt;
&lt;br /&gt;
It is possible to include variables that occur throughout a molecule, for example the C-H bond lengths in a long alkyl chain. This is done by using a term within the main body of the input, and the second line beneath the z-matrix putting the term and the value for the bond length/angle. As the N-H bonds lengths and angles will all be the same in the input structure the z-matrix has become.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The term B1 refers to the N-H bond distance, the A1 term refers to the H-N-H bond angle&lt;br /&gt;
&lt;br /&gt;
It is also possible to include values which you wish to keep constant. This is done in a similar way to including variables. To include constants a empty line should be left after the variables, and then the constants are written, again using a term found in the z-matrix. To fix the bond length, the next z-matrix is needed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;A&lt;br /&gt;
B  1  B1&lt;br /&gt;
C  2  B1    1  A1&lt;br /&gt;
D  3  B1    2  A1    1  0.0    0&lt;br /&gt;
E  4  B1    3  A1    2  0.0    0&lt;br /&gt;
&lt;br /&gt;
A1  108&lt;br /&gt;
&lt;br /&gt;
B1  1.5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If working with a larger molecule it is worth looking into combining z-matricies with cartesian coordinates, again this is explained well on the Gaussian webpage. Each atom can be described using either cartesian coordinates or z-matrix. If a atom is being described using a z-matrix the atoms used to define its position need to be included above the z-matrix line, using either a z-matirx or a cartesian coordinate system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Y  0       -0.10608500   -0.05799800    0.01993400&lt;br /&gt;
Cl 0       -1.25351400   -1.98304000    1.34042900&lt;br /&gt;
Cl 0        1.62975500    1.12134800    1.60905800&lt;br /&gt;
Cl 0        1.11223600   -1.09533800   -1.98836000&lt;br /&gt;
Cl 0       -1.76438600    1.62418700   -0.79499400&lt;br /&gt;
Na        4 2.556   1 71.370  5 -1.410 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example showing how an atom which is not bonded to the complex can be represented via a different method for describing atomic positions. &lt;br /&gt;
&lt;br /&gt;
[[File:YCl4-Na2 opt com.jpg]]&lt;br /&gt;
&lt;br /&gt;
'''Optimising Linear bond'''&lt;br /&gt;
&lt;br /&gt;
To optimise linear bonds a dummy atom needs to be introduced. On the gaussian webpage linked earlier there is a section on how to introduce dummy atoms into calculations.&lt;br /&gt;
&lt;br /&gt;
Dummy Atoms&lt;br /&gt;
&lt;br /&gt;
Although being used here to help optimise linear bonds, the dummy atom is useful for other tasks, such as the optimisation of the NH&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; molecule. Using a dummy atom allows for the angle between the lone pair and the H atoms to be more effectively described and retain the C&amp;lt;sub&amp;gt;3V&amp;lt;/sub&amp;gt; structure. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;N&lt;br /&gt;
X 1 1.&lt;br /&gt;
H 1 nh 2 hnx&lt;br /&gt;
H 1 nh 2 hnx 3  120.0&lt;br /&gt;
H 1 nh 2 hnx 3 -120.0&lt;br /&gt;
&lt;br /&gt;
nh 1.0&lt;br /&gt;
hnx 70.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So here the nh bond length is set to 1.0 and the hnx bond angle is set to 70.&lt;br /&gt;
&lt;br /&gt;
When introducing dummy atoms to linear bonds it is essential that the dummy atom is 'bonded' to the central atom, allowing the atoms either side to be set from the dummy atom. 'Bonded' is in quotes as the dummy atom should never have a formal bond attaching it to anything, think of it more as a point in space relative to the central atom of the linear bond.&lt;br /&gt;
&lt;br /&gt;
Although optimising the CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; molecule doesn't appear to need a dummy atom to be optimised, it has been included here to show one way of introducing it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;C&lt;br /&gt;
O   1  1.2&lt;br /&gt;
O   1  1.2   2 180.0&lt;br /&gt;
X   1  1.0   2 90.0   3 90.0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 1 at the end of the X input line represents a second angle needed for defining the linear angle. A dihedral can be used but its slightly more complex.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=File:Water_field_file.png&amp;diff=25055</id>
		<title>File:Water field file.png</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=File:Water_field_file.png&amp;diff=25055"/>
		<updated>2025-10-22T18:13:49Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Water field file.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25054</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25054"/>
		<updated>2025-10-22T18:11:05Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* a code to orient the molecule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''water.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the water.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py water &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Volumes/Tricia_Home/work/jobs/musa&lt;br /&gt;
input file is water.inp&lt;br /&gt;
symbolic z-matrix output file is water_osymb.com&lt;br /&gt;
xyz coord output file is water_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
atoms in the xy-plane 3&lt;br /&gt;
rotation of a-b around xy-pane (z-axis) by 10.0&lt;br /&gt;
centered&lt;br /&gt;
x-axis aligned&lt;br /&gt;
atoms aligned in xy plane&lt;br /&gt;
a-b vector rotated&lt;br /&gt;
write .xyz file&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''water_new.xyz''' and '''water_osymb.xyz'''&lt;br /&gt;
:water_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:water_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%nprocshared=3&lt;br /&gt;
%mem=3GB&lt;br /&gt;
%chk=water_osymb.chk&lt;br /&gt;
#b3lyp/3-21G int=ultrafine scf=conver=10&lt;br /&gt;
 opt=(maxcyc=50)  nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
 Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1&lt;br /&gt;
H  0  x2    y2     z2&lt;br /&gt;
H  0  x3    y3     z3&lt;br /&gt;
Xx  0  x4    y4     z4&lt;br /&gt;
Xy  0  x5    y5     z5&lt;br /&gt;
Xz  0  x6    y6     z6&lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000&lt;br /&gt;
  y1  = 0.000000&lt;br /&gt;
  z1  = 0.000000&lt;br /&gt;
  x2  = 0.933714&lt;br /&gt;
  y2  = 0.164639&lt;br /&gt;
  z2  = 0.000000&lt;br /&gt;
  x3  =-0.240373&lt;br /&gt;
  y3  = 0.917142&lt;br /&gt;
  z3  =-0.000000&lt;br /&gt;
  x4  = 4.000000&lt;br /&gt;
  y4  = 0.000000&lt;br /&gt;
  z4  = 0.000000&lt;br /&gt;
  x5  = 0.000000&lt;br /&gt;
  y5  = 4.000000&lt;br /&gt;
  z5  = 0.000000&lt;br /&gt;
  x6  = 0.000000&lt;br /&gt;
  y6  = 0.000000&lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 10 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== orientate to the dipole ==&lt;br /&gt;
*you can orient the molecule so the dipole aligns with the electric field&lt;br /&gt;
:-''python script to be added!''&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25053</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25053"/>
		<updated>2025-10-22T18:05:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* a code to orient the molecule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''water.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the water.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py water &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Volumes/Tricia_Home/work/jobs/musa&lt;br /&gt;
input file is water.inp&lt;br /&gt;
symbolic z-matrix output file is water_osymb.com&lt;br /&gt;
xyz coord output file is water_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
atoms in the xy-plane 3&lt;br /&gt;
rotation of a-b around xy-pane (z-axis) by 10.0&lt;br /&gt;
centered&lt;br /&gt;
x-axis aligned&lt;br /&gt;
atoms aligned in xy plane&lt;br /&gt;
a-b vector rotated&lt;br /&gt;
write .xyz file&lt;br /&gt;
done!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''water_new.xyz''' and '''water_osymb.xyz'''&lt;br /&gt;
:water_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:water_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=water_field.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 15 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== orientate to the dipole ==&lt;br /&gt;
*you can orient the molecule so the dipole aligns with the electric field&lt;br /&gt;
:-''python script to be added!''&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25052</id>
		<title>Mod:Hunt Research Group:molecules in an electric field</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group:molecules_in_an_electric_field&amp;diff=25052"/>
		<updated>2025-10-22T18:03:28Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* a code to orient the molecule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Molecules in an electric field=&lt;br /&gt;
== introduction ==&lt;br /&gt;
getting started with the field keyword&lt;br /&gt;
&lt;br /&gt;
which optimisation to use&lt;br /&gt;
&lt;br /&gt;
accelerating optimisation&lt;br /&gt;
&lt;br /&gt;
== using the field keyword ==&lt;br /&gt;
*we apply a field along an axial direction, x or y or z&lt;br /&gt;
&amp;lt;pre&amp;gt;field=x+250&amp;lt;/pre&amp;gt;&lt;br /&gt;
:-for field=x+10 a field of 0.001au is applied&lt;br /&gt;
:-for more options goto the manual page here [https://gaussian.com/field/ link]&lt;br /&gt;
&lt;br /&gt;
*units&lt;br /&gt;
:-conversion for an electric field: 1 au = 5.14220652 × 10^11 V/m =51.4 V/Å =514 V/nm&lt;br /&gt;
:-so 0.001au = 51.4/1000 V/Å = 0.0514 V/Å or 0.514V/nm&lt;br /&gt;
:-this is equivalent to 0.05V/Å&lt;br /&gt;
:-to apply 1V/nm we need approximately a field=x+20 (2*0.514V/nm=1.028V/nm)&lt;br /&gt;
&lt;br /&gt;
== optimising in a field ==&lt;br /&gt;
*the field is applied along an axis direction&lt;br /&gt;
:-use the show axis option in gaussview to show this direction&lt;br /&gt;
:-by convention electric field arrows point from postive to negative&lt;br /&gt;
:-a positive x-axis field=+250 for example field will repel a negative ion (move it to -x)&lt;br /&gt;
&lt;br /&gt;
*the molecule must not reorient when setting up the job&lt;br /&gt;
:-position the molecule explicitly where you want it within the coordinated system&lt;br /&gt;
:-you MUST use '''nosymm'''&lt;br /&gt;
:-things will go faster if you orient the molecular dipole with the field&lt;br /&gt;
:-in chemistry the dipole points positive to negative (in physics it can be the reverse!)&lt;br /&gt;
:-to get the correct dipole vector you must optimise first under the same conditions as will be applied with the field&lt;br /&gt;
&lt;br /&gt;
*we have to be very careful in which cooridnates we optimise&lt;br /&gt;
:-this is because internal coordinates remove the center of mass motion which is relevant in an electric field&lt;br /&gt;
:-you MUST use '''opt=z-matrix'''&lt;br /&gt;
:-it is better to use '''symbolic cartesian coordinates'''&lt;br /&gt;
:-below is an example for acetate&lt;br /&gt;
:-the first zero tells gaussian that symbolic cartesian coordinates follow&lt;br /&gt;
:-if you run a charged molecule the molecule will move along the electric field&lt;br /&gt;
:-to avoid this '''fix one atom in the molecule''' to the center of the axial system&lt;br /&gt;
:-in the z-matrix format variables (to be optimised) are listed first and fixed constant are listed second&lt;br /&gt;
:-so the coordinates of the last atom below are held constant (at the origin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=ch3co2.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
-1 1&lt;br /&gt;
6   0   x1 y1 z1&lt;br /&gt;
8   0   x2 y2 z2 &lt;br /&gt;
8   0   x3 y3 z3 &lt;br /&gt;
6   0   x4 y4 z4 &lt;br /&gt;
1   0   x5 y5 z5 &lt;br /&gt;
1   0   x6 y6 z6 &lt;br /&gt;
1   0   x7 y7 z7 &lt;br /&gt;
&lt;br /&gt;
x2=-0.544205&lt;br /&gt;
y2=-1.144935&lt;br /&gt;
z2= 0.029999&lt;br /&gt;
x3=-0.568491&lt;br /&gt;
y3= 1.132502 &lt;br /&gt;
z3= 0.024945&lt;br /&gt;
x4= 1.542020&lt;br /&gt;
y4= 0.011495&lt;br /&gt;
z4=-0.117920&lt;br /&gt;
x5= 1.805270&lt;br /&gt;
y5=-0.088033&lt;br /&gt;
z5=-1.168772&lt;br /&gt;
x6= 1.945393&lt;br /&gt;
y6= 0.945207&lt;br /&gt;
z6= 0.252204&lt;br /&gt;
x7= 1.965502&lt;br /&gt;
y7=-0.830194&lt;br /&gt;
z7= 0.416379&lt;br /&gt;
&lt;br /&gt;
x1= 0.000000&lt;br /&gt;
y1= 0.000000 &lt;br /&gt;
z1= 0.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*refence state&lt;br /&gt;
:-make sure you run a reference state calculation without the field&lt;br /&gt;
:-this has the bonus of giving the dipole moment as well&lt;br /&gt;
:-currently we cannot orientate the dipole, but hopefully soon&lt;br /&gt;
:-first optimise the molecule (with the z-matrix as defined for the field calculation)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== a code to orient the molecule ==&lt;br /&gt;
*copy the code pos_zmat into a file called pos_zmat.py in your bin directory&lt;br /&gt;
:'''pos_zmat.py''' [https://sagacioushours.org.uk/wiki/index.php/Mod:Hunt_Research_Group/pos_zmat link]&lt;br /&gt;
*change the first line shebang to direct to YOUR python3&lt;br /&gt;
:mine is on my mac &amp;lt;code&amp;gt;#!/opt/local/bin/python3&amp;lt;/code&amp;gt;&lt;br /&gt;
:on raapoi is &amp;lt;code&amp;gt;#!/usr/bin/env python3.8&amp;lt;/code&amp;gt;&lt;br /&gt;
*extract the xyz coordinates for your molecule&lt;br /&gt;
:use &amp;quot;extract_structure.py&amp;quot;&lt;br /&gt;
:that is the xyz coordinates in the form &amp;lt;code&amp;gt;atom_symbol x y z&amp;lt;/code&amp;gt;&lt;br /&gt;
:for example here are the coordinates of a water molecule&lt;br /&gt;
:note that we require atomic symbols not numbers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270 &lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a file called '''geom.inp'''&lt;br /&gt;
:below is the file for water&lt;br /&gt;
:info is given on each line&lt;br /&gt;
:1. number of atoms&lt;br /&gt;
:2. atom_1 atom_2 atom_3&lt;br /&gt;
:3. angle_1 angle_2 angle_3&lt;br /&gt;
&lt;br /&gt;
:: atom_1 =atom to center the coordinates at (ie will be 0.0 0.0 0.0) in my case I want to center at atom 1&lt;br /&gt;
:: atom_2 =atom you want along the x-axis, in my case atom 2 &lt;br /&gt;
:: atom_3 =atom to form the xy plane through atom_1, atom_2 and atom_3, the z-axis will be perpendicular to this plane&lt;br /&gt;
:: currently you can only give ONE angle the others must be set to 0.0&lt;br /&gt;
:: angle_1 rotatare in xy&lt;br /&gt;
:: angle_2 rotate in xz&lt;br /&gt;
:: angle_3 rotate in yx&lt;br /&gt;
&lt;br /&gt;
:4. and on are your coordinates&lt;br /&gt;
:: note that you can insert a file using vi with the (comand mode)&amp;lt;code&amp;gt;:r filename&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
3&lt;br /&gt;
1 2 3&lt;br /&gt;
10.0 0.0 0.0&lt;br /&gt;
O   1.995482   0.000000  -0.000000 &lt;br /&gt;
H   2.637933  -0.000000   0.697270&lt;br /&gt;
H   2.637933   0.000000  -0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*run the code&lt;br /&gt;
:the geom.inp file as an argument (without .inp)&lt;br /&gt;
:&amp;lt;code&amp;gt;pos_zmat.py geom &amp;lt;/code&amp;gt;&lt;br /&gt;
:you should see something like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
directory is /Users/tricia/Files/work/jobs/field&lt;br /&gt;
input file is geom.inp&lt;br /&gt;
symbolic z-matrix output file is geom_osymb.xyz&lt;br /&gt;
xyz coord output file is geom_new.xyz&lt;br /&gt;
total number of atoms 3&lt;br /&gt;
center at atom 1&lt;br /&gt;
x-axis along bond to atom 2&lt;br /&gt;
NOT WORKING YET rotation around xy-pane (x-axis) OR around xz-plane (y-axis) OR around yz-plane (x-axis}15.0 0.0&lt;br /&gt;
NOT WORKING YET z-axis perpendicular to the plane of atoms 1, 2, 3&lt;br /&gt;
center at O1  1.995482, 0.000000,-0.000000&lt;br /&gt;
align along atom vector O1 H2&lt;br /&gt;
atom H2  2.637933,-0.000000, 0.697270&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*output files&lt;br /&gt;
:you should see 2 files '''geom_new.xyz''' and '''geom_osymb.xyz'''&lt;br /&gt;
:geom_new.xyz gives the new coordinate file in the standard format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O    0.000000    0.000000    0.000000 &lt;br /&gt;
H    0.915812    0.245391    0.000000 &lt;br /&gt;
H   -0.074822   -0.020048   -0.944949 &lt;br /&gt;
Xx   4.000000    0.000000    0.000000 &lt;br /&gt;
Xy   0.000000    4.000000    0.000000 &lt;br /&gt;
Xz   0.000000    0.000000    4.000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:geom_osymb.xyz gives the coordinates in the symbolic z-matrix format &lt;br /&gt;
:you will add these into your com file&lt;br /&gt;
:you can see that atom 1 is at the origin&lt;br /&gt;
:you can see that atom 2 has coordinates in the x and y direction very close to zero&lt;br /&gt;
:note that 3 dummy atoms are added on the position of the x,y and z axies to help with visualisation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create a com file&lt;br /&gt;
:use the vi insert file option (comand mode)&amp;lt;code&amp;gt;:r geom_osymb.xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
:here is my new water_field.com file&lt;br /&gt;
:you MUST visualise this in gaussview to make sure everything is ok!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%chk=water_field.chk&lt;br /&gt;
# opt=(z-matrix,maxcycles=100) hf/3-21g nosymm field=x+250&lt;br /&gt;
&lt;br /&gt;
Title Card Required&lt;br /&gt;
&lt;br /&gt;
0 1&lt;br /&gt;
O  0  x1    y1     z1    &lt;br /&gt;
H  0  x2    y2     z2    &lt;br /&gt;
H  0  x3    y3     z3    &lt;br /&gt;
Xx  0  x4    y4     z4    &lt;br /&gt;
Xy  0  x5    y5     z5    &lt;br /&gt;
Xz  0  x6    y6     z6    &lt;br /&gt;
&lt;br /&gt;
  x1  = 0.000000 &lt;br /&gt;
  y1  = 0.000000 &lt;br /&gt;
  z1  = 0.000000 &lt;br /&gt;
  x2  = 0.915812 &lt;br /&gt;
  y2  = 0.245391 &lt;br /&gt;
  z2  = 0.000000 &lt;br /&gt;
  x3  =-0.074822 &lt;br /&gt;
  y3  =-0.020048 &lt;br /&gt;
  z3  =-0.944949 &lt;br /&gt;
  x4  = 4.000000 &lt;br /&gt;
  y4  = 0.000000 &lt;br /&gt;
  z4  = 0.000000 &lt;br /&gt;
  x5  = 0.000000 &lt;br /&gt;
  y5  = 4.000000 &lt;br /&gt;
  z5  = 0.000000 &lt;br /&gt;
  x6  = 0.000000 &lt;br /&gt;
  y6  = 0.000000 &lt;br /&gt;
  z6  = 4.000000&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and here is my gaussview check&lt;br /&gt;
:with the x-axis to atom 2 angle of 15 degrees&lt;br /&gt;
[[File:Water_field_file.png|500px|caption]]&lt;br /&gt;
&lt;br /&gt;
== orientate to the dipole ==&lt;br /&gt;
*you can orient the molecule so the dipole aligns with the electric field&lt;br /&gt;
:-''python script to be added!''&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/pos_zmat&amp;diff=25051</id>
		<title>Mod:Hunt Research Group/pos zmat</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Mod:Hunt_Research_Group/pos_zmat&amp;diff=25051"/>
		<updated>2025-10-22T17:57:24Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/opt/local/bin/python3&lt;br /&gt;
#&lt;br /&gt;
# pos_zmat.py&lt;br /&gt;
#&lt;br /&gt;
# python script to take cartesian coords and orient a molecule and convert to a symbolic z-matrix format.&lt;br /&gt;
# the *.xyz file can be draged into jmol&lt;br /&gt;
# the symbolic matrix file is saved in *.com format&lt;br /&gt;
#&lt;br /&gt;
# to run the script you need an input file *.inp&lt;br /&gt;
# if you have a log file run extract_structure.py filename (without log extension) first to get the xyz coordinates&lt;br /&gt;
# then copy this file to filename.inp and add the following at the top&lt;br /&gt;
# no of atoms&lt;br /&gt;
# a b c &lt;br /&gt;
# xx yy zz&lt;br /&gt;
# where&lt;br /&gt;
#     a atom to center at&lt;br /&gt;
#     b x-axis will align along bond a-b&lt;br /&gt;
#     c the atoms a-b-c will form the xy plane&lt;br /&gt;
#       this means the  z-axis is perpendicular to the plane of these 3 atoms&lt;br /&gt;
#     xx yy zz the angle to rotate the a-b bond (vector) in the xy, xz, or yz planes&lt;br /&gt;
#     currently only active for one axis at a time!&lt;br /&gt;
# then follows a section for atomic symbol/atomic no and coordinates&lt;br /&gt;
#&lt;br /&gt;
# to run the script type python pos_zmat.py input_file_name (without extension)&lt;br /&gt;
#&lt;br /&gt;
# this will produce the files&lt;br /&gt;
# filename_new.xyz (for jmol)&lt;br /&gt;
# filename_osymb.com (for G16)&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
import os&lt;br /&gt;
import math&lt;br /&gt;
import numpy as np&lt;br /&gt;
dir=os.getcwd()&lt;br /&gt;
from numpy import (array, dot, arccos, clip)&lt;br /&gt;
from numpy.linalg import norm&lt;br /&gt;
#&lt;br /&gt;
if len(sys.argv) &amp;gt;= 3:&lt;br /&gt;
  print('to run the script please type: python symb_zmat.py input_file_name (without extension)')&lt;br /&gt;
  sys.exit()&lt;br /&gt;
else:&lt;br /&gt;
  base=str(sys.argv[1])&lt;br /&gt;
  file=base+'.inp'&lt;br /&gt;
  out1=base+'_osymb.com'&lt;br /&gt;
  out2=base+'_new.xyz'&lt;br /&gt;
  s='directory is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,dir))&lt;br /&gt;
  s='input file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,file))&lt;br /&gt;
  s='symbolic z-matrix output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out1))&lt;br /&gt;
  s='xyz coord output file is '&lt;br /&gt;
  print('{0:}{1:}'.format(s,out2))&lt;br /&gt;
#close if&lt;br /&gt;
#&lt;br /&gt;
# set some defaults&lt;br /&gt;
atomtotal=0&lt;br /&gt;
atomcenter=0&lt;br /&gt;
atomxaxis=0&lt;br /&gt;
atomyaxis=0&lt;br /&gt;
xa=0.0&lt;br /&gt;
xb=0.0&lt;br /&gt;
xc=0.0&lt;br /&gt;
rotanglex=0.0&lt;br /&gt;
rotangley=0.0&lt;br /&gt;
rotanglez=0.0&lt;br /&gt;
dipole=0.0&lt;br /&gt;
nz1=0&lt;br /&gt;
nz2=0&lt;br /&gt;
nz3=0&lt;br /&gt;
a=[]&lt;br /&gt;
col_atom=[]&lt;br /&gt;
col_x=[]&lt;br /&gt;
col_y=[]&lt;br /&gt;
col_z=[]&lt;br /&gt;
newcol_x=[]&lt;br /&gt;
newcol_y=[]&lt;br /&gt;
newcol_z=[]&lt;br /&gt;
v1=np.zeros(3,dtype=float)&lt;br /&gt;
v2=np.zeros(3,dtype=float)&lt;br /&gt;
v3=np.zeros(3,dtype=float)&lt;br /&gt;
&lt;br /&gt;
# open file and read lines one by one&lt;br /&gt;
f=open(file,&amp;quot;r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#total number of atoms&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
atomtotal=int(line.rstrip())&lt;br /&gt;
s='total number of atoms '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomtotal))&lt;br /&gt;
&lt;br /&gt;
#read in data center atom, xaxis atom, xy plane atom&lt;br /&gt;
line =f.readline()&lt;br /&gt;
#print('{0:}'.format(line))&lt;br /&gt;
a=line.rstrip().split()&lt;br /&gt;
atomcenter=int(a[0])&lt;br /&gt;
atomxaxis=int(a[1])&lt;br /&gt;
atomyaxis=int(a[2])&lt;br /&gt;
s='center at atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomcenter))&lt;br /&gt;
s='x-axis along bond to atom '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomxaxis))&lt;br /&gt;
s='atoms in the xy-plane '&lt;br /&gt;
print('{0:}{1:}'.format(s,atomyaxis))&lt;br /&gt;
 &lt;br /&gt;
#read in the rotation angles (degrees)&lt;br /&gt;
line =f.readline()&lt;br /&gt;
b1,c1,d1=line.rstrip().split()&lt;br /&gt;
rotplanexy=float(b1)&lt;br /&gt;
rotplanexz=float(c1)&lt;br /&gt;
rotplaneyz=float(d1)&lt;br /&gt;
if rotplanexy != 0:&lt;br /&gt;
  s='rotation of a-b around xy-pane (z-axis) by '&lt;br /&gt;
  print('{0:}{1:}'.format(s,rotplanexy))&lt;br /&gt;
elif rotplanexz != 0:&lt;br /&gt;
  s='rotation a-b around xz-pane (y-axis) by '&lt;br /&gt;
  print('{0:}{1:}'.format(s,rotplanexz))&lt;br /&gt;
elif rotplaneyz != 0:&lt;br /&gt;
  s='rotation a-b around yz-pane (x-axis) by '&lt;br /&gt;
  print('{0:}{1:}'.format(s,rotplaneyz))&lt;br /&gt;
else:&lt;br /&gt;
  print('no rotations')&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
#read in atoms and coordinates&lt;br /&gt;
mx=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mx1=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
my1=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mz1=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mxf=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
myf=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
mzf=np.zeros(atomtotal,dtype=float)&lt;br /&gt;
#print(ny)&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal :&lt;br /&gt;
  line =f.readline()&lt;br /&gt;
#  print('{0:}'.format(line))&lt;br /&gt;
  a1,b1,c1,d1=line.rstrip().split()&lt;br /&gt;
  col_atom.append(a1)&lt;br /&gt;
  col_x.append(float(b1))&lt;br /&gt;
  col_y.append(float(c1))&lt;br /&gt;
  col_z.append(float(d1))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#turn list into a numpty array&lt;br /&gt;
mx=np.array(col_x)&lt;br /&gt;
my=np.array(col_y)&lt;br /&gt;
mz=np.array(col_z)&lt;br /&gt;
#print(ny)&lt;br /&gt;
&lt;br /&gt;
#center at atomcenter&lt;br /&gt;
c=atomcenter-1&lt;br /&gt;
#print('center at {0:} {1:9.6f},{2:9.6f},{3:9.6f}'.format(atomcenter,col_x[c],col_y[c],col_z[c]))&lt;br /&gt;
mx = mx - mx[c]&lt;br /&gt;
my = my - my[c]&lt;br /&gt;
mz = mz - mz[c]&lt;br /&gt;
print('centered')&lt;br /&gt;
&lt;br /&gt;
#align along x-y atom vector&lt;br /&gt;
a=atomcenter-1&lt;br /&gt;
b=atomxaxis-1&lt;br /&gt;
#print('align along atom vector {0:} {1:}'.format(atomcenter,atomxaxis))&lt;br /&gt;
#print('old atom coords {0:} {1:9.4f},{2:9.4f},{3:9.4f}'.format(atomxaxis,col_x[b],col_y[b],col_z[b]))&lt;br /&gt;
#print('new atom coords {0:} {1:9.4f},{2:9.4f},{3:9.4f}'.format(atomxaxis,mx[b],my[b],mz[b]))&lt;br /&gt;
v0=np.zeros(2,dtype=float)&lt;br /&gt;
vxy=np.zeros(2,dtype=float)&lt;br /&gt;
vxz=np.zeros(2,dtype=float)&lt;br /&gt;
print('x-axis aligned')&lt;br /&gt;
&lt;br /&gt;
#first rotate xy plane&lt;br /&gt;
#ie rotate around z-axis&lt;br /&gt;
#note that atan2 give the correct quadrant&lt;br /&gt;
theta=math.atan2(my[b],mx[b])&lt;br /&gt;
t2_deg=math.degrees(theta) &lt;br /&gt;
#print('theta ',round(theta,2), 'radians')&lt;br /&gt;
#print('theta ',round(t2_deg,2), 'degrees')&lt;br /&gt;
#rotate backwards!&lt;br /&gt;
t2_rad=-theta&lt;br /&gt;
mx1=mx*np.cos(t2_rad)-my*np.sin(t2_rad)&lt;br /&gt;
my1=mx*np.sin(t2_rad)+my*np.cos(t2_rad)&lt;br /&gt;
mz1=mz&lt;br /&gt;
#print('after xy rotation  {0:9.4f}, {1:9.4f}, {2:9.4f}'.format(mx1[b],my1[b],mz1[b]))&lt;br /&gt;
&lt;br /&gt;
#then rotate in xz plane&lt;br /&gt;
#ie rotate &amp;quot;down&amp;quot;around y-axis&lt;br /&gt;
theta=math.atan2(mz1[b],mx1[b])&lt;br /&gt;
t2_deg=math.degrees(theta) &lt;br /&gt;
#print('theta ',round(theta,2), 'radians')&lt;br /&gt;
#print('theta ',round(t2_deg,2), 'degrees')&lt;br /&gt;
#rotate backwards!&lt;br /&gt;
t2_rad=-theta&lt;br /&gt;
mx=mx1*np.cos(t2_rad)-mz1*np.sin(t2_rad)&lt;br /&gt;
my=my1&lt;br /&gt;
mz=mx1*np.sin(t2_rad)+mz1*np.cos(t2_rad)&lt;br /&gt;
#print('after xz rotation  {0:9.4f}, {1:9.4f}, {2:9.4f}'.format(mx[b],my[b],mz[b]))&lt;br /&gt;
&lt;br /&gt;
#then rotate in yz plane&lt;br /&gt;
#ie rotate &amp;quot;down&amp;quot;around x-axis&lt;br /&gt;
#to bring atom c into the xy plane&lt;br /&gt;
b=atomyaxis-1&lt;br /&gt;
theta=math.atan2(mz[b],my[b])&lt;br /&gt;
t2_deg=math.degrees(theta) &lt;br /&gt;
#print('theta ',round(theta,2), 'radians')&lt;br /&gt;
#print('theta ',round(t2_deg,2), 'degrees')&lt;br /&gt;
#rotate backwards!&lt;br /&gt;
t2_rad=-theta&lt;br /&gt;
mx1=mx&lt;br /&gt;
my1=my*np.cos(t2_rad)-mz*np.sin(t2_rad)&lt;br /&gt;
mz1=my*np.sin(t2_rad)+mz*np.cos(t2_rad)&lt;br /&gt;
#print('after yz rotation  {0:9.4f}, {1:9.4f}, {2:9.4f}'.format(mx1[b],my1[b],mz1[b]))&lt;br /&gt;
print('atoms aligned in xy plane')&lt;br /&gt;
&lt;br /&gt;
#reset so mx,my,mz contain current values too&lt;br /&gt;
mx=mx1&lt;br /&gt;
my=my1&lt;br /&gt;
mz=mz1&lt;br /&gt;
&lt;br /&gt;
#if rotangle is not zero rotate the bond in xy,xz or yz planes &lt;br /&gt;
t=0&lt;br /&gt;
if rotplanexy != 0.0 : &lt;br /&gt;
  a=np.deg2rad(rotplanexy)&lt;br /&gt;
  mx1=mx*np.cos(a)-my*np.sin(a)&lt;br /&gt;
  my1=mx*np.sin(a)+my*np.cos(a)&lt;br /&gt;
  mz1=mz&lt;br /&gt;
  t=1&lt;br /&gt;
# endif&lt;br /&gt;
&lt;br /&gt;
if t==0 and rotplanexz != 0.0 :&lt;br /&gt;
  print('rotate in xz plane')&lt;br /&gt;
  a=np.deg2rad(rotplanexz)&lt;br /&gt;
  mx1=mx*np.cos(a)-mz*np.sin(a)&lt;br /&gt;
  my1=my&lt;br /&gt;
  mz1=mx*np.sin(a)+mz*np.cos(a)&lt;br /&gt;
  t=1&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
if t==0 and  rotplaneyz != 0.0 :&lt;br /&gt;
  a=np.deg2rad(rotplaneyz)&lt;br /&gt;
  mx1=mx&lt;br /&gt;
  my1=my*np.cos(a)-mz*np.sin(a)&lt;br /&gt;
  mz1=my*np.sin(a)+mz*np.cos(a)&lt;br /&gt;
  t=1&lt;br /&gt;
#endif&lt;br /&gt;
print('a-b vector rotated')&lt;br /&gt;
&lt;br /&gt;
mfx=mx1&lt;br /&gt;
mfy=my1&lt;br /&gt;
mfz=mz1&lt;br /&gt;
&lt;br /&gt;
#now write to the _new.xyz file&lt;br /&gt;
c=open(out2,&amp;quot;w&amp;quot;)&lt;br /&gt;
c.write('{0:&amp;lt;3} \n'.format(atomtotal+3))&lt;br /&gt;
c.write('{0:&amp;lt;5} \n'.format('title'))&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  c.write('{0:&amp;lt;3} {1:9.6f}   {2:9.6f}   {3:9.6f} \n'.format(col_atom[n],mfx[n],mfy[n],mfz[n]))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
#postions dummy atoms on axis&lt;br /&gt;
print('write .xyz file')&lt;br /&gt;
p=4.0&lt;br /&gt;
c.write('{0:&amp;lt;3} {1:9.6f}   {2:9.6f}   {3:9.6f} \n'.format('Xx',p,0.0,0.0))&lt;br /&gt;
c.write('{0:&amp;lt;3} {1:9.6f}   {2:9.6f}   {3:9.6f} \n'.format('Xy',0.0,p,0.0))&lt;br /&gt;
c.write('{0:&amp;lt;3} {1:9.6f}   {2:9.6f}   {3:9.6f} \n'.format('Xz',0.0,0.0,p))&lt;br /&gt;
#&lt;br /&gt;
#now write to the _symb.com file&lt;br /&gt;
c=open(out1,&amp;quot;w&amp;quot;)&lt;br /&gt;
s=&amp;quot;%nprocshared=16\n%mem=30GB\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s='%chk='+base+'_osymb.chk\n'&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;#b3lyp/6-311+g(d,p) int=ultrafine scf=conver=10 empiricaldispersion=gd3bj \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;opt=(maxcyc=50)  nosymm field=x+50 \n \n &amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
s=&amp;quot;Title Card Required\n\n&amp;quot;&lt;br /&gt;
c.write('{0:}'.format(s))&lt;br /&gt;
charge=0&lt;br /&gt;
multiplicity=1&lt;br /&gt;
c.write('{0:} {1:} \n'.format(charge,multiplicity))&lt;br /&gt;
#&lt;br /&gt;
#write out z-matrix&lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format(col_atom[n],m,m,m))&lt;br /&gt;
  n=n+1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xx',m,m,m))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xy',m,m,m))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('{0:}  0  x{1:&amp;lt;4} y{2:&amp;lt;4}  z{3:&amp;lt;4} \n'.format('Xz',m,m,m))&lt;br /&gt;
c.write('\n'.format())&lt;br /&gt;
&lt;br /&gt;
#write out variables &lt;br /&gt;
n=0&lt;br /&gt;
while n &amp;lt; atomtotal:&lt;br /&gt;
  m=n+1&lt;br /&gt;
  c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,mfx[n],m,mfy[n],m,mfz[n]))&lt;br /&gt;
  n=n + 1&lt;br /&gt;
#close while&lt;br /&gt;
m=n+1&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,p,m,0.0,m,0.0))&lt;br /&gt;
m=n+2&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,p,m,0.0))&lt;br /&gt;
m=n+3&lt;br /&gt;
c.write('  x{0:&amp;lt;3}={1:&amp;gt;9.6f} \n  y{2:&amp;lt;3}={3:9.6f} \n  z{4:&amp;lt;3}={5:9.6f} \n'.format(m,0.0,m,0.0,m,p))&lt;br /&gt;
c.write('\n\n'.format())&lt;br /&gt;
&lt;br /&gt;
# close all open files&lt;br /&gt;
f.close()&lt;br /&gt;
c.close()&lt;br /&gt;
print('done!')&lt;br /&gt;
exit(0)&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>