# Blog Archives

## Post Calculation Addition of Empirical Dispersion – Fixing interaction energies

Calculation of interaction energies is one of those things people are more concerned with and is also something mostly done wrong. The so called ‘*gold standard*‘ according to Pavel Hobza for calculating supramolecular interaction energies is the CCSD(T)/CBS level of theory, which is highly impractical for most cases beyond 50 or so light atoms. Basis set extrapolation methods and inclusion of electronic correlation with MP2 methods yield excellent results but they are not nonetheless almost as time consuming as CC. DFT methods in general are terrible and still are the most widely used tools for electronic structure calculations due to their competitive computing times and the wide availability of schemes for including terms which help describe various kinds of interactions. The most important ingredients needed to get a decent to good interaction energies values calculated with DFT methods are correlation and dispersion. The first part can be recreated by a good correlation functional and the use of empirical dispersion takes care of the latter shortcoming, dramatically improving the results for interaction energies even for lousy functionals such as the infamous B3LYP. The results still wont be of benchmark quality but still the deviations from the *gold standard* will be shortened significantly, thus becoming more quantitatively reliable.

There is an online tool for calculating and adding the empirical dispersion from Grimme’s group to a calculation which originally lacked it. In the link below you can upload your calculation, select the basis set and functionals employed originally in it, the desired damping model and you get in return the corrected energy through a geometrical-Counterpoise correction and Grimme’s empirical dispersion function, D3, of which I have previously written here.

The gCP-D3 Webservice is located at: http://wwwtc.thch.uni-bonn.de/

The platform is entirely straightforward to use and it works with xyz, turbomole, orca and gaussian output files. The concept is very simple, a both gCP and D3 contributions are computed in the selected basis set and added to the uncorrected DFT (or HF) energy (eq. 1)

(**1**)

If you’re trying to calculate interaction energies, remember to perform these corrections for every component in your supramolecular assembly (eq. 2)

(**2**)

Here’s a screen capture of the outcome after uploading a G09 log file for the simplest of options B3LYP/6-31G(*d*), a decomposed energy is shown at the left while a 3D interactive Jmol rendering of your molecule is shown at the right. Also, various links to the literature explaining the details of these calculations are available in the top menu.

I’m currently writing a book chapter on methods for calculating ineraction energies so expect many more posts like this. A special mention to Dr. Jacinto Sandoval, who is working with us as a postdoc researcher, for bringing this platform to my attention, I was apparently living under a rock.

## DFT Textbook in Spanish by Dr. José Cerón-Carrasco

Today’s science is published mostly in English, which means that non-English speakers must first tackle the language barrier before sharing their scientific ideas and results with the community; this blog is a proof that non-native-English speakers such as myself cannot outreach a large audience in another language.

For young scientists learning English is a must nowadays but it shouldn’t shy students away from learning science in their own native tongues. To that end, the noble effort by Dr. José Cerón-Carrasco from Universidad Católica San Antonio de Murcia, in Spain, of writing a DFT textbook in Spanish constitutes a remarkable resource for Spanish-speaking computational chemistry students because it is not only a clear and concise introduction to ab initio and DFT methods but because it was also self published and written directly in Spanish. His book “*Introducción a los métodos DFT: Descifrando B3LYP sin morir en el intento*” is now available in Amazon. Dr. Cerón-Carrasco was very kind to invite me to write a prologue for his book, I’m very thankful to him for this opportunity.

Así que para los estudiantes hispanoparlantes hay ahora un muy valioso recurso para aprender DFT sin morir en el intento gracias al esfuerzo y la mente del Dr. José Pedro Cerón Carrasco a quien le agradezco haberme compartido la primicia de su libro

¡Salud y olé!

## Python scripts for calculating Fukui Indexes

One of the most popular posts in this blog has to do with calculating Fukui indexes, however, when dealing with a large number of molecules, our described methodology can become cumbersome since it requires to manually extract the population analysis from two or three different output files and then performing the arithmetic on them separately with a spreadsheet or something.

Our new team member Ricardo Loaiza has written a python script that takes the three aforementioned files and yields a .csv file with the calculated Fukui indexes, and it even points out which of the atoms exhibit the largest values so if you have a large molecule you don’t have to manually check for them. We have also a batch version which takes all the files in any given directory and performs the Fukui calculations for each, provided it can find file triads with the naming requirements described below.

Output files must be named *filename*.log (the N electrons reference state), *filename***_plus**.log (the state with N+1 electrons) and *filename***_minus**.log (the N-1 electrons state). Another restriction is that so far these scripts only work with NBO population analysis as provided by the NBO3.1 program available in the various versions of Gaussian. I imagine the listing is similar in NBO5.x and NBO6.x and so it should work if you do the population analysis with them.

The syntax for the single molecule version is:

python fukui.py filename.log filename_minus.log filename_plus.log

For the batch version is:

./fukuiPorLote.sh

(*Por Lote* means *In Batch* in Spanish.)

These scripts are available via GitHub. We hope you find them useful, and you do please let us know whether here at the comments section or at our GitHub site.

## XVI Mexican Meeting on Phys.Chem.

A yearly tradition of this Comp.Chem. lab and many others throughout our nation is to attend the Mexican Meeting on Theoretical Physical Chemistry to share news, progress and also a few drinks and laughs. This year the RMFQT was held in Puebla and although unfortunately I was not able to attend this lab was proudly represented by its current members. Gustavo Mondragón gave a talk about his progress on his photosynthesis research linking to the previous work of María Eugenia Sandoval already presented in previous editions; kudos to Gustavo for performing remarkably and thanks to all those who gave us their valuable feedback and criticism. Also, five posters were presented successfully, I can only thank the entire team for representing our laboratory in such an admirable way, and a special mention to the junior members, I hope this was the first of many scientific events they attend and may you deeply enjoy each one of them.

Among the invited speakers, the RMFQT had the honor to welcome Prof. John Perdew (yes, the **P** in PBE); the team took the opportunity of getting a lovely picture with him.

Here is the official presentation of the newest members of our group:

**Alejandra Barrera** (hyperpolarizabilty calculations on hypothetical poly-calyx[n]arenes for the search of NLO materials)

**Fernando Uribe** (Interaction energy calculations for non-canonical nucleotides)

**Juan Guzmán** (Reaction mechanisms calculations for catalyzed organic reactions)

We thank the organizing committee for giving us the opportunity to actively participate in this edition of the RMFQT, we eagerly await for next year as every year.

## Chemistry Makes the Chemical

The compound shown below in figure 1 is listed by Aldrich as 4,5,6,7-tetrahydroindole, but is it really?

To a hardcore organic chemist it is clear that this is not an indole but a pyrrole because the lack of aromaticity in the fused ring gives this molecule the same reactivity as 2,3-diethyl pyrrole. If you search the ChemSpider database for ‘tetrahydroindole’ the search returns the following compound with the identical chemical formula C8H11N but with a different hydrogenation pattern: 2,3,3a,4-Tetrahydro-1H-indole

The real indole, upon an electrophilic attack, behaves as a free enamine yielding the product shown in figure 3 in which the substitution occurs in position 3. This compound cannot undergo an Aromatic Electrophilic Susbstitution since that would imply the formation of a sigma complex which would disrupt the aromaticity.

On the contrary, the corresponding pyrrole is substituted in position 2

These differences in reactivity towards electrophiles are easily rationalized when we plot their HOMO orbitals (calculated at the M062X/def2TZVP level of theory):

If we calculate the Fukui indexes at the same level of theory we get the highest value for susceptibility towards an electrophilic attack as follows: 0.20 for C(3) in indole and 0.25 for C(2) in pyrrole, consistent with the previous reaction schemes.

So, why is it listed as an indole? why would anyone search for it under that name? Nobody thinks about cyclohexane as 1,3,5-trihydrobenzene. According to my good friend and colleague Dr. Moisés Romero most names for heterocyles are kept even after such dramatic chemical changes due to historical and mnemonic reasons even when the reactivity is entirely different. This is only a nomenclature issue that we have inherited from the times of Hantzsch more than a century ago. We’ve become used to keeping the trivial (or should I say arbitrary) names and further use them as derivations but this could pose an epistemological problem if students cannot recognize which heterocycle presents which reactivity.

So, in a nutshell:

Chemistry makes the chemical and not the structure.

A thing we all know but sometimes is overlooked for the sake of simplicity.

## WATOC 2017

Last week the WATOC congress in Munich was a lot of fun. Our poster on photosynthesis had a great turnout and got a lot of positive feedback as well as many thought provoking questions. One of the highlights of my time there was seeing my former students and knowing they’re all leading successful and happy grad-student lives in Europe, I’m so very proud of them. It was great to connect with old friends and making new ones; a big thank you to all the readers of this little blog who took the time to come and say hi, I’m very glad the blog has been helpful to you.

Better recounts of WATOC 2017 can be found in the great Rzepa’s blog here and here.

Below there is an image of our poster (some typos persist).

See you all in 2020!

## Photosynthesis and Singlet Fission – #WATOC2017 PO1-296

If you work in the field of photovoltaics or polyacene photochemistry, then you are probably aware of the Singlet Fission (SF) phenomenon. SF can be broadly described as the process where an excited singlet state decays to a couple of degenerate coupled triplet states (via a multiexcitonic state) with roughly half the energy of the original singlet state, which in principle could be centered in two neighboring molecules; this generates two holes with a single photon, i.e. twice the current albeit at half the voltage (Fig 1).

It could also be viewed as the inverse process to triplet-triplet annihilation. An important requirement for SF is that the two triplets to which the singlet decays must be coupled in a ^{1}(*TT*) state, otherwise the process is spin-forbidden. Unfortunately (from a computational perspective) this also means that the ^{3}(*TT*) and ^{5}(*T*T) states are present and should be taken into account, and when it comes to chlorophyll derivatives the task quickly scales.

SF has been observed in polyacenes but so far the only photosynthetic pigments that have proven to exhibit SF are some carotene derivatives; so what about chlorophyll derivatives? For a -very- long time now, we have explored the possibility of finding a naturally-occurring, chlorophyll-based, photosynthetic system in which SF could be possible.

But first things first; The methodology: It was soon enough clear, from María Eugenia Sandoval’s MSc thesis, that TD-DFT wasn’t going to be enough to capture the whole description of the coupled states which give rise to SF. It was then that we started our collaboration with SF expert, Prof. David Casanova from the Basque Country University at Donostia, who suggested the use of Restricted Active Space – Spin Flip in order to account properly for the spin change during decay of the singlet excited state. A set of optimized bacteriochlorophyll-a molecules (BChl-a) were oriented ad-hoc so their *Qy* transition dipole moments were either parallel or perpendicular; the rate to which SF could be in principle present yielded that both molecules should be in a parallel *Qy* dipole moments configuration. When translated to a naturally-occurring system we sought in two systems: The Fenna-Matthews-Olson complex (FMO) containing 7 BChl-a molecules and a chlorosome from a mutant photosynthetic bacteria made up of 600 Bchl-d molecules (Fig 2). The FMO complex is a trimeric pigment-protein complex which lies between the antennae complex and the reaction center in green sulfur dependent photosynthetic bacteria such as *P. aestuarii* or *C. tepidium*, serving thus as a molecular wire in which is known that the excitonic transfer occurs with quantum coherence, i.e. virtually no energy loss which led us to believe SF could be an operating mechanism. So far it seems it is not present. However, for a crystallographic BChl-d dimer present in the chlorosome it could actually occur even when in competition with fluorescence.

I will keep on blogging more -numerical and computational- details about these results and hopefully about its publication but for now I will wrap this post by giving credit where credit is due: This whole project has been tackled by our former lab member María Eugenia “Maru” Sandoval and Gustavo Mondragón. Finally, after much struggle, we are presenting our results at **WATOC 2017** next week on **Monday 28th** at poster session 01 (**PO1-296**), so please stop by to say hi and comment on our work so we can improve it and bring it home!

## All you wanted to know about Hybrid Orbitals…

#### … but were afraid to ask

#### or

#### How I learned to stop worrying and not caring that much about hybridization.

The math behind orbital hybridization is fairly simple as I’ll try to show below, but first let me give my praise once again to the formidable Linus Pauling, whose creation of this model built a bridge between quantum mechanics and chemistry; I often say Pauling was the first Quantum Chemist (Gilbert N. Lewis’ fans, please settle down). Hybrid orbitals are therefore a way to create a basis that better suits the geometry formed by the bonds around a given atom and not the result of a process in which atomic orbitals transform themselves for better sterical fitting, or like I’ve said before, the C atom in CH_{4} is sp^{3} hybridized because CH_{4} is tetrahedral and not the other way around. Jack Simmons put it better in his book:

The atomic orbitals we all know and love are the set of solutions to the Schrödinger equation for the Hydrogen atom and more generally they are solutions to the hydrogen-like atoms for which the value of *Z* in the potential term of the Hamiltonian changes according to each element’s atomic number.

Since the Hamiltonian, and any other quantum mechanical operator for that matter, is a Hermitian operator, any given linear combination of wave functions that are solutions to it, will also be an acceptable solution. Therefore, since the *2s* and *2p* valence orbitals of Carbon do not point towards the edges of a tetrahedron they don’t offer a suitable basis for explaining the geometry of methane; even more so these atomic orbitals are not degenerate and there is no reason to assume all C-H bonds in methane aren’t equal. However we can come up with a linear combination of them that might and at the same time will be a solution to the Schrödinger equation of the hydrogen-like atom.

Ok, so we need four degenerate orbitals which we’ll name *ζ _{i}* and formulate them as linear combinations of the C atom valence orbitals:

*ζ _{1}*=

*a*+

_{1}2s*b*+

_{1}2p_{x}*c*+

_{1}2p_{y}*d*

_{1}2p_{z}*ζ _{2}*=

*a*+

_{2}2s*b*+

_{2}2p_{x}*c*+

_{2}2p_{y}*d*

_{2}2p_{z}*ζ _{3}*=

*a*+

_{3}2s*b*+

_{3}2p_{x}*c*+

_{3}2p_{y}*d*

_{3}2p_{z}*ζ _{4}*=

*a*+

_{4}2s*b*+

_{4}2p_{x}*c*+

_{4}2p_{y}*d*

_{4}2p_{z}to comply with equivalency lets set *a _{1}* =

*a*=

_{2}*a*=

_{3}*a*and normalize them:

_{4}*a _{1}*

*+*

^{2}*a*

_{2}*+*

^{2}*a*

_{3}*+*

^{2}*a*

_{4}*= 1 ∴*

^{2}*a*= 1/√4

_{i}Lets take *ζ _{1}* to be directed along the

*z*axis so

*b*=

_{1}*c*= 0

_{1}*ζ _{1 }*= 1/√4(

*2s*) +

*d*

_{1}2p_{z}since *ζ _{1}* must be normalized the sum of the squares of the coefficients is equal to 1:

^{1}/_{4} + *d _{1}^{2}* = 1;

*d _{1}* =

^{√3}/

_{2}

Therefore the first hybrid orbital looks like:

*ζ _{1}* =

^{1}/

_{√4}(

*2s*) +

^{√3}/

_{2}(

*2p*)

_{z}We now set the second hybrid orbital on the xz plane, therefore *c _{2}* = 0

*ζ _{2}* =

^{1}/

_{√4}(

*2s*) +

*b*+

_{2}2p_{x}*d*

_{2}2p_{z}since these hybrid orbitals must comply with all the conditions of atomic orbitals they should also be orthonormal:

〈*ζ _{1}*|

*ζ*〉 = δ

_{2}_{1,2}= 0

^{1}/_{4} + *d _{2}*

^{√3}/

_{2}= 0

*d _{2}* = –

^{1}/

_{2√3}

our second hybrid orbital is almost complete, we are only missing the value of *b _{2}*:

*ζ _{2}* =

^{1}/

_{√4}(

*2s*) +

*b*+-

_{2}2p_{x}^{1}/

_{2√3}(

*2p*)

_{z}again we make use of the normalization condition:

^{1}/_{4} + *b _{2}^{2}* +

^{1}/

_{12}= 1;

*b*=

_{2}^{√2}/

_{√3}

Finally, our second hybrid orbital takes the following form:

*ζ _{2}* =

^{1}/

_{√4}(

*2s*) +

^{√2}/

_{√3}(

*2p*) –

_{x}^{1}/

_{√12}(

*2p*)

_{z}The procedure to obtain the remaining two hybrid orbitals is the same but I’d like to stop here and analyze the relative direction *ζ _{1}* and

*ζ*take from each other. To that end, we take the angular part of the hydrogen-like atomic orbitals involved in the linear combinations we just found. Let us remember the canonical form of atomic orbitals and explicitly show the spherical harmonic functions to which the 2s, 2px, and 2pz atomic orbitals correspond:

_{2}ψ* _{2s}* = (1/4π)

^{½}

*R*(

*r*)

ψ* _{2px}* = (3/4π)

^{½}sinθcosφ

*R*(

*r*)

ψ* _{2pz}* = (3/4π)

^{½}cosθ

*R*(

*r*)

we substitute these in *ζ _{2}* and factorize R(r) and

^{1}/

_{√(4π)}

*ζ _{2}* = (

^{R(r)}/

_{√(4π)})[

^{1}/

_{√4}+ √2 sinθcosφ –

^{√3}/

_{√12}cosθ]

We differentiate *ζ _{2}* respect to θ, and set it to zero to find the maximum value of θ respect to the z axis we get the angle between the first to hybrid orbitals

*ζ*and

_{1}*ζ*(remember that

_{2}*ζ*is projected entirely over the

_{1}*z*axis)

d*ζ _{2}*/dθ = (

^{R(r)}/

_{√(4π)})[√2 cosθ –

^{√3}/

_{√12}sinθ] = 0

sinθ/cosθ = tanθ = -√8

θ = -70.53°,

but since θ is measured from the z axis towards the xy plane this result is equivalent to the complementary angle 180.0° – 70.53° = 109.47° which is exactly the angle between the C-H bonds in methane we all know! and we didn’t need to invoke the unpairing of electrons in full orbitals, their promotion of any electron into empty orbitals nor the ‘*reorganization*‘ of said orbitals into new ones. Orbital hybridization is nothing but a mathematical tool to find a set of orbitals which comply with the experimental observation and that is the important thing here!

To summarize, you can take any number of orbitals and build any linear combination you want, in order to comply with the observed geometry. Furthermore, no matter what hybridization scheme you follow, you still take the entire orbital, you cannot take half of it because they are basis functions. That is why you should never believe that any atom exhibits something like an *sp ^{2.5}* hybridization just because their bond angles lie between 109 and 120°. Take a vector

*v*= x

*i*+y

*j*+z

*k*, even if you specify it to be

*v*= 1/2

*i*that means x = 1/2, not that you took half of the unit vector i, and it doesn’t mean you took nothing of

*j*and

*k*but rather than y = z = 0.

This was a very lengthy post so please let me know if you read it all the way through by commenting, liking, or sharing. Thanks for reading.

## No, seriously, why can’t orbitals be observed?

The concept of *electronic orbital* has become such a useful and engraved tool in understanding chemical structure and reactivity that it has almost become one of those things whose original meaning has been lost and replaced for a utilitarian concept, one which is not bad in itself but that may lead to some wrong conclusions when certain fundamental facts are overlooked.

Last week a wrote -what I thought was- a humorous post on this topic because a couple of weeks ago a viewpoint in JPC-A was published by Pham and Gordon on the possibility of observing molecular orbitals through microscopy methods, which elicited a ‘*seriously? again?*‘ reaction from me, since I distinctly remember the Nature article by Zuo from the year 2000 when I just had entered graduate school. The article is titled “*direct observation of d-orbital holes.*” We discussed this paper in class and the discussion it prompted was very interesting at various levels: for starters, the allegedly observed d-orbital was strikingly similar to a *dz ^{2}*, which we had learned in class (thanks, prof. Carlos Amador!) that is actually a linear combination of

*d(z*and

^{2}-x^{2})*d(z*orbitals, a mathematical -lets say- trick to conform to spectroscopic observations.

^{2}-y^{2})Pham and Gordon are pretty clear in their first paragraph: “*The wave function amplitude Ψ*Ψ is interpreted as the probability density. All observable atomic or molecular properties are determined by the probability and a corresponding quantum mechanical operator, not by the wave function itself. Wave functions, even exact wave functions, are not observables.*” There is even another problem, about which I wrote a post long time ago: orbitals are non-unique, this means that I could get a set of orbitals by solving the Schrödinger equation for any given molecule and then perform a unit transformation on them (such as renormalizing them, re-orthonormalizing them to get a localized version, or even hybridizing them) and the electronic density derived from them would be the same! In quantum mechanical terms this means that the probability density associated with the wave function internal product, *Ψ*Ψ, *is not changed upon unit transformations; why then would a specific version be “observed” under a microscope? As Pham and Gordon state more eloquently it has to do with the Density of States (DOS) rather than with the orbitals. Furthermore, an orbital, or more precisely a spinorbital, is conveniently (in math terms) separated into a radial, an angular and a spin component *R*(*r*)*Y ^{l}_{m}*(

*θ*,

*φ*)

*σ*(

*α*,

*β*) with the angular part given by the spherical harmonic functions

*Y*(

^{l}_{m}*θ*,

*φ*), which in turn -when plotted in spherical coordinates- create the famous lobes we all chemists know and love. Zuo’s observation claim was based on the resemblance of the observed density to the angular part of an atomic orbital. Another thing, orbitals have phases, no experimental observation claims to have resolved those.

Now, I may be entering a dangerous comparison but, can you observe a 2? If you say you just did, well, that “2” is just a symbol used to represent a quantity: two, the cardinality of a set containing two elements. You might as well depict such quantity as “II” or** “⋅⋅”** but still cannot observe “a two”. (If any mathematician is reading this, please, be gentle.) I know a number and a function are different, sorry if I’m just rambling here and overextending a metaphor.

Pretending to having observed an orbital through direct experimental methods is to neglect the Born interpretation of the wave function, Heisenberg’s uncertainty principle and even Schrödinger’s cat! (I know, I know, Schrödinger came up with this *gedankenexperiment* in order to refute the Copenhagen interpretation of quantum mechanics, but it seems like after all the cat is still not out of the box!)

So, the take home message from the viewpoint in JPC is that molecular properties are defined by the expected values of a given wave function for a specific quantum mechanical operator of the property under investigation and not from the wave function itself. Wave functions are not observables and although some imaging techniques seem to accomplish a formidable task the physical impossibility hints to a misinterpretation of facts.

I think I’ll write more about this in a future post but for now, my take home message is to keep in mind that **orbitals are wave functions** and therefore are not more observable (as in imaging) than a partition function is in statistical mechanics.