-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accuracy of atoms.get_potential_energy #56
Comments
You can't compare absolute energies between different methods. For context, you are comparing HF/aug-cc-pVTZ (Psi4 default), some DFT/3-21G (NWChem default), ωB97x/6–31G(d) (ANI-1) and GFN2-xTB/STO-NG. First since those are completely different methods, Hartree–Fock, GGA, RS-Hybrid and tight-binding, you can't compare absolute energies here. Second the basis set between the methods are different, for Hartree–Fock you are using an augmented triple-ζ basis, for your DFT methods you use a double-ζ basis sets and for tight-binding a valence minimal basis. The most important point here is that while your DFT/WFT methods are using all-electron basis sets, the tight binding method is using a valence only basis set. Since the number of electrons differs between the calculations they can't be reasonably compared. |
Thanks Sebastian for the quick and informative answer, I understand the difference now. I understand your argument for the potential energy, as in the above example code. In general I am also interested in force computation. For forces, does a variation of your argument still hold or does the "constant shift" drop out when forces are computed as gradients of the energy? I.e., can I expect a higher degree of agreement in forces if the dominant effects creating these forces is already accurately captured at the GFN2-xTB/STO-NG level of theory? |
Energy derivatives or energy differences usually compare well between different methods. If you are interested in the theoretical background, I can recommend Introduction to Computational Chemistry by Frank Jensen. |
Thanks a lot Sebastian, I very much appreciate your answer! |
You're welcome. |
Describe the bug
The computed potential energy for a simple CH4 molecule computed through the ASE interface seems wrong when compared against Psi4 and NWChem.
To Reproduce
I am running Ubuntu 20.04.2 LTS with ase 3.22.0 and xtb-python version 20.1.
The python environment is provided by conda, using the following conda packages from the
conda-forge
channel:ase
,psi4
,xtb
,xtb-python
,nwchem
.I run the following
xtb_test.py
script:On my setup running this script produces the following output:
Expected behaviour
I expect that the potential energy computed for the
XTB
calculator approximately agrees with the energy computed by the other quantum chemistry codes, i.e. thePsi4
andNWChem
calculators.Additional context
The CH4 conformation is an out-of-equilibrium conformation from the ANI-1 DFT data set.
The text was updated successfully, but these errors were encountered: