Viewing and Understanding your Optimised NH3 output
- Your *.log file should be open, but if you have closed it you can open it again by choosing "File and open" in gaussview. Navigate to your 1styearlab folder and open your log file.
- What if you cannot find the *.log file from inside gaussview? The file should be there however, sometimes silly microsoft does not give the .log extension. So navigate from the desktop of your PC to find the file you think is the *.log file (in your folder) and click on it choosing open in gaussview. If this doesn't work or you cannot find the file ask the demonstrator they will help you!
- To obtain general information about the job click on the results tab at the top and choose "Summary". This will open a window that lists important information about your calculation.
- The summary contains information which is important when writing reports or papers that include theoretical results. This kind of information is equivalent to recording the concentration of your reactants or the temperature of your reflux etc. For every molecule you study, the following key information should be in your lab report (other items in the table are not necessary):
- What is the molecule?
- What is the calculation method?
- What is the basis set?
- What is the final energy E(RB3LYP) in atomic units (au)?
- What is the RMS gradient?
- What is the point group of your molecule?
- Recording energies is something students often have trouble with. For each molecule you need to record the total energy to 0.1 kJ/mol. 1au ≈ 2625.5 kJ/mol, so you should record your total energy to at least 5 decimal places! Total energies are always given in au while relative energies are given in kJ/mol.
- Find out some geometric information
- on the commands palette click on the button with a question-mark in front of a ruler. This is the inquiry button and will tell you bond distances if you click on two atoms, and bond angles if you click on three atoms
- use the inquiry button to determine your optimised O-H bond distance and the optimised H-O-H bond angle, record this information in your lab report
- bond distances are accurate to 0.0001 angstrom and bond angles are accurate to 1 degree.
- some important conceptual things to know about how the various programs integrate.
- Gaussian "runs" the jobs (ie does all the number crunching)
- Gaussview is a separate program which is used to create and edit files used by Gaussian.
- When you submit a job you or Gaussview makes a *.gjf file and when you look at the output you or Gaussview is looking at a *.log file
- Gaussian also makes a third file, where it stores information in a "machine only readable format" these are called checkpoint files and have the file extension *.chk file. Sometimes we will also use Gaussview to process information in the *.chk file for us to view graphically, like the molecular orbitals.
- Gaussian is a sophisticated program, not for general use, it has to carry out some very complex procedures, and this means it does not do a robust "check" of your input, if you make a mistake in the input Gaussian will not always "catch" the error. You should always check and check again your input if a job fails or even if a job seems to complete normally there may still be a problem!
- Thus, it is very important for us to check that you have actually optimised the molecule, one way of doing this is to check the gradient. The gradient should be close to zero, ie is it less than 0.0005? A number larger than this means the optimisation is not complete, and you should ask a demonstrator to help you.
- Now we are going to look at the "real" output, the file that Gaussian generates. This is a purely text based file, Gaussview is an interface that takes information from this file and presents it to you graphically. Sometimes we want information that Gaussview cannot process and so we must look directly at the file output by the program Gaussian. This also allows us to double check the job has optimised successfully
- There is more than one way to access this file, you can click on the "view file" button in the summary (see above), or you can click on the results tab at the top and choose "View File ..."
- In both cases a separate window should open, this is the "real" text based *.log file. Scroll through the file, if you are interested get a demonstrator to tell you more about the contents.
- Now check that your job has really converged, go to the end of the file and move backwards until you find the final set of forces and displacements, it should look something like this:
Item Value Threshold Converged? Maximum Force 0.000005 0.000450 YES RMS Force 0.000003 0.000300 YES Maximum Displacement 0.000012 0.001800 YES RMS Displacement 0.000008 0.001200 YES Predicted change in Energy=-9.075171D-11 Optimization completed. -- Stationary point found. ---------------------------- ! Optimized Parameters ! ! (Angstroms and Degrees) ! -------------------------- -------------------------- ! Name Definition Value Derivative Info. ! -------------------------------------------------------------------------------- ! R1 R(1,2) 1.018 -DE/DX = 0.0 ! ! R2 R(1,3) 1.018 -DE/DX = 0.0 ! ! R3 R(1,4) 1.018 -DE/DX = 0.0 ! ! A1 A(2,1,3) 105.7463 -DE/DX = 0.0 ! ! A2 A(2,1,4) 105.7463 -DE/DX = 0.0 ! ! A3 A(3,1,4) 105.7463 -DE/DX = 0.0 ! ! D1 D(2,1,4,3) -111.867 -DE/DX = 0.0 ! -------------------------------------------------------------------------------- GradGradGradGradGradGradGradGradGradGradGradGradGradGradGradGradGradGrad
- the important information is in the part below "Item" this tells us that the forces are converged. Remember force is the gradient or slope of the energy vs distance graph, and we are at a minimum when the slope is zero. A system is in equilibrium when there are no forces acting on it, when the forces are zero. So we are looking for a slope or force that is zero.
- The computer never gets to exactly zero because of rounding errors, so we apply a threshold, in this case the Maximum Force on any atom should not exceed 0.00045 au, and the average (RMS) force should not exceed 0.0003 au.
- This table of data also tells us that the displacements are converged, this means that for a small displacement (movement of the atoms) the energy does not change (within a certain very small amount).
- You should always check the Item section of your output at the end of an optimisation, even if gaussview says the job finished properly. All of my students keep a "log book" of their calculations and are required to add a copy and paste of the "Item" table of converged forces and distances in it.
- Include the "Item" table in your lab report for every molecule that you study.
- Information from a calculation is physically meaningful ONLY if the molecule is optimised. Thus optimisation is always the first step to examining the structure and electronic distribution (bonding) within a molecule.
You now have an optimised geometry and can analyse your molecule further
- When you are ready close the text file AND the molecule window and move onto the next step