ifilot / pyqint

Python package for evaluating integrals of Gaussian type orbitals in electronic structure calculations
https://pyqint.imc-tue.nl
GNU General Public License v3.0
23 stars 8 forks source link

Possible bugs about GTO gradient calculation and Bragg-Slater radius #42

Closed fate1997 closed 1 month ago

fate1997 commented 1 month ago

Hi Ivo,

I recently tried to follow up on your codes to learn DFT, they are very helpful for beginners, thank you!

I found there are some codes I am confused and they might be bugs:

  1. Here, you use $(x-x_0)^{l-1}$ represent the gradient for the angular term, shouldn't it be $l\times (x-x_0)^{l-1}$?
  2. Here in your pydft package, it seems that you get Bragg-Slater radius by directly passing the atom index, but since your Bragg-Slater radius list is started from hydrogen instead of atom placeholder, so the true way should be bragg_slater.BSRADII[self.__aidx-1].
ifilot commented 1 month ago

Thank you for your kind words and bringing this error to my attention.

Thank you once more for filing this issue. It is very much appreciated.

fate1997 commented 1 month ago

Thank you for the quick fix!