Gaussian: Tutorial on Water Single Point Energy and Scripts


 Introduction

You can use a script to create and save a Gaussian file based on restricted Hartree-Fock calculations on a 6-31G(d) basis set for water single point energy.

 Tutorial Steps

Use your favorite editor to create a script file with the following lines and save the file as "spe_hf_6-31g-3". Water molecule is described in the form of Z-matrix in the following C shell script file.

 #!/bin/csh g98 << END > spe_hf_6-31g-3.log #T HF/6-31G(d) Pop=Reg Test Water HF Single Point Energy with 6-31G(d) Basis Set 0 1 O H,1,R2 H,1,R3,2,A3 Variables: R2=0.96 R3=0.95990885 A3=109.4731442 END echo "Job Done. " 

#T requests terse output from the program (only the essential results). If # alone, normal (traditional) Gaussian output is requested. A restricted ( R ) Hartree-Fock ( HF ) calculation using the 6-31G(d) ( 6-31G(d) )basis set is chosen. Pop=Reg asks to display highest five occupied and lowest five virtual molecular orbitals and other information not included in the output by default. Test will prevent Gaussian from entering this job's results into the site archive. A blank line after the #T line is a one-line description of the calculation. After another blank line, the water molecule is then specified. The first line of the molecule specifications gives the charge and spin multiplicity for the molecule as two free-format integers. For water, the molecule is neutral (charge 0 ) and has spin multiplicity 1 (singlet). Then, the water molecule is represented by Z-matrix format. Notice that there is a blank line at the end of the file.

After the file is created, file permission needs to be changed to include executable. Type the following command to achieve that.

 chmod 755 spe_hf_6-31g-3 

 Running Gaussian Locally on your Desktop

Type the following at the prompt to start the calculation interactively.

 ./spe_hf_6-31g-3 

If running job in the background is preferred, the following command can be used.

 ./spe_hf_6-31g-3 & 

If running job in the background and logging out of your desktop is preferred, the following command can be used.

 nohup ./spe_hf_6-31g-3 & 

If running job in the background with lowest priority and logging out of your desktop is preferred, the following command can be used.

 nohup nice +19 ./spe_hf_6-31g-3 & 

Return to List of [ http://www.unc.edu/atn/scientific/sciapp/index.html ] Scientific Applications Available .

Additional Help

[ http://its.unc.edu/research-computing.html ] Research Computing home page

Copyright 2002-2007 The University of North Carolina at Chapel Hill.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.

Post a Comment

This form is for document feedback. If you need technical assistance, and are affiliated with UNC-Chapel Hill, please Submit a Help Request
Optional
Optional
So that we may contact you.
Do not fill out this form, this is a spam trap.
Top
University of North Carolina - Chapel Hill