Wednesday, March 31, 2010

Canonical and localized molecular orbitals


Figure 4.10. 0.045 au isosurfaces of the four valence canonical MOs of NH3 computed using B3LYP/6-31G(d). A value of 0.045 au is chosen because it results in a 0.002 au isodensity surface when squared.
From Molecular Modeling Basics CRC Press, May 2010.
Click on the picture for an interactive version

According to Valence Shell Electron Pair Repulsion (VSEPR) theory many bond angles involving elements such as C, N, and O are close to 109.5o because the four valence electron pairs that surround these atoms adopt a tetrahedral geometry to minimize repulsion. In the case of CH4 the H-C-H angle is exactly 109.5o because the repulsion between the four electron pairs in the C-H bonds are identical. NH3 has a lone pair that is fatter than a bond near the nucleus, so the lone pair-bond repulsion is slightly larger than the bond-bond repulsion. This results in a H-N-H angle of 107o, slightly smaller than 109.5o.

However, this is far from obvious when looking at the four valence MOs of NH3 (Figure 4.10) computed using B3LYP/6-31G(d). The reason is that that MOs are not unique, and that these MOs (which lead to a diagonal Fock matrix and are known as canonical MOs) are not the MOs where the electron pair repulsion is a minimum. Algorithms have been implemented that find a new set of MOs (localized MOs or LMOs) that represent a linear combination of canonical MOs for which the MO–MO repulsion is a minimum (Figure 4.11).


Figure 4.11. 0.045 au isosurfaces of the four valence localized MOs of NH3 computed using B3LYP/6-31G(d). There are three N–H bond LMOs [(a)–(c)] and one lone pair LMO [(d)].
From Molecular Modeling Basics CRC Press, May 2010.
Click on the picture for an interactive version

LMOs for which the inter-orbital repulsion is a minimum are called energy localized orbitals or Edmiston-Ruedenberg orbitals. Other popular choices are Foster-Boys and Pipek-Mezey LMOs, which use different localization criteria.

Using MacMolPlt
The screencast below shows how to compute Ruedenberg LMOs for ammonia using GAMESS (local=ruednbrg in the $contrl group), and how to display the LMOs, as well as the canonical MOs, in MacMolPlt. I also show how to identify the HOMO and LUMO canonical MOs in MacMolPlt.

Note that I specify a geometry optimization in the GAMESS input file. GAMESS will only compute the LMOs for the optimized geometry.




Using Jmol
I use Jmol for the interactive figures and the scripts can be found here and here. Unlike the density and electrostatic potential, Jmol can generate its own grid data, so to display MO number 2 you simply use "mo 2" in the script. I use
mo 2; mo cutoff 0.045; mo fill nomesh; mo translucent 0.2
to make it a little prettier.

Jmol cannot find the MOs in a GAMESS geometry optimization file, and Jmol only stores the LMOs if present. So to display the canonical MOs with Jmol you need a single point energy calculation (output file) and to display the LMOs with Jmol you need a single point energy calculation with local=ruednberg added (output file).

Wednesday, March 17, 2010

Shameless book promotion

Things are happening on the book front. A snappy cover (at the top of the blog) and now a promotional flyer - with table of content - which can be downloaded here. The book should be out May 10, complete with non-interactive black-and-white versions of many of the figures found in this blog.
75268 _745DC
75268 _745DC2

Sunday, March 14, 2010

Illustrating Entropy


This screencast shows some Molecular Workbench models I made to illustrate entropy.

In the first model a monatomic gas consisting of 100 particles are initially restricted to the left container, but when the separator is removed the gas expands to fill both containers evenly, on average.

The temperature is held constant during the simulation, so the internal energy (which equal to the temperature times a constant) stays constant. The driving force behind the expansion is therefore purely entropic.

Using two simpler cases with two and three particles, I show that the probability of having NL particles (out of N total) on the left is

where W is the weight or the number of equivalent combinations of particles in two containers. The screencast goes on to show that W is largest when the gas is evenly distributed between the two containers, so that is what happens when the separator is removed because that is the most probable thing to happen.

For N particles and two containers the number of combinations if there are NL particles in the left container is

(as explained here and here).

As in the simpler cases, the most likely state for 100 particles is an equal distribution of particles among the two containers (NL = 50). The main difference between 3 and 100 particles is that in the former case you'll occasionally (2/8 or 25 % of the time) see all particles in one container, whereas for 100 particles you'll never (2 x 10-28 % of the time) see all particles in one container.

Entropy, S, is defined as

where kB is Boltzmann's constant. This function is largest when W is largest, so one can say that the gas expands to maximize its entropy, but it's a bit like saying the gas expands because that is the most probable.

The change in entropy is

which can be approximated using the more usual equation for the entropy change upon doubling the volume of an ideal gas while keeping the temperature constant

(The latter equation becomes more accurate as the number of particles increase, because it relies on Stirling's approximation).

The model is too wide to fit in this blog but you can play around with it on this web page, or you can download the model if you have Molecular Workbench installed on your computer. Enjoy!

Related blog posts
Where does the ln come from in S = k ln(W)?
Entropy, volume, and temperature

Wednesday, March 3, 2010

Internal energy and molecular motion


This screencast shows a Molecular Workbench model I made to illustrate the connection between internal energy and molecular motion (the model is included at the bottom of the post).

For a monatomic gas such as He or Ar the part of the internal energy (U) that depends on temperature (T) is
and has only contributions from translational motion. Kinetic theory tells us that
which, with a little algebra, gives us a direct connection between the internal energy and the average kinetic energy of the atoms in the gas:
You can see in the first container that while the internal energy reflects an average speed, the individual atoms can have very different speeds, which are constantly changing due to collisions. This can be illustrated by coloring the atoms according to the kinetic energies (red means more kinetic energy).

Increasing the temperature increases the internal energy and this is reflected in an increase in the average speed, as you can see by clicking on the "Increase T" button.

However, it is important to remember that the internal energy is a reflection of the kinetic energy, which is also a reflection of the mass. Thus, a heavier atoms will have the same internal energy and kinetic energy at the same temperature, but the atoms will move slower on average (the "Increase M" button).

Also, the internal energy can be increase by adding more particles, but this does not change the average speed of the molecules at the same temperature (the "Increase n" button).

The last ("Diatomic") button changes the atoms to diatomic molecules without changing the mass, i.e. the mass of the atoms in the second container are half that of the atoms in the first container. Because the mass is unchanged the average speed of the molecules (more precisely, of their center of mass) is the same as for the atomic gas at the same temperature, as is the translational internal energy (3/2nRT ).

However, notice that the molecules are also rotating, meaning they have additional (internal) energy compared to the atomic gas, which amounts to nRT (3/2nRT for non linear molecules):
The internal energy also has a vibrational contribution (here the frequency is converted to a wavenumber, i.e. units of cm-1):
though it is hard to make out the vibrational motion in the simulation. However, for most diatomic molecules this contribution is negligible at temperatures relevant to most chemists.

You can play around with the model yourself by clicking on the picture below, or on this web page, or you can download the model if you have Molecular Workbench installed on your computer. Enjoy!


Saturday, February 20, 2010

Ionic and metallic bonding

fig4-7new

Figure 4.7. 0.0005 au isodensity surface with superimposed electrostatic potential of (a) H–Li, (b) Li, (c) Li2. The maximum potential value is 0.05 au, and the level of theory is B3LYP/6-31G(d).
From Molecular Modeling Basics CRC Press, May 2010.

Figure 4.7 highlights two other kinds of bonds. Note the decrease in the size of the Li atom (and the large positive charge) compared to the Li atom in Li–H. LiH is best thought of as Li+H- (i.e., the bonding electron pair belongs to H- rather than being shared), which is an example of ionic bonding.

Here is an interactive version of Figure 4.7a where the atomic densities of H and Li are superimposed on the density of H-Li.

Click on the picture for an interactive version

Li2 is more polar than H2: more positive at the ends and more negative in the middle, indicating the a larger rearrangement of electron density upon binding compared to H2. Here is an interactive version (the corresponding Jmol script can be found here; see this post on making plots like this), where I have superimposed the electron densities of the Li atoms and Li2:

Click on the picture for an interactive version

Looking deeper into the density (by using a larger, 0.01 au, isodensity value) reveals a density rearrangement that is quite different from H2:

Click on the picture for an interactive version

Here you can see strong localization of electron density between the nuclei, indicating that Li2 is best thought of as Li+:Li+, where ":" indicates an electron pair. This is an example of metallic bonding.

Both ionic and metallic bonding are distinctly different from covalent bonding, in that only covalent bonding leads to the formation of distinct molecules, while ionic and metallic bonding leads to formation of crystals.

To demonstrate this, find the lowest energy structures of H4, Li4, and Li2H2, using, for example, B3LYP/6-31G(d). Go ahead, I'll wait.

Why do I use a different isodensity value for this plot?
I usually use a 0.002 au isodensity surface, but in Figure 4.7 I use 0.0005. This is something I didn't discuss in the book but should have. When I made the plot of the 0.002 au isodensity surface with superimposed electrostatic potential of Li atom, I discovered that is was very blue, i.e. quite positive (go ahead, try it for yourself). I only got a neutral-looking atom when I went down to 0.0005 aus, which is what I have used for the figures (unless otherwise noted).

The positive electrostatic potential on the 0.002 au isodensity surface of Li indicates that a significant amount of density is found outside this surface, which is clearly not the case of the H atom, as shown in a previous post. This, in turn, indicates that the Li electron density decreases more slowly with distance compared to H, which makes sense since Li is much less electronegative than H. Thus, the 0.002 au isodensity surface is a reflection of the van der Waals surface of organic molecules (containing electronegative elements) but not alkali metals.

Thursday, February 18, 2010

Covalent bonding

fig4-5
Figure 4.5. 0.002 au isodensity surface with superimposed electrostatic potential of (a) H2 and (b) H atom. The maximum potential value is 0.05 au, and the level of theory is B3LYP/6-31G(d).
From Molecular Modeling Basics CRC Press, May 2010.

If we look at the electron density of H2 (Figure 4.5a), we can clearly see that at this separation the electron densities of the two H atoms have fused indicating electron sharing, a hallmark of covalent bonding. Here is an interactive version (the corresponding Jmol script can be found here; see this post on making plots like this), where I have superimposed the electron densities of the H atoms and H2:

Click on the picture for an interactive version

What you can't see in this picture is that the electron density has rearranged significantly between the nuclei, which is the source of the bond strength. To see this we need to look at a larger isodensity value (here 0.075 au):

Click on the picture for an interactive version

Tuesday, February 16, 2010

One, two, three, MD

Some exciting developments over at the Molecular Workbench (MW) blog run by MW author Charles Xie. I have several blog posts on MW, but it was necessary to install MW to check it out for yourself. Now it is possible to embed a MW applet in web pages (and blog posts!) like the one here (just push the play button!):
I think this is a big step forward for MW. While it is easy to download and install MW, it still removed MW a few clicks from the user and made it "appear to be yet another kind of annoying pop-up" and Charles notes. It's very easy to do this. The screencast below shows how I made the simulation above in MW. Note that it literally takes one minute (and 5 seconds). When you hit save you get two files: md.cml and md$0.mml. I transferred these to my web server where I had also put the MW applet (mwapplet.jar). The html code is <applet code="org.concord.modeler.MwApplet" archive="mwapplet.jar" height="300" width="100%"><param name="script" value="page:0:import md.cml"></applet> To include it in a blog, where mwapplet.jar is not installed, add the server address in front of mwapplet.jar and md.cml, e.g. http://myserver.edu/md.cml.