You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: source/user/dft.rst
+21-14
Original file line number
Diff line number
Diff line change
@@ -181,22 +181,29 @@ or - as an alternative - the same may be achieved in the following way:
181
181
Dispersion corrections
182
182
======================
183
183
184
-
Two main ways exist for adding dispersion (van der Waals) corrections to KS-DFT calculations. One is to augment mean-field results by Grimme's D3 corrections :cite:`DFTD3`, which can be added through an interface to the external library `libdftd3 <https://github.com/cuanto/libdftd3>`_, cf. `dftd3/00-hf_with_dftd3.py <https://github.com/pyscf/pyscf/blob/master/examples/dftd3/00-hf_with_dftd3.py>`_:
185
-
186
-
>>> from pyscf import dftd3
187
-
>>> mf_hf_d3 = dftd3.dftd3(dft.RKS(mol_hf))
188
-
>>> mf_hf_d3.kernel()
184
+
Adding dispersion (van der Waals) corrections to KS-DFT calculations requires the `pyscf-dispersion <https://github.com/pyscf/dispersion>`_ extension,
185
+
which implements a simplified interface to `simple-dftd3 <https://github.com/dftd3/simple-dftd3>`_
186
+
and `dftd4 <https://github.com/dftd4/dftd4>`_ libraries.
187
+
188
+
It is recommended to enable D3 :cite:`DFTD3`, D4 dispersion corrections through the KS class instantiation.
189
+
The values of attributes nlc, disp, and xc of KS object are automatically configured in this way.
190
+
Both the ``mol.KS`` method or ``dft.RKS`` function can be used,
Alternatively, non-local correlation may be added through the VV10 functional :cite:`vydrov_voorhis_vv10_functional_jcp_2010`, cf. `dft/33-nlc_functionals.py <https://github.com/pyscf/pyscf/blob/master/examples/dft/33-nlc_functionals.py>`_:
See `dft/33-nlc_functionals.py <https://github.com/pyscf/pyscf/blob/master/examples/dft/33-nlc_functionals.py>`_
206
+
for more examples of setting the ``nlc`` and ``nlcgrids`` attribute.
200
207
It's important to keep in mind that the evaluation of the VV10 functional involves a double grid integration, so differences in grid size can make an enormous difference in time.
0 commit comments