Skip to content

Avogadro: New Orbital Support and Gaussian Cube Format

So over the weekend I spent quite a lot of time hacking away at OpenBabel working on the Gaussian cube format support I needed to get working in order to be able to visualise electronic orbitals. The initial support was taken from Molekel but contained no error checking and it was not reading in the example cube file I had.

Thankfully a colleague pointed out a page with details on the Gaussian cube format and I used this as a basis to get it working in OpenBabel with better error checking and a more resilient tokenisation of the cube points. I made my first few commits to OpenBabel over the weekend and got at least simple Gaussian cube files loading that only contain one cube. More will follow I am sure.

Benzene HOMO orbitals visualised in Avogadro

After I got the file loading sorted a few more changes to Avogadro got me my first ever orbitals in Avogadro - the benzene HOMO! I believe the cube file came from the JMol test files. Geoff informed me that chemists for some reason see positive as blue and negative as red. That seemed very strange to me and I had initially put it the other way around. Growing up playing with electronics it seemed to me that positive should be red just as the wires in a circuit have a red positive... Other than that orbitals seemed to be working well and I was very pleased.

CH3Cl electrostatic potential visualised in Avogadro

Next I started to load up some other cube files I had been given as examples. I thought the above image of the electrostatic potential of CH3Cl looked very nice. When I showed Geoff he also liked it and we wondered if it had been visualised in this way before. I know normally the cube would be mapped onto the Van der Waals surface of a molecule.

Anyway I was pleased and also felt more productive as I now have my laptop back up and running and am developing on Gentoo again. It would be great to hear what other people think of this new support. I am already working on various improvements to the code and getting ready for another release of Avogadro!

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

Geoff on :

GeoffIt's probably worth a quick explanation of the bottom figure. The blue color indicates positive charge (i.e., near the atomic centers themselves, and away from the chlorine electrons).

The interesting thing about this particular rendering is that it shows the negative charge typically associated with a chlorine atom is around the outside of the Cl. Closer in, there's actually positive charge.

This could be an interesting view for more complicated molecules (e.g., with several areas of overlapping +/- charge).

Goes to show... sometimes little experiments can turn out really cool.

josh on :

joshGreat work there! I am really looking forward to a stable release of Avogadro, would be awesome!

josh on :

joshthis free pdf may be of interest;
http://www.fz-juelich.de/nic-series/volume25/volume25.html

its on high performance computational chemistry and the algorithms used in it.

Benoit Jacob on :

Benoit JacobGreat work, Marcus, I'm so pleased to see you and the others continuing making Avogadro better and better! I have no clue in chemistry but these image sure look cool and I can see that they are very helpful.

Donnie Berkholz on :

Donnie BerkholzLooks nice, Marcus. I've seen some pretty sweet images from Spartan showing HOMO/LUMO simultaneous with ESP, where the ESP was sort of a floating bubble farther out (presumably with some sort of minimum threshold for display). I could dig up the reference if that would help. It was some paper doing calculations on flavin, and the enzyme was something like NADH:quinone reductase.

Marcus D. Hanwell on :

Marcus D. HanwellHi Donnie - that would certainly be interesting to take a look at if you get the chance to dig it up. We are experimenting with various ways of visualising structure and it is certainly very helpful to see novel methods used by other people/programs already. Hope you like the new release :-)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA 1CAPTCHA 2CAPTCHA 3CAPTCHA 4CAPTCHA 5


You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.