-
Notifications
You must be signed in to change notification settings - Fork 29
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
Disable contribution from specific atoms #75
Comments
One option for implementing this would be to give a zero C6 coefficient to atoms marked as "ghost atom" in this case they would be fully accounted for in the CN calculation, but don't contribute to the energy, forces and stress directly. |
Is there a straightforward way to do this using the ASE calculator? In VASP it looks like we can set the C6 per species, but I see no similar keyword for the ASE calculator. |
The way for approaching this would add an option for the dispersion model to set C6 coefficients to zero, maybe here simple-dftd3/src/dftd3/model.f90 Lines 128 to 140 in d9b9c7b
The option could be added a logical / bool array which is initialized from a list of indices or by directly using a list of indices. For usage in the ASE calculator we need to define the export in the C API first, maybe in a similar way like we set the real space cutoff in the model: simple-dftd3/src/dftd3/api.f90 Lines 309 to 310 in d9b9c7b
simple-dftd3/include/s-dftd3.h Lines 119 to 125 in d9b9c7b
This gets forwarded to Python via the simple-dftd3/python/dftd3/library.py Line 108 in d9b9c7b
And than added as method for the simple-dftd3/python/dftd3/interface.py Lines 410 to 413 in d9b9c7b
With this we can include it in the ASE calculator for the simple-dftd3/python/dftd3/ase.py Lines 143 to 148 in d9b9c7b
simple-dftd3/python/dftd3/ase.py Lines 180 to 189 in d9b9c7b
It does involve all parts of the dftd3 library, so probably a good issue for somebody who would like to get started (when I have time in the coming weeks I might pick it up myself, but no promises on the estimated time of arrival). |
According to this paper ( https://pubs.acs.org/doi/10.1021/acs.jpclett.3c00856 ) it seems that it may be reasonable to disable the D3 contributions arising from cations in some cases. This is implemented in CP2K by removing the energy, force, and stress terms involving the cation (but keeping the ion in the CN calculation I think) but not generally implemented anywhere else that I can find. Is this something that can be enabled for the ASE calculator of dftd3?
The text was updated successfully, but these errors were encountered: