Setting up and Running Gaussian Jobs
This chapter discusses setting up and running Gaussian calculations with GaussView. It deals only with the mechanics of doing so. Consult the Gaussian 09 User’s Reference for detailed information about all Gaussian 09 keywords and options.
The Gaussian Calculation Setup Window
The first step in producing a Gaussian input file is to build the desired molecule. The bond lengths, bond angles, and dihedral angles for the molecule will be used by GaussView to write a molecular structure for the calculation. Once this is completed, you can use the Calculate=>Gaussian Calculation Setup menu path to open the Gaussian Calculation Setup dialog. It is illustrated in Figure 67.
Figure 67. The Gaussian Calculation Setup Dialog
The Gaussian Calculation Setup dialog contains several panels, described individually below. The buttons at the bottom of the dialog have the following effects:
The Job Type panel appears in Figures 67 and 68. The top popup menu selects the job type. The default is a single point energy calculation. The remaining fields in the panel represent common options for the selected job type (Figure 67 shows the ones for an Opt+Freq calculation).
In order to select a different job type than those listed in the popup menu, select the blank menu item at the bottom of the list, and then type the appropriate Gaussian keyword into the Additional Keywords section in the lower section of the dialog.
You can also use this field to add any desired Gaussian keyword and/or option. In the latter case, you must repeat the keyword within this field even if it already appears in the route section. GaussView will merge all options for the same keyword within the route section (see Figure 68 for an example). Note that this area is designed only for adding keywords to the route section. Use the
button for creating complex input files.Figure 68. Adding an Option via the Additional Keywords Field
The Scheme field at the bottom of the dialog is used to quickly retrieve a stored set of keywords and options. This feature is described later in this chapter.
The Method panel specifies the quantum mechanical method to be used in a calculation. The default method is a ground state, closed shell Hartree-Fock calculation using the 3-21G basis set. This panel is illustrated in Figure 69.
The fields in the Method line specify the following items:
Figure 69. The Method Panel
The Basis Set menus allow the selection of the basis set to be used in the calculation. Polarization functions and diffuse functions may be added to the basis set using the corresponding menus in this line. Select the Custom item at the bottom of the basis set menu to select a basis set other than those that can be constructed via the controls in this area. You may enter any basis set keyword in the name field:
Figure 70. Entering a Custom Basis Set Keyword
The Charge and Spin fields specify the molecule’s charge and spin multiplicity. GaussView will select values for these fields based on the molecular structure. They may be modified as needed.
The Title panel holds a field used for the Gaussian title section (designed to contain a brief description of the job). Type your description into the text box.
The Link 0 panel is used for entering Link 0 commands for the job (see Figure 71). Note that if you remove the specification for the name and location of the checkpoint file, you will not be able to visualize output automatically from this job.
Figure 71. The Link 0 Panel
The General panel allows you to select commonly used general calculation options. It is illustrated in Figure 72.
Figure 72. Selecting General Gaussian Options
The following table indicates the Gaussian keywords corresponding to these items:
Option |
Default |
Keyword |
Use Quadratically Convergent SCF |
Off |
SCF=QC |
Use Modified Redundant Coordinates |
On |
Geom=ModRedundant |
Ignore Symmetry |
Off |
NoSymm |
Use Counterpoise |
Off |
Counterpoise |
Write Gaussian Fragment Data |
On |
Fragment (in molecule specification) |
Use MaxDisk= |
Off |
MaxDisk |
Additional Print |
Off |
#P |
Write Connectivity |
On |
Geom=Connectivity |
Compute polarizabilities |
Off |
Polar |
Write PDB Data |
On |
ResNum, ResName, PDBName (in molecule specification) |
The Use Modified Redundant Coordinates item is enabled only if you have set up redundant coordinates with the Redundant Coordinate Editor. If not, the item is ignored (despite its default value). Write Gaussian Fragment Data and Write PDB Data are enabled by default, but have no effect unless the corresponding items are defined.
The Write Connectivity option also includes the appropriate additional input section(s) in the Gaussian input file.
Note: Consult the discussion of the SCF keyword in the Gaussian 09 User’s Reference for recommendations for unusual/problem cases (SCF=QC is not always the best next choice).
Th Guess panel contains settings related to the initial guess. It is illustrated in Figure 73. Consult the discussion of the Guess keyword in the Gaussian 09 User’s Reference for full details on these options.
The Guess Method popup specifies the type of initial guess to use. It has the following options:
Figure 73. Gaussian Initial Guess Options
The options in this panel have the following meanings:
Option |
Default |
Keyword |
Mix HOMO & LUMO orbitals |
Off |
Guess=Mix |
Only do guess (no SCF) |
Off |
Guess=Only |
Save orbitals to checkpoint file |
Off |
Guess=Save |
Use fragments (atom groups) for generating guess |
Off |
Guess=Fragment |
Always generate guess in optimizations |
Off |
Guess=Always |
Localize orbitals |
Off |
Guess=Local |
Permuted orbitals from MOs Dialog |
On |
Guess=Permute |
The Permuted orbitals for MOs Dialog is disabled unless you have specified an alternate orbital ordering with the MO Editor. If enabled, it is on by default.
The Use fragments (atom groups) for generating guess is disabled unless fragments have been defined using the Atom Group Editor. If enabled, it is checked by default. In addition, fragment-specific charges and spin multiplicities are generated and placed into the route section. You can also modify them using the Atom Group Editor (see the example for antiferromagnetic coupling in a later section of this manual).
The NBO panel is used to select NBO analysis at the conclusion of the Gaussian job. It is illustrated in Figure 74. The Type menu specifies the kind of NBO analysis to perform. The Checkpoint Save field allows you to save NBOs and/or NLMOs in the checkpoint file for later visualization (the default is Don’t Save).
Figure 74. The NBO Panel
The Solvation panel allows you to specify that the calculation is to be performed in solution rather than in the gas phase. It is illustrated in Figure 75. The Model field allows you to specify a specific solvation model (the default is PCM, which itself defaults to IEFPCM). You can also specify the solvent by selecting it from the corresponding popup menu. Use the Other selection to select a solvent other than those on the list; you will need to specify within the route section manually (e.g., placing SCRF(EPS=value) within the Additional Keywords field).
Figure 75. The Solvation Panel
Note that some solvation models may present different/additional fields for their required parameters. You may use the Read additional input box to generate the SCRF=Read option; additional input may be entered using the Add. Inp. panel (see below).
The PBC panel is used to specify options to the Gaussian PBC keyword (see Figure 68). Checking the Use PBC box causes the translation vectors to be added to the molecule specification. This is the default when a unit cell has been defined with the Crystal Editor. The panel is disabled for non-periodic systems.
Figure 76. The PBC Panel
The final panel in the Gaussian Calculation Setup dialog is labeled Add. Inp. It may be used to enter any additional input section(s) required by the calculation you plan to run. This input will be written to the Gaussian input file provided that Append Extra Input is checked in the Save dialog. Any additional input present in input files that you open will also appear in this panel.
Special Considerations for Various Gaussian Job Types
This section summarizes information about setting up various Gaussian job types for which some special steps are required. All GaussView features mentioned are discussed in detail earlier in this book.
Transition Structure Optimizations: Opt=QST2 and Opt=QST3
Gaussian STQN-based transition structure optimizations require two or three structures as input. To set up these jobs, you must create a molecule group containing the required number of structures. If you plan on running an Opt=QST3 job, then the transition structure initial guess is assumed to be molecule 3 unless you specify a different structure on the Job Type panel.
Once you have done so, the TS (QST2) and TS (QST3) options will be enabled in the Optimize to a field for the Optimization job type in the Job panel of the Gaussian Calculation Setup dialog.
Verifying and Specifying Atom Equivalences
In most cases, GaussView will automatically identify the corresponding atoms in the multiple structures for these transition state optimizations. However, you can verify this using the Connection Editor, accessed via the button on the toolbar or the Edit=>Connection Editor menu item.
Calculations on Polymers, Surfaces and Crystals
You can set up jobs for Gaussian’s Periodic Boundary Conditions facility using the Crystal Editor (reached via the button or the Edit=>PBC menu path). Once you have defined a unit cell, GaussView automatically sets up PBC jobs for this structure by including the translation vectors within the molecule specification. This is indicated by the enabling of the PBC panel in the Gaussian Calculation Setup dialog, and the checked Use PBC item. Note that for normal cases, you do not need to access this panel at all and can proceed directly to setting up Gaussian input in the normal manner.
Multi-Layer ONIOM Calculations
GaussView contains several features for setting up ONIOM calculations.
Assigning Atoms to Layers
The Layer Editor allows you to graphically assign atoms to various ONIOM layers. It is accessed via the toolbar’s button or via the Edit=>Select Layer menu item.
Assigning Molecular Mechanics Atoms Types
GaussView will assign Molecular Mechanics atoms types for UFF, Dreiding and Amber (including Amber charges) to all atoms in the molecule automatically. You can view and modify these using the Atom List Editor (reached via the button on the toolbar or the Edit=>Atom List menu path).
Defining Link Atoms
GaussView will automatically assign minimal link atom information for the appropriate atoms in an ONIOM calculation. However, all link atoms are always handled in the same way, and they may require modification for your purposes. Link atoms generated by GaussView are always hydrogens (using the H_ UFF and Dreiding atom types and the HR Amber atom type, where R is the element of the linked-to atom). The only other link atom parameter which is included is the linked-to atom (the atom in the higher layer to which the current atom is bonded); all other parameters are left blank.
The Atom List Editor is often a convenient way to examine and modify link atoms for ONIOM calculations. You can use the button to view and modify link atoms easily.
Specifying the Model Chemistry for Each Layer
Once you have prepared the structure and specified all necessary parameters, you can set up an ONIOM calculation via the Method panel of the Gaussian Calculation Setup dialog. The Multilayer ONIOM Model checkbox indicates that this will be an ONIOM calculation (see Figure 77).
Figure 77. Setting Up a Gaussian Input File for an ONIOM Job
Specifying CASSCF Active Spaces Using Guess=Permute
GaussView can make it easy to specify CASSCF active space. The MOs dialog allows you to generate, view, select and reorder the starting orbitals. It is reached with the Edit=>MO Editor menu path and via the button on the toolbar. See the detailed discussion of this tool earlier in this manual.
Modifying Redundant Internal Coordinates (Geom=ModRedundant)
You can specify additions and other modifications to redundant internal coordinates for geometry optimizations and other jobs by using the Redundant Coordinate Editor, reached via the button on the toolbar or the Edit=>Redundant Coordinates menu path. See the detailed discussion of this tool earlier in this manual.
Freezing Atoms During Geometry Optimizations
The Atom Group Editor can be used to specify atoms whose positions are to be held fixed during a geometry optimization via its Freeze Atoms group class. This class is defined with four groups by default, corresponding to unfrozen atoms, frozen atoms, and the first two ONIOM frozen rigid blocks (freeze settings of -2 and -3; see the discussion of the Geom keyword in the Gaussian 09 User’s Reference for full details on specifying frozen atoms and rigid blocks for ONIOM calculations). In order to hold specific atoms fixed during a geometry optimizations, add them to the Freeze (Yes) group in the Atom Group Editor.
Selecting Normal Modes for Frequency Calculations (Freq=SelectNormalModes)
You can use the Atom Group Editor to select atoms for which normal mode analysis is conducted (see the Gaussian 09 User’s Reference for details). Placing the desired atoms into the Select Normal Modes (Yes) group will cause them to be entered into the Atoms field corresponding to Select Normal Modes in the Gaussian Calculation Setup’s Job Type panel for Frequency jobs. You can modify this list as needed, but doing so will have no effect on the definition of the groups in the Atom Group Editor’s Select Normal Modes group class.
Calculating NMR Spin-Spin Coupling (NMR=(SpinSpin,ReadAtoms))
When you select an NMR calculation in the Gaussian Calculation Setup’s Job Type panel, the field to the left appears. The atom list in the parentheses corresponds to the members of the NMR Spin-Spin (Yes) group, as defined in the Atom Group Editor (by default, all atoms are placed into this group and the list of atoms reads all atoms). A specific group of atoms appears in this item when the NMR Spin-Spin (No) group contains at least one atom.
Specifying Fragment-Specific Charges and Spin Multiplicities
You can specify individual charge and spin multiplicity values for each fragment defined via the Atom Group Editor. This facility is useful for setting up fragment guess jobs (Guess=Fragment) for modeling antiferromagnetic coupling, counterpoise calculations (Counterpoise) for computing counterpoise corrections and basis set superposition errors, and the like. Figure 78 illustrates setting up a system for modeling antiferromagnetic coupling effects.
Figure 78. Specifying Per-Fragment Charge and Spin
The Gaussian Calculation Setup’s General panel contains features relevant to these two calculation types: Write Gaussian Fragment Data (for both types) and Use Counterpoise (for Counterpoise calculations). In addition, the Guess panel has two items useful for the first job step of a fragment guess job: Only do Guess (no SCF) and Use fragments (atom groups) for generating guess, corresponding to Guess=Only and Guess=Fragment (respectively). Typically, such a job would be followed by a second job to compute the energy including the antiferromagnetic coupling: Guess=Read Geom=AllCheck Stable=Opt.
Setting Defaults for Gaussian Jobs
The Gaussian Setup Preferences may be used to specify defaults for the Gaussian Calculation Setup dialog. Click the button, and then specify the desired settings for future Gaussian calculations. These will be applied to future job setup operations.
Modifying the Gaussian Setup Preferences as described in the preceding paragraph has the effect of modifying the Gaussian calculation scheme named Default. Schemes are named sets of calculation keywords and options, and you can define and save as many different ones as you want to. You can view the calculation scheme in effect at the bottom of the Gaussian Calculation Setup dialog and in the scheme popup in the toolbar, and in the Calculate=>Gaussian Calculation Scheme submenu. You can apply a scheme to the current molecule using any of these controls as well.
For new molecules, the Default scheme is initially applied. When you open a new molecule from a file, the scheme will be set to the scheme that matches its settings (if any) or to Unnamed Scheme.
You can view and modify the properties of the various defined schemes using the More Schemes from any scheme list. The resulting dialog appears in Figure 79.
button or by selectingFigure 79. Viewing and Modifying Calculation Schemes
Any field within a scheme can be edited by clicking on it. Right clicking on a scheme produces a context menu, allowing you to add groups and schemes, cut and paste between fields, and delete schemes. You can also save schemes to an external file and load ones saved in this way back into GaussView. Note that neither the Default scheme nor the Main group may be renamed or deleted.
The conventional way to run a Gaussian job from GaussView is to open the Gaussian Calculation Setup, set the correct job options, click the button, and specify the name and location for the input file. The Quick Launch feature greatly simplifies this common task. A job can be launched using the toolbar button, the button in the Gaussian Calculation Setup dialog or the Calculate=>Gaussian Quick Launch menu path.
Clicking on the button in the Gaussian Calculation Setup dialog or on the portion of the toolbar icon to the left of the small arrow will immediately launch a Gaussian job using the current calculation scheme and temporary files. The toolbar icon arrow and the Calculate menu item both lead to a submenu. Its Temp File item will also result in a job started from a temporary input file. The Save File option will prompt you to save an input file and submit that file as a Gaussian job afterwards. Finally, the Save and Edit File option will prompt you to save an input file and then open that file in the external editor.
When you start a new calculation using Quick Launch a new View window is opened corresponding to it. While the job is running, a text message identifying the job, a stop button, and a stream output file button are placed in the status bar of the View window. Once the job finishes successfully, the results file is opened automatically in the same View window. When more than one results file is produced by a calculation—e.g., both a log file and a checkpoint file are created—then you will be prompted to select the file to open.
You can save the files generated from a Quick Launch operation to temporary files using the File=>Save Temp Files menu item. This item replaces the usual Related Files option under these circumstances.
Viewing and Controlling Gaussian Jobs
The Calculate=>Current Jobs menu path opens the Job Manager dialog (shown in Figure 80); the button on the toolbar performs the same function.
This window displays all the jobs started by GaussView that are currently running. Note that only jobs started during the current session of GaussView can be displayed. Examples of jobs that may be displayed are Gaussian jobs submitted from the Gaussian dialog box, Gaussian input file edit sessions launched from GaussView, CubeGen processes for building surfaces for display, FreqChk processes to generate vibrational analysis data, and/or processes from other Gaussian utilities.
Figure 80. The Job Manager Dialog
Clicking on the
button displays the current GaussView job log containing system messages associated with the execution of GaussView external processes. The button in the resulting window removes old jobs from the job list, and the button dismisses the job list window.Note that the
button does not display the log file associated with a running Gaussian job. The latter is accomplished by the button for Gaussian calculations. Note that selecting this button for job types (e.g., cube generation jobs) will display whatever file GaussView can find that is associated with the job (often the Gaussian input file).Individual jobs may be aborted using the
button.Specifying How the Gaussian Program is Executed
The Job Setup Preferences dialog allows you to examine and customize how Gaussian and its utilities are launched from within GaussView. It is illustrated in Figure 81. The Application field at the top of the panel specifies the program or utility whose execution method is currently displayed. Below this popup, there are three launch choices, and the command line associated with the selected launch method is displayed in the Command Line area (where it can also be modified).
For each job type, there are three launch choices:
Figure 81. Job Setup Preferences
The following figure illustrates the command line and other information displayed for running the Gaussian program using the second launch choice:
Figure 82. Running Gaussian via a Script
GaussView provides the following scripts in its bin subdirectory:
Menu Item |
Linux/UNIX |
Windows |
Mac OS X |
Gaussian |
gv_gxx.csh |
gv_gxx.bat |
gv_gxx.csh |
Cubegen |
gv_cubegen.csh |
gv_cubegen.bat |
gv_cubegen.csh |
Cubman |
gv_cubman.csh |
gv_cubman.bat |
gv_cubman.csh |
FormChk |
gv_formchk.csh |
gv_formchk.bat |
gv_formchk.csh |
FreqChk |
gv_freqchk.csh |
gv_freqchk.bat |
gv_freqchk.csh |
Gaussian Help |
gv_gaussianhelp.csh |
gv_gaussianhelp.bat |
gv_gaussianhelp_mac.csh |
File Editor |
gv_fileeditor.csh |
gv_fileeditor.bat |
gv_fileeditor_mac.csh |
Each script’s usage is documented in comments at the beginning of the file. Prudence dictates making a backup copy of any script before modifying it in any way. Note that all standard UNIX scripts are also provided on Mac OS X systems for your convenience.
You can specify a custom command line for external jobs using the third choice in the Job Setup Preferences dialog. However, successfully using this feature depends on a clear understanding of the command line invocation of Gaussian and its utilities under the current operating system. Consult the Gaussian 09 User’s Reference for details.
The following GaussView internal variables can be used within commands. Note that they are not operating system environment variables, despite their resemblance to them in naming conventions.
Parameter |
Meaning |
$GEXE |
Path to the Gaussian executable (UNIX) |
$GEXE_WIN |
Path to Gaussian executable (Windows) |
$CUBEGEN |
Path to the CubeGen executable |
$FORMCHK |
Path to the FormChk executable |
$FREQCHK |
Path to the FreqChk executable |
$MM |
Path to the Gaussian MM executable |
$WORDPAD |
Path to Wordpad (Windows) |
$NEDIT |
Path to UNIX editor |
$GHELP |
Path to the GHelp executable |
$utilname_SCRIPT |
Path to the script for the specified utility |
$INFILE |
Gaussian input file |
$OUTFILE |
Gaussian or utility output file |
$KIND |
Type of cube for CubeGen |
$NPTS |
Cube density for CubeGen |
$HEADER |
CubeGen header flag |