Closed ajz34 closed 2 years ago
Additional notes
simple-dftd3 (v0.5.1) and dftd4 (v3.3.0) are installed from conda channal. Original dftd3 is compiled from code at https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dft-d3/.
Seems that dftd4 does not suffer similar deviation between fortran binary and dftd4.interface python API.
Note that the Python API uses a slightly different default, always enabling the ATM, while the command line interface uses the two-body only version by default and requires an explicit option (--atm
).
If you pass RationalDampingParam(method="pbe0", atm=False)
the result should be consistent.
Thanks for clear reply! :smile:
Hi :smile:
I'm experiencing result disaccordance between binary
s-dftd3
and result from python APIdftd3.interface
, at least for D3-BJ with PBE0.dftd3
s-dftd3
Difference between python (prebuild param) and other results is somehow large. Difference between
s-dftd3
and python (user param) may be a result of different Angstrom->Bohr conversion constant, which is not important.I'm not acustomed to ffi workflow, thus I havn't hacked why this happens :smiling_face_with_tear:
Steps to reproduce python (prebuild param) and python (user param)
To reproduce python (prebuild param), I shamelessly borrow the code from test code of simple-dftd3 :joy: https://github.com/awvwgk/simple-dftd3/blob/4c6c7825ba25288d62047a1ecf8edaccecd7061a/python/dftd3/test_interface.py#L179-L204
To reproduce result of python (user param), substiuting
RationalDampingParam(method="pbe0")
byRationalDampingParam(s6=1, s8=1.2177, s9=0, a1=0.4145, a2=4.8593, alp=14)
should work.Steps to reproduce original
dftd3
and simples-dftd3
Coordinate file is defined as
tm.xyz
:Then run
I'm new to dftd3/4, so hope these scripts are the correct D3-BJ with PBE0 :smiling_face_with_tear: