Day 30: Implementing Bader's QTAIM
I spent most of today debugging Bader’s QTAIM code using H2O. I believe that most of the bugs have been fixed. The only thing that needs to be added at this point is to add the electron densities from the grids on each edge. These values should be minimal considering the fact that the charge densities are very low at far distances.
This is the matplotlib diagram of the electron densities for H2O on a grid with 0.2 angstroms spacing. Using the Bader charge implementation that I have now, the area can be partitioned into three spaces like this:
The values that were obtained for a grid with edge lengths of 10 angstroms and 0.2 angstroms spacing were 6.8112, 0.3593, 0.5138
. In comparison, bader
package reported charges of 6.9378, 0.3639, 0.3827
. The differences between two hydrogen atom charges are smaller in bader
package because the package uses weight based corrections for the grids near borderline between Bader spaces. This can be added when I am certain that the implementation is fairly bug-free.