Adding A New Basis Set
Freezing A Parameter
Setting Up A Batch File
Dealing with Negative Frequencies
Inexpensive Integrals
Geometry Optimizations
How To Produce A Potential Energy Surface
How To Get A Good Guess for FC
To Add Extra Basis Functions To Only Certain Specified Atoms
Using freqchk
Visualising Molecular Orbitals and Potential Energy Surfaces.
Other Useful Things
Some Things That You Really Should Do Before You Start!
Before you start to use Gaussian 98 there are just a few things you should do to try to minimize problems later on.
- Using Windows Explorer, left click on the G98W directory. If G98W is installed in drive C then you should see seven folders, these are;
- data
- examples
- exercise
- help
- quick
- scratch
- tests
- You should save all your work files into the 'Scratch' directory, doing this means that the programme knows where they are. At the end of a successful job you can then move your files into a folder of your choice.
- Don't put spaces in file names or folders as your computer will get lost!
- If a job crashes or if you kill it manually then some files are left behind in the Scratch directory - these all start with the letters 'gxx.'. For example, there will be a file that is named gxx.rwf. These left-over files can take up a lot of space and you can safely delete them. When a job finishes successfully then these files are automatically deleted by G98W.
- When you run a job you will find that you have created three different types of file, these are;
- the *.gjf file - this is the file that you created by drawing the molecule and setting up the calculation.
- the *.log file (or *.out file) - this contains all the results and shows the progress of the calculation. You can see an updated log file during the course of a calculation by opening Gaussview, file, open, navigate to the Scratch directory (where you have saved your files!!) and double click on *.log file with the appropriate name. This opens a Gaussview window with your molecule in it, so go to 'results', 'view file' to see how the job is progressing.
- the *.chk file - this is the most extensive file; it contains all of the detailed electronic information about the molecule and the information that the computer needs to perform different tasks. It is important to save this file, you can use it to restart jobs, visualize MO's as well as using it as the input for a second calculation. This file cannot be read by opening it in WordPad or other such programmes, you open it using Gaussview.
The key message here is; ALWAYS save the checkpoint file! The default in G98W is not to save this file, so you have to actively tell the programme to save it. In the calculation setup box there is a small window called 'Link 0 Commands'. Make sure that you put the file name beside '%chk=', otherwise the .chk file will not be saved.
Getting Rid Of The Error Message When Opening Gaussview
GaussViewW (GVW) was released before Windows 2000 and there is a minor change in the Windows Registry entry for WordPad so that GVW cannot locate it. There are two options, live with the error and modify a GVW script or, two, modify the registry so that GVW can locate WordPad. Both work but if you are uncomfortable modifying the registry the first is safer.
Option 2
Use the RegEdit utility in Windows to locate the entry for word pad,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppPaths\WORDPAD.EXE
and change the type from REG_EXPAND_SZ to REG_SZ. Then the string
"%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE"
must be modified and %ProgramFiles% replaced by the actual path to the WindowsNT directory. Exit RegEdit and GVW should then locate WordPad correctly. As should other applications.
Adding A New Basis Set
When adding a new basis set you should only include definitions for atoms that are actually in the molecule.
For G98W
- Draw molecule as normal - using gaussview
- Select 'Gaussian' on the 'calculate' menu
- Select your usual parameters in the calculation setup dialog box, but select a 'blank' for the basis set.
- In the 'additional keywords' box type in the model chemistry together with the keyword gen, e.g. rb3lyp/gen
- Click on edit, you'll be asked to save the file first.
- Add the text for the new basis set in the 'molecule specification' box at the end of the existing text - leave a blank line between the sets of text. Check that the route section is correct, there may be two instances of the model chemistry. Save
- Click okay
- Submit
For G98 Linux
- Draw molecule as normal - using gaussview
- Select 'Gaussian' on the 'calculate' menu
- Select the usual parameters in the calculation setup dialog box, but select a 'blank' for the basis set.
- In the 'additional keywords' box type in the model chemistry together with the keyword gen, e.g. rb3lyp/gen
- Click 'edit' then go to the bottom of the existing text and place the cursor there. Then select 'include file' from the 'file' menu and navigate to the new basis set, select it - it will be added to the input file - remove the '!' symbol and do not leave a blank line between text. Make sure that in the route section there is only one instance of the model chemistry. Save
- Click okay
- Submit
It's also a good idea to add the keyword "gfinput" as this will echo the basis set in the output and therefore you can compare to what you are trying to include, to make sure that everything was read in correctly.
Freezing A Parameter
- Draw molecule as normal - using gaussview
- Select 'Gaussian' on the 'calculate' menu
- Select the usual parameters in the calculation setup dialog box
- In the 'additional keywords' box type 'opt=modredundant'
- Click edit
- At the end of the geometry specification type the parameter that you want to freeze, e.g. for a dihedral angle it could be '1 2 3 4 165. F' 165 is the angle that you want to freeze it at (don't forget the full stop!). G98 knows it is a dihedral as there are 4 atoms specified. Do this for each parameter that you want to freeze - do each on a new line with no blank lines between them. Make sure that you leave a blank line between the sets of text i.e. the geometry specification and any other text that was there beforehand. Save
- Then click okay
- Submit
Choosing a dihedral value very different from the input geometry can cause problems (Gaussian will crash and tell you that 'it couldn't resolve a coordinate'). If this happens, it might be better to try the option of doing a relaxed potential energy surface scan. Essentially this is the same as doing optimizations at a series of frozen values of a given coordinate. For example, replacing "1 2 3 4 165. F" with "1 2 3 4 180. S 15 -5." would do 15 geometry optimizations. The first optimization with the dihedral at 180, then 175, etc in increments of -5 degrees. A summary of the scan is placed at the end of the log file.
Setting Up A Batch File
Lets say that you have four different calculations that you want to perform, they will be named test1, test2, test3 and test4. Set up the calculations as would like them to be performed, but when you get to the final 'submit' box you can cancel the calculation. You will now have four .gjf files with the appropriate names.
- Open G98W and click on 'utilities', 'edit batch file', a dialogue box opens.
- Click on 'add'.
- Type in your first filename test1.gjf, (make sure that you include the file extension .gjf as otherwise you will get an error message later) click 'ok'.
- G98W suggests the appropriately named *.out file name, click 'ok'.
- Click 'add' and repeat the procedure for each of your four files.
- When all you files have been entered, click on 'file', 'save as' and name your batch file e.g. 'myname' and click 'ok' (save your batch file, which has the extension *.bcf, in the same directory as the *.gjf files).
- Click on 'exit'.
- On the main G98W window click 'file', 'open' and navigate to the location of your .bcf file.
- Double click on this and then click 'exit' again.
- On the main G98W window click 'process', 'begin processing' and your batch file will start.
Note that if a calculation crashes, the process will not move on to the next job in the list automatically. By default, when an error occurs the batch file will stop completely. You can change this behavior by clicking on 'file' in the main G98W window, then 'preferences', 'process' and remove the check from the box ' end batch run on error'. This still does not allow the calculation to move on automatically but at least the batch file stays active and once you notice the error you can move on to the next job with a single click. For this reason it's probably best to set the order of the jobs so that the riskiest one is performed last. For instance, you may have performed optimizations on three molecules and need to run frequency calculations on them overnight, but you also have one job where you need to do both an optimization and a frequency job. The three calculations that consist of only one step should be set as the first three jobs in the batch, with the last one (which may crash and not optimize) set as the last job.
Dealing With Negative Frequencies
Use Gaussview to animate the negative frequency. Now you can see what is happening and how the atoms are moving. Very often it is a simple methyl rotation or the like. Then make a guess for where the minimum is for that imaginary frequency and optimise from there.
The grid may too coarse; the default grid is 'fine', to specify a finer grid use the keyword 'Integral(grid=ultrafine)'
You may need to use a different algorithm e.g. GDIIS instead of RFO.
Inexpensive Integrals
The message/warning from Gaussian reads
"Problem detected with inexpensive integrals. Switching to full accuracy and repeating last cycle."
The warning relates to convergence of the wavefunction. This is not an error message because this message only indicates that the program is switching to a more accurate integral evaluation. During the initial stages of direct scf, integrals are calculated with pretty loose tolerances and cut-offs to speed things up. However, this can lead to problems sometimes. Gaussian detects this and tightens up the integral evaluation if necessary. So the program just tells you that the cheap way of doing it didn't work and that it is therefore switching to the more accurate (but more time-consuming) method. This happens often. It is possible that the geometry optimization took a bad step, or maybe it is the first point of the optimization. The problem is probably related to the geometry, if the geometry looks reasonable you could try using "scf=NoVarAcc" which uses the full accuracy integrals from the beginning or use "scf=qc". "scf=qc" will almost certainly converge, but it takes a bit longer than the standard scf convergence method.
Geometry Optimisations
It is often assumed that, given the same starting geometry, then any program that has a choice as to how the geometry is entered should (in the end) produce the same optimised final geometry. If all calculations were done to infinite precision and all geometry optimisations were continued until the forces were exactly zero, and all optimisations used analytic first AND SECOND derivatives then optimisations starting from the same structure but using different coordinate systems would go to exactly the same place. In fact, because of differences in the Hessians, two optimisations with different coordinates started at the same point far from any minimum might fall down into different wells and to different minima. (This will not be the case if the two optimisations use analytic rather than approximated second derivatives at every point -- then every step should be the same regardless of coordinate system.) All of these considerations apply to comparing Cartesian with Internal coordinates and also to comparing two different sets of Internal coordinates.
How To Produce A Potential Energy Surface
Start with the .log file for the optimised molecule
- Go to 'view', 'show labels' and then 'view', 'z-matrix editor'.
- Select 'opt none' and all numbers in Opt columns will become 0
- Find the dihedrals that you want to vary and type 1 in opt3 column. Make sure that the carbons and hydrogens etc. are connected in the correct way, see diagram below;

Original z-matrix.

New z-matrix.
- In the main window select 'calculate', 'gaussian' and then 'scan'. Select model chemistry and basis set as normal, on warning select OK. If symmetry will break during scan process then check the 'ignore symm' box.
- Edit - then check that all variables are frozen except for the ones that you want to vary, i.e. D1, D2. Find these at the bottom of the molecular specification, then; D1 180. 18 -10. 18 = how many steps, -10. = size of each step and which direction. Do the same for D2. Don't forget the 'full stops'.
Save, close, submit.