grimme-lab / xtb

Semiempirical Extended Tight-Binding Program Package
https://xtb-docs.readthedocs.io/
GNU Lesser General Public License v3.0
568 stars 144 forks source link

Discrepancy in density cube files generated by xTB & Multiwfn #586

Open cisert opened 2 years ago

cisert commented 2 years ago

Bug Description I noticed a discrepancy in the density cube files generated either directly with GFN2-xTB or with Multiwfn from the xtb-created molden.input file. Visual difference:

isosurfaces

To Reproduce Steps to reproduce the behaviour:

  1. happens with inputs: water.txt → rename to water.sdf (Github doesn't want .sdf) xtb.txt → rename to xtb.inp (contains density=True)
  2. xtb water.sdf --input xtb.inp --molden --verbose
  3. output xTB: xtb_std_out.txt density_xtb.txt (rename to .cub for visualization) molden.input.txt → rename to molden.input
  4. Generate the density cube file using Multiwfn, starting from the molden.input file xtb generated, and using the same grid points: Multiwfn molden.input, then options 5 (Output and plot specific property within a spatial region) > 1 (Electron density) > 8 (Use grid setting of another cube file) > density_xtb.cub > 2 (Export data to a Gaussian-type cube file in current folder)
  5. output Multiwfn: density_multiwfn.txt (rename to .cub for visualization)

Expected behaviour Same cube file.

Additional context

Software

cisert commented 1 year ago

This discussion in the Multiwfn forum revealed that the xTB-generated electron density file appears to be missing the core electrons (see response #10), while Multiwfn adds those.