Blog Archives

Grimme’s Dispersion DFT-D3 in Gaussian #CompChem

I was just asked if it is possible to perform DFT-D3 calculations in Gaussian and my first answer was to use the following  keyword:


which is available in G16 and G09 only in revision D, apparently.

There are also some overlays that can be used to invoke the use dispersion in various scenarios:

IOp(3/74=x) Exchange and Correlation Potentials





DSD-PBEP86 (double hybrid, DFT-D3).


B2PLYP-D3 (double hybrid, DFT-D3).

B97-D (DFT-D3).

IOp(3/76=x) Mixing of HF and DFT.

-33 PW6B95 and PW6B95-D3 coefficients.

IOp(3/124=x) Empirical dispersion term.




Force dispersion type 3 (Grimme DFT-D3).

Force dispersion type 4 (Grimme DFT-D3(BJ)).

Force dispersion type 5 (Grimme D3, PM7 version).


The D3 correction method of Grimme defines the van der Waals energy like:

$\displaystyle E_{\rm disp} = -\frac{1}{2} \sum_{i=1}^{N_{at}} \sum_{j=1}^{N_{at...
...{6ij}} {r_{ij,{L}}^6} +f_{d,8}(r_{ij,L})\,\frac{C_{8ij}} {r_{ij,L}^8} \right ),$

where coefficients $ C_{6ij}$ are adjusted depending on the geometry of atoms i and j. The damping D3 function for is:

$\displaystyle f_{d,n}(r_{ij}) = \frac{s_n}{1+6(r_{ij}/(s_{R,n}R_{0ij}))^{-\alpha_{n}}},$

where the values of s are adjustable parameters fit for the exchange-correlation functionals used in each calculation.

Women in #CompChem and the rest of STEM

In the past I’ve avoided this topic for various reasons. First, because I strongly believe that focusing on labels perpetuates them, and as scientists, we should always rise above them, for is science and not scientists what’s important. I remember my former PhD advisor, Prof. Cogordan, saying that “Liberties are exercised, not demanded“. Take Rosa Parks, for instance, her refusal to move to the back of the bus was an exercise of her liberty, and one that moved to a profound change, alas not without turmoil. But should I really call it a label? since it applies to roughly half the potential brain power available in the planet it then becomes a relevant question. Are equality and political correctness mutually exclusive terms?

It could be argued that I talk from a privileged position being a male scientist but since I’m a Mexican, non-white, non-US-based, male scientist those privileges are only so many.

I first began drafting this post way back before November 2016, when the misogyny displayed by a presidential candidate was in everyone’s mind to such a large extent that even when it even seemed prone to cause his demise it didn’t. The women’s march in D.C. has proven the topic to be still quite relevant though, and next April 22nd, Earth Day, a scientists march will take place to protest against policies that put science -and therefore mankind- in jeopardy. Some particular issues associated with the march will be the communication gag orders against scientific federal agencies; the consequences of the travel-ban to scientists from black-listed countries and, of course, the threat of having a misogynistic environment on the status of women in STEM careers.

Fact: There is a clear selection bias since there is still a large number disparity between men and women in academia throughout the world and since the number of academic position is growing at a much lower rate than the number of scientists competing for such positions, the race has become tighter and usually women take the worst part of the deal. There is a leaking pipeline in which women don’t reach the end of the race. I imagine in some cases it may have to do with maternity as it is still conservatively perceived by most countries but issues like harassment and condescension are not to be ignored.
Fact: Scientific curiosity is innate to all human beings -which confirms the above mentioned bias- therefore talking about encouraging young women to pursuit a career in STEM is plain stupid; they don’t need to be encouraged they must stop being discouraged somewhere along the path. The playing field for both genders should be leveled or science risks loosing half the population in these dire times in which all the brain power available is much needed. Also, I fear the continuous talk about these disadvantages could be off-putting for future generations of women who might be interested in undertaking STEM careers. Leveling the field for female and male scientists should be done and not just demanded but details about the mechanisms to accomplish it are still unclear and vary from one institution to another. Here in Mexico, for instance, all public universities have collective contracts, therefore every scientist in a given level earns as much as another in the same level. In other countries salaries are personally negotiated and therefore each scientists earnings vary, which has led to women earning less on average. Now, the ease with which levels are climbed within an institution are also a matter for debate. Does this mean that earnings and positions are the main problems women face in academia? Could they be the best starting points? Is the rate of enrollment the root of the problem? If so, are us teachers and professors to blame?

Another reason why I avoided this topic was because it would seem so patronizing on my part to give a shout-out to women whose work in computational chemistry I so much admire when I myself could only aspire to one day have work of their quality. They definitely don’t need my praises because they have well earned all our admiration. Nonetheless, here is a link to a great directory of women working in computational chemistry in which some great names are found such as Anna Krylov, Gloria Tabacchi, Romelia Salomón, Patricia Hunt, and so many more great scientists from all over the world. Here in Mexico we count with names such as Margarita Bernal, Patrizia Calaminici, Annia Galano, Estela Mayoral and so many other. It is hard to make a comprehensive list, and as I said before I could only aspire to have work with the same quality as theirs. The importance of recognizing and promoting women to take a career in computational chemistry will in short be addressed by the FemEx-NL-2017 conference next June 22nd in the Netherlands; their motto is “Promoting female excellence in theoretical and computational chemistry”, certainly a worthy and noble endeavor for a problem far from solved.  

Perhaps another good reason for writing this post lies in the image below. It is a true statement but we should analyze the causality for it and fix whatever it is we’re doing wrong because it is certainly not the plumbing:

I have a daughter. I want her to be able to do whatever she wants when she grows up without deterrence from unfairness. I want a world for her without labels so she never has the option of playing ‘The Woman Card’. It wouldn’t be fair for anyone around her.

This wont be the last post on this topic. Please share your views in the comments and criticism section. They are all welcome.


Tribology – New paper in JPC A

Tribology isn’t exactly an area with which us chemists are most familiar, yet chemistry has a great impact on this branch of physics of high industrial importance. Tribology is basically the science which studies the causes and consequences of friction between surfaces. 

The plastic bag industry requires the use of chemical additives to reduce the electrostatic adherence between sheets of plastic. My good old friend Dr. Armando Gama has studied through Dissipative Particle Dynamics (DPD) coarse-grained simulations the friction coefficients of having two slightly different molecules: erukamide and behenamide, which only differ in the presence of a double bond between carbon atoms 12 and 13 (Fig1).


Fig 1

In order to study the electronic aspects that give rise to different tribological effects in these very similar molecules, four chains of each kind were bounded to a frozen graphene surface (four bonds apart to prevent steric crowding) and were optimized at the B97D/6-31G(d,p) level of theory.



Double bonds in erukamide pile together through pi-pi stacking interactions (Fig2) which are absent in behenamide which is why these last ones are able to slide better between each other (Fig3). Interaction energies calculated for the inner chains at the same level of theory are 44.21 and 34.46 kcal/mol for erukamide and behenamide, respectively. As per the suggestion of a referee we extended the calculations to a 2D system by placing seven molecules on graphene, which once again was kept at the optimized geometry of its isolated state, at four bonds of separation in order to prevent steric crowding (Fig 4).


Fig 4

This calculations clearly represent a limit case with a high density covering of the surface, but they nevertheless reflect the observed trend that behenamide works better than erukamide in reducing the static friction coefficient between sheets.

The paper is now available at JPC-A. Thanks to Dr. Gama for this great opportunity to work with his team, I know it wont be the last.

Back in Pécsi Tudomanyegyetem (Hungary)

I’m so glad to be back in Pécs, Hungary, at the lab of my good old friend Prof. Dr. Sándor Kunsági. It has been seven years since I was last here and so many things have happened and yet it feels like yesterday I was walking through these halls.

As part of an agreement between the science councils of both Mexico and Hungary, our research proposal on the development of macrocyclic-based therapeutic agents for capturing micotoxins and other molecules was selected for financing. As before, the theoretical section will be handled by us, namely to some extent by Marco Diaz as part of his BSc thesis, while the experimental part will be handled by the group from Prof. Kunsagi’s lab and Dr. Lemli Beáta‘s. I’m very excited about living for a month here in Pécs but also about having a close friend, to whom I owe so much, working with me in an experimental-theoretical project that will further advance both our researches and careers. It was in fact the work of Profs. Kunsagi here in Pécs and Silaghi in Cluj, Romania, which got me interested in the supramolecular chemistry of calixarenes.

Lets hope we can manage to keep this collaboration between our labs going on for many years to come. For the sake of humor here are some old and new photographs.

New paper in PCCP: CCl3 reduced to CH3 through σ-holes #CompChem

I found it surprising that the trichloromethyl group could be chemically reduced into a methyl group quite rapidly in the presence of thiophenol, but once again a failed reaction in the lab gave us the opportunity to learn some nuances about the chemical reactivity of organic compounds. Even more surprising was the fact that this reduction occured through a mechanism in which chlorine atoms behave as electrophiles and not as nucleophiles.

We proposed the mechanism shown in figure 1 to be consistent with the 1H-NMR kinetic experiment (Figure 2) which shows the presence of the intermediary sulfides and leads to the observed phenyl-disulfide as the only isolable byproduct. The proposed mechanism invokes the presence of σ-holes on chlorine atoms to justify the attack of thiophenolate towards the chlorine atom leaving a carbanion behind during the first step. The NMR spectra were recorded at 195K which implies that the energy barriers had to be very low; the first step has a ~3kcal/mol energy barrier at this temperature.



Figure 1 – Calculated mechanism BMK/6-31G(d,p) sigma holes are observed on Cl atoms


1H NMR of the chemical reduction of the trichloromethyl group. Sulfide 4 is the only observed byproduct

To calculate these energy barriers we employed the BMK functional as implemented in Gaussian09. This functional came highly recommended to this purpose and I gotta say it delivered! The optimized geometries of all transition states and intermediaries were then taken to an MP2 single point upon which the maximum electrostatic potential on each atom (Vmax) was calculated with MultiWFN. In figure 3 we can observe the position and Vmax value of σ-holes on chlorine atoms as suggested by the mapping of electrostatic potential on the electron density of various compounds.

We later ran the same MP2 calculations on other CCl3 groups and found that the binding to an electron withdrawing group is necessary for a σ-hole to be present. (This fact was already present in the literature, of course, but reproducing it served us to validate our methodology.)


Figure 3 – Sigma holes found on other CCl3 containing compounds

We are pleased to have this work published in PhysChemChemPhys. Thanks to Dr. Moisés Romero for letting us into his laboratory and to Guillermo Caballero for his hard work both in the lab and behind the computer; Guillermo is now bound to Cambridge to get his PhD, we wish him every success possible in his new job and hope to see him again in a few years, I’m sure he will make a good job at his new laboratory.

Quick note on WFN(X) files and MP2 calculations #G09 #CompChem

A few weeks back we wrote about using WFN(X) files with MultiWFN in order to find σ-holes in halogen atoms by calculating the maximum potential on a given surface. We later found out that using a chk file to generate a wfn(x) file using the guess=(read,only) keyword didn’t retrieve the MP2 wavefunction but rather the HF wavefunction! Luckily we realized this problem very quickly and were able to fix it. We tried to generate the wfn(x) file with the following keywords at the route section

#p guess=(read,only) density=current

but we kept retrieving the HF values, which we noticed by running the corresponding HF calculation and noticing that every value extracted from the WFN file was exactly the same.

So, if you want a WFN(X) file for post processing an MP2 (or any other post-HartreFock calculation for that matter) ask for it from the beginning of your calculation in the same job. I still don’t know how to work around this or but will be happy to report it whenever I do.

PS. A sincere apology to all subscribers for getting a notification to this post when it wasn’t still finished.

A New Graduate Student

With pleasure I announce that last week our very own Gustavo “Gus” Mondragón became the fifth undergraduate student from my lab to defend his BSc thesis and it has to be said that he did it admirably so.

Gus has been working with us for about a year now and during this time he not only worked on his thesis calculating excited states for bacteriochlorophyl pigments but also helped us finishing some series of calculations on calix[n]arene complexes of Arsenic (V) acids, which granted him the possibility to apear as a co-author of the manuscript recently published in JIPH. Back in that study he calculated the interaction energies between a family of calix macrocycles and arsenic acid derivatives in order to develop a suitable extracting agent.

For his BSc thesis, Gus reproduced the UV-Vis absorption spectra of bacteriochlorophyll-a pigments found in the Fenna-Matthews-Olson complex of photosynthetic purple bacteria using Time Dependent Density Functional Theory (TD-DFT) with various levels of theory, with PBEPBE yielding the best results among the tried set. These calculations were performed at the crystallographic conformation and at the optimized structure, also, in vacuo results were compared to those in implicit solvent (SMD, MeOH). He will now move towards his masters where he will further continue our research on photosynthesis.

Thank you, Gustavo, for your hard work and your sense of humor. Congratulations on this step and may many more successes come your way.


New paper in Tetrahedron #CompChem “Why U don’t React?”

Literature in synthetic chemistry is full of reactions that do occur but very little or no attention is payed to those that do not proceed. The question here is what can we learn from reactions that are not taking place even when our chemical intuition tells us they’re feasible? Is there valuable knowledge that can be acquired by studying the ‘anti-driving force’ that inhibits a reaction? This is the focus of a new manuscript recently published by our research group in Tetrahedron (DOI: 10.1016/j.tet.2016.05.058) which was the basis of Guillermo Caballero’s BSc thesis.



It is well known in organic chemistry that if a molecular structure has the possibility to be aromatic it can somehow undergo an aromatization process to achieve this more stable state. During some experimental efforts Guillermo Caballero found two compounds that could be easily regarded as non-aromatic tautomers of a substituted pyridine but which were not transformed into the aromatic compound by any means explored; whether by treatment with strong bases, or through thermal or photochemical reaction conditions.


These results led us to investigate the causes that inhibits these aromatization reactions to occur and here is where computational chemistry took over. As a first approach we proposed two plausible reaction mechanisms for the aromatization process and evaluated them with DFT transition state calculations at the M05-2x/6-31+G(d,p)//B3LYP/6-31+G(d,p) levels of theory. The results showed that despite the aromatic tautomers are indeed more stable than their corresponding non-aromatic ones, a high activation free energy is needed to reach the transition states. Thus, the barrier heights are the first reason why aromatization is being inhibited; there just isn’t enough thermal energy in the environment for the transformation to occur.


But this is only the proximal cause, we went then to search for the distal causes (i.e. the reasons behind the high energy of the barriers). The second part of the work was then the calculation of the delocalization energies and frontier molecular orbitals for the non-aromatic tautomers at the HF/cc-pVQZ level of theory to get insights for the large barrier heights. The energies showed a strong electron delocalization of the nitrogen’s lone pair to the oxygen atom in the carbonyl group. Such delocalization promoted the formation of an electron corridor formed with frontier and close-to-frontier molecular orbitals, resembling an extended push-pull effect. The hydrogen atoms that could promote the aromatization process are shown to be chemically inaccessible.


Further calculations for a series of analogous compounds showed that the dimethyl amino moiety plays a crucial role avoiding the aromatization process to occur. When this group was changed for a nitro group, theoretical calculations yielded a decrease in the barrier high, enough for the reaction to proceed. Electronically, the bonding electron corridor is interrupted due to a pull-pull effect that was assessed through the delocalization energies.

The identity of the compounds under study was assessed through 1H, 13C-NMR and 2D NMR experiments HMBC, HMQC so we had to dive head long into experimental techniques to back our calculations.

The “art” of finding Transition States Part 2

Last week we posted some insights on finding Transitions States in Gaussian 09 in order to evaluate a given reaction mechanism. A stepwise methodology is tried to achieve and this time we’ll wrap the post with two flow charts trying to synthesize the information given. It must be stressed that knowledge about the chemistry of the reaction is of paramount importance since G09 cannot guess the structure connecting two minima on its own but rather needs our help from our chemical intuition. So, without further ado here is the remainder of Guillermo’s post.


METHOD 3. QST3. For this method, you provide the coordinates of your reagents, products and TS (in that order) and G09 uses the QST3 method to find the first order saddle point. As for QST2 the numbering scheme must match for all the atoms in your three sets of coordinates, again, use the connection editor to verify it. Here is an example of the input file.

link 0
--blank line--
#p b3lyp/6-31G(d,p) opt=(qst3,calcfc) geom=connectivity freq=noraman
--blank line--
Charge Multiplicity
Coordinates of reagents
--blank line—
Charge Multiplicity
Coordinates of products
--blank line--
Charge Multiplicity
Coordinates of TS
--blank line---

As I previously mentioned, it happens that you find a first order saddle point but does not correspond to the TS you want, you find an imaginary vibration that is not the one for the bond you are forming or breaking. For these cases, I suggest you to take that TS structure and manually modify the region that is causing you trouble, then use method 2.

METHOD 4. When the previous methods fail to yield your desired TS, the brute force way is to acquire the potential energy surface (PES) and visually locate your possible TS. The task is to perform a rigid PES scan, for this, the molecular structure must be defined using z-matrix. Here is an example of the input file.

link 0
--blank line--
#p b3lyp/6-31G(d,p) scan test geom=connectivity
--blank line--
Charge Multiplicity
Z-matrix of reagents (or products)
--blank line--

In the Z-matrix section you must specify which variables (B, A or D) you want to modify. First, locate the variables you want to modify (distance B, angle A, or dihedral angle D). Then modify those lines within the Z-matrix, here is an example.

B1       1.41     3          0.05
A1       104.5   2          1.0

What you are specifying with this is that the variable B1 (a distance) is going to be stepped 3 times by 0.05. Then variable A1 (an angle) is going to be stepped 2 times by 1.0. Thus, a total of 12 energy evaluations will be performed. At the end of the calculation open the .log file in gaussview and in Results choose the Scan… option. This will open a 3D surface where you should locate the saddle point, this is an educated guess, so take the structure you think corresponds to your TS and use it for method 2.

I have not fully explored this method so I encourage you to go to and thoroughly review it.

Once you have found your TS structure and via the imaginary vibration confirmed that is the one you are looking for the next step is to verify that your TS connects both your reagents and products in the potential energy surface. For this, an Intrinsic Reaction Coordinate (IRC) calculation must be performed. Here is an example of the input file for the IRC.

link 0
--blank line--
#p b3lyp/6-31G(d,p) irc=calcfc geom=connectivity
--blank line--
Charge Multiplicity
Coordinates of TS
--blank line--

With this input, you ask for an IRC calculation, the default numbers of steps are 20 for each side of your TS in the PES; you must specify the coordinates of your TS or take them from the .chk file of your optimization. In addition, an initial force constant calculation must be made. It often occurs that the calculation fails in the correction step, thus, for complicated cases I hardly suggest to use irc=calcall, this will consume very long time (even days) but there is a 95% guaranty. If the number of points is insufficient you can put more within the route section, here is such an example for a complicated case.

link 0
--blank line--
#p b3lyp/6-31G(d,p) irc=(calcall,maxpoints=80) geom=connectivity
--blank line--
Charge Multiplicity
Coordinates of TS
--blank line--

With this route section, you are asking to perform an IRC calculation with 80 points on each side of the PES, calculating the force constants at every point. For an even complicated case try adding the scf=qc keyword in the route section, quadratic convergence often works better for IRC calculations.

The ‘art’ of finding Transition States Part 1

Guillermo CaballeroGuillermo Caballero, a graduate student from this lab, has written this two-part post on the nuances to be considered when searching for transition states in the theoretical assessment of reaction mechanisms. He’s been quite successful in getting beautiful energy profiles for organic reaction mechanisms, some of which have even explained why some reactions do not occur! A paper in Tetrahedron has just been accepted but we’ll talk about it in another post. I wanted Guillermo to share his insight into this hard practice of computational chemistry so he wrote the following post. Enjoy!


Yes, finding a transition state (TS) can be one of the most challenging tasks in computational chemistry, it requires both a good choice of keywords in your route section and all of your chemical intuition as well. Herein I give you some good tricks when you have to find a transition state using Gaussian 09 Rev. D1

METHOD 1. The first option you should try is to use the opt=qst2 keyword. With this method you provide the structures of your reagents and your products, then the program uses the quadratic synchronous transit algorithm to find a possible transition state structure and then optimize it to a first order saddle point. Here is an example of the input file.

link 0
--blank line--
#p b3lyp/6-31G(d,p) opt=qst2 geom=connectivity freq=noraman
--blank line--
Charge Multiplicity
Coordinates of reagents
--blank line--
Charge Multiplicity
Coordinates of products
--blank line---

It is mandatory that the numbering must be the same in the reagents and the products otherwise the calculation will crash. To verify that the label for a given atom is the same in reagents and products you can go to Edit, then Connection. This opens a new window were you can manually modify the numbering scheme. I suggest you to work in a split window in gaussview so you can see at the same time your reagents and products.

The keyword freq=noraman is used to calculate the frequencies for your optimized structure, it is important because for a TS you must only observe one imaginary frequency, if not, then that is not a TS and you have to use another method. It also occurs that despite you find a first order saddle point, the imaginary frequency does not correspond to the bond forming or bond breaking in your TS, thus, you should use another method. I will give you advice later in the text for when this happens. When you use the noraman in this keyword you are not calculating the Raman frequencies, which for the purpose of a TS is unnecessary and saves computing time. Frequency analysis MUST be performed AT THE VERY SAME LEVEL OF THEORY at which the optimization is performed.

The main advantage for using the qst2 option is that if your calculation is going to crash, it generally crashes at the beginning, in the moment of guessing your transition state structure. Once the program have a guess, it starts the optimization. I suggest you to ask the algorithm to calculate the force constants once, this generally improves on the convergence, it will take slightly more time depending on the size of your structure but it pays off. The keyword in the route section is opt=(qst2,calcfc). Indeed, I hardly encourage you to use the calcfc keyword in any optimization you want to run.

METHOD 2. If method 1 does not work, my next advice is to use the opt=ts keyword. For this method, the coordinates in your input file are those for the TS structure. Here is an example of the input file.

link 0
--blank line--
#p b3lyp/6-31G(d,p) opt=ts geom=connectivity freq=noraman
--blank line--
Charge Multiplicity
Coordinates of TS
--blank line--

The question that arises here is how should I get the coordinates for my TS? Well, honestly this is not a trivial task, here is where you use all the chemistry you know. For example, you can start with the coordinates of your reagents and manually get them closer. If you are forming a bond whose length is to be 1.5Å, then I suggest you to have that length in 1.6Å in your TS. Sometimes this becomes trial and error but the most accurate your TS structure is, based on your chemical knowledge, the easiest to find your TS will be. As another example, if you want to find a TS for a [1,5]-sigmatropic reaction a good TS structure will be putting the hydrogen atom that migrates in the middle point through the way. I have to insist, this method hardly depends on your imagination to elucidate a TS and on your chemistry background.

Most of the time when you use the opt=ts keyword the calculations crashes because of an error in the number of eigenvalues, you can avoid it adding noeigen to the route section; here is an example of the input file, I encourage you to use this method.

link 0
--blank line--
#p b3lyp/6-31G(d,p) opt=(ts,noeigen,calcfc) geom=connectivity freq=noraman
--blank line--
Charge Multiplicity
Coordinates of TS
--blank line--

If you have problems in the optimization steps I suggest you to ask the algorithm to calculate the force constants in every step of the optimization opt=(ts,noeigen,calcall) this is quite a harsh method because will consume long computing time but works well for small molecules and for complicated TSs to find.

Another ‘tricky’ way to get your coordinates for your TS is to run the qst2 calculation, then if it fails, take the second- or the third-step coordinates and used them as a ‘pre-optimized’ set of coordinates for this method.

By the way, here is another useful trick. If you are evaluating a group of TSs, let’s say, if you are varying a functional group among the group, focus on finding the TS for the simplest case, then use this optimized TS as a template where you add the moieties and use this this method. This works pretty well.

For this post we’ll leave it up to here and post the rest of Guillermo’s tricks and advice on finding TS structures next week when we’ll also discuss the use of IRC calculations and some considerations on energy corrections when plotting the full energy profile. In the mean time please take the time to rate, like and share this and other posts.

Thanks for reading!


%d bloggers like this: