Saturday, September 6, 2014

Four Practical Comments Regarding RHF Calculations

1. If the program you use to perform a geometry optimization at the HF level complains of convergence problems, the first step is to determine whether it is the geometry optimization that failed to converge (i.e. the program could not find a geometry with a low gradient given a certain number of steps) or whether it is the SCF-procedure at a particular geometry that failed to converge (i.e. the program could not find a set or orbitals that have stopped changing given a certain number of steps). It is my experience that if the SCF does not converge in the default number of steps, then simply increasing the allowed number of SCF steps does not solve the problem. The problem is usually either in the initial guess orbitals or there is an error in the molecular structure.

2. Most quantum chemistry programs will have RHF as the default method, which implies a singlet wave function. So if you provide the program with a molecule that has an odd number of electrons (e.g. NH4) the program will complain that it cannot do a singlet calculation on a molecule with an odd number of electrons, and asks you to change either the charge or the multiplicity, i.e. to specify whether you want to do an UHF or ROHF calculation on the doublet state of the NH4 radical, or whether you meant to do a singlet RHF calculation on NH4+. You will get very different results depending on your choice, so the object here is not to use trial and error to find a combination of charge and multiplicity that satisfies the program. Rather you have to decide what makes sense chemically, before you do the calculation.

3. Once you have defined the position of the nuclei and the number of electrons (by specifying the overall charge of the molecule) the SCF procedure does the rest. Therefore, you don’t have to specify that the positive charge “is on the NH3 group” in CH3NH3+. Each orbital has access to all the basis functions in the molecule and the electrons generally “go where they want”. Also, changing the CN bond to a double bond in a graphics program does not affect the result (as long as the CN bond length is the same).

4. This should be obvious, but just in case. It makes no sense to compare the total energy (E) of two molecules (or collection of molecules) that have a different number and kinds of atoms. For example, substituting a hydrogen atom in a molecule with a methyl group will lead to a considerable lowering of the RHF energy. Most of this energy lowering will some from the electron-nuclear attraction energy of the electron in the 1s orbital of the C atom, but says nothing about the relative stability of the two molecules. In the Introduction to Molecular Modeling course I used to teach, I used to subtract 20 points (out of a hundred) for such a comparison in a laboratory report

Tuesday, September 2, 2014

Computational Chemistry Highlights: August issue

The August issue of Computational Chemistry Highlights is out.

CCH is an overlay journal that identifies the most important papers in computational and theoretical chemistry published in the last 1-2 years. CCH is not affiliated with any publisher: it is a free resource run by scientists for scientists. You can read more about it here.

Table of content for this issue features contributions from CCH editors Steven Bachrach, David Bowler, Mario Barbatti, and Jan Jensen:

Interactive Chemical Reactivity Exploration





Saturday, August 9, 2014

Eight practical comments regarding geometry optimizations.

 1. An energy minimization can stop either because a stationary point is found or the program ran out of steps. It’s important that you know why it stopped. If it ran out of steps you have to do another energy minimization starting with the geometry that has the lowest energy. This is not always the last geometry!

2. Larger molecules will require more steps to reach a minimum than smaller molecules. The relationship is roughly linear, so if you double the size of the molecules you will probably take at least twice as many steps, and maybe more. The reason is that each step explores one degree of freedom the molecules, all degrees of freedom must be explored to find the minimum (unless you get lucky), and the number of degrees of freedom increases linearly with the number of atoms (3N-6). This is not quite true for Newton-Raphson energy minimizations if the Hessian is computed, but this is rarely done in practice (see point 5).

3. Floppy molecules with relative flat PESs require more steps than rigid molecules, e.g. a linear hydrocarbon takes longer to optimize than the corresponding cyclic structure. The reason is that flat surfaces mean small gradients and therefore small steps. Also, flat surfaces tend to be non-quadratic so the Newton-Raphson steps have to be scaled back.

4. It is sometimes more efficient to use internal coordinates (bond lengths and angles) for the optimization than Cartesian coordinates, since internal coordinates are more quadratic than Cartesian coordinates. However, if the molecule has many fused rings it might be better to use Cartesians coordinates because of linear-dependence issues.

5. For Newton-Raphson minimizations the Hessian is usually estimated rather than computed exactly because it is expensive to calculate. Attempts are usually made to improve or update the Hessian after each step. So, if you run 50 Newton-Raphson steps from an initial geometry, take the last geometry as the new guess, and run another 50 Newton-Raphson steps you will take a different path towards the minimum than if you run 100 Newton-Raphson steps from the initial geometry. This is because you start with a new guess at the Hessian in step “51” in the first approach. This usually works better in my experience.

6. If you want to find a transition state you must use the Newton-Raphson method, since only the Hessian can tell you in which direction you have to go uphill (the direction is defined by the normal mode corresponding to the imaginary frequency). For the same reason you must compute the Hessian for the initial guess geometry of your transition state.

7. For molecules with more than ~1000 atoms the algorithm needed to invert the Hessian (i.e. produce the inverse of H) becomes very expensive, so steepest descent or conjugate gradient methods are usually used to energy minimize such big molecules.

8. If your starting geometry for ammonium is planar (e.g. in the xy plane), it will stay planar. The reason for this is that the gradient perpendicular to the plane is zero because of symmetry. In essence there is two opposing ways of making ammonia non-planar and the net effect is a cancellation of the force out-of-the plane. Notice that the gradient components in the x and y directions are small (below the optimization threshold) but non-zero, while the gradient in the z-direction is exactly zero. Of course, a zero gradient means no displacement in the out-of-plane direction and ammonia stays planar during the energy minimization.

More generally, the molecule will retain the symmetry of the starting guess structure during the minimization, whether that symmetry corresponds to an energy minimum or not.

Monday, June 2, 2014