[Menu Bar] Resourses at ARSC Science at ARSC Newsroom Support About ARSC ARSC Home

Using Gaussian 03

This document is an introduction to using Gaussian 03 on ARSC systems.

Contents

Introduction

Gaussian 03 is a software package used for calculating molecular electronic structure and properties. The package includes a wide range of ab initio and semi-empirical methods for energy, gradient, frequency and property calculations.

Beginning users are advised to read the first two chapters of the book Exploring Chemistry with Electronic Structure Methods (Foresman and Frisch, Gaussian, Inc. 1998) for a general introduction to Gaussian. A copy of this book is available in the ARSC library.

If you are publicizing results obtained from the use of Gaussian software, please refer to the output file generated by the software for proper citation information.

Setting Up Your Environment

Gaussian 03 is installed in the directory /usr/local/pkg/gaussian. To enable execution of a Gaussian 03 program, users must set the proper environment variables as shown below:

Tcsh / C-shell users:

   % setenv GAUSS_SCRDIR $WORKDIR
   % setenv g03root /usr/local/pkg/gaussian/current
   % source $g03root/g03/bsd/g03.login

Bash / Korn shell users:

   % export GAUSS_SCRDIR=$WORKDIR
   % export g03root=/usr/local/pkg/gaussian/current
   % . $g03root/g03/bsd/g03.profile

If you are a regular Gaussian user, you may want to add the commands listed above to your .cshrc (tcsh/csh users) or .profile (bash/ksh users) file.

Input Files

Each Gaussian job requires an input file (known as an 'input deck') specifying the type of calculation, basis set, and molecular specification of the input data. Input files contain ASCII text only and are prepared using a text editor. Gaussian input files require a filename with a .gjf or .com extension, for example ethane.gjf or water.com.

An example input file for a Restricted Hartree-Fock single point energy calculation on a water molecule using the 6-31G(d) Gaussian basis set is listed below:

   #P RHF/6-31G(d) Test
   
   My test program: Water -- single point energy
   
   0 1
   O   -0.464   0.177   0.0
   H   -0.464   1.137   0.0
   H    0.441  -0.143   0.0

The first line indicates the type of calculation and basis set. Line two must be left blank. The third line is a comment line. Line four is also blank. The remaining lines contain the molecular charge, spin multiplicity, atom types, and Cartesian coordinates. Input text is not case sensitive and extra whitespace (spaces or tabs) is allowed within a line. Sections of the input file are separated by a blank line. Coordinates can be specified as Cartesian (x, y, and z) or in the Z-matrix format.

Consult the Gaussian User's Reference for proper keyword usage and input file format. The directories:

   cd $g03root/g03/tests/com
   cd $g03root/g03/tests

contain input files which can be used as examples or templates for your own calculations. If an input file contains incorrect data or an incompatible format, the output files generated during program execution will display an error.

Scratch Files

Gaussian 03 creates scratch files during each job. The number and size of these scratch files depends on the type of calculation being used. For example, scratch files produced for a Hartree-Fock SCF calculation include:

The file suffix or extension (e.g. .chk) denotes the type of file. The user can, and should, set the environment variable GAUSS_SCRDIR to direct Gaussian to place scratch files in a directory other than the current working directory. The recommended location is within the $WORKDIR directory. Use the following to set the environment variables:

Tcsh / C-shell users:

   % setenv GAUSS_SCRDIR $WORKDIR

Bash / Korn shell users:

   % export GAUSS_SCRDIR=$WORKDIR

If the GAUSS_SCRDIR variable is not set, Gaussian will use the current working directory for scratch storage. Jobs utilizing a user's home directory for scratch storage could cause disk quota problems. Gaussian scratch files for all but the most trivial calculations may be large.

Scratch file locations can also be assigned within the input (.com or .gjf) file. Scratch files need not use the default naming convention or even reside on the same disk or filesystem. For example:

   %Chk=$HOME/the_checkpoint_file
   %RWF=$WORKDIR/project/ScratchFiles/my_read_write_file
   %Int=$WORKDIR/project/integrals/my_integral_file
   %D2E=$WORKDIR/project/my_integral_derivative_file

Please make sure the scratch directories exist before running your calculation.

By default, all Gaussian scratch files are removed when a job terminates normally. Abnormal or premature termination of a job will leave scratch files in place. The %NoSave command added to the top of the input file can be used to prevent the removal of selected scratch files. See the Gaussian User's Guide for additional details.

Memory

The %Mem directive may be added to the top of a Gaussian input file to request additional physical memory for a calculation, for example:

   %Mem=512MB

requests a total of 512 MB of physical memory. The %Mem memory specification can be in KB, MB, or GB units.

Users who request additional memory should exercise caution. Requests for (unused) excessive memory can cause performance degradation for your job, and for other users.

Running Gaussian 03 in LoadLeveler

Gaussian 03 jobs running longer than 15 minutes are best run in the batch queue environment known as Loadleveler. Two files are required to submit a job to LoadLeveler: (1) the Gaussian 03 input file, and (2) a batch script specifying the job characteristics. Example batch scripts are shown below.

For a more in depth introduction to batch environments please see "Using Loadleveler".


The llsubmit command is used to submit the job to the LoadLeveler queueing system. If your LoadLeveler script is named myjob.ll then use:

   % llsubmit myjob.ll

The llq command can be used to monitor the progress of a job. The man pages for llsubmit and llq give complete details for each of their usage.

For additional information, please see our web page containing detailed information about using the Loadleveler system.

Interactive use of Gaussian 03 is permitted, however, use of the batch system for production work is strongly encouraged.


More Information

 

Arctic Region Supercomputing Center
PO Box 756020, Fairbanks, AK 99775 | voice: 907-450-8600 | email:

home | search | about | support | news | science | resources