-
Notifications
You must be signed in to change notification settings - Fork 36
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
Implement k-points sampling #4
Comments
You can use xTB in DFTB+ with k-point sampling instead of building supercells. Also, there is no limit in systemsize, but since we are using a shared memory parallelization you have to provide enough memory for all the threads using the |
Thanks for the comment. Sounds like it's a feature. I'll try building DFTB+. |
Implementing k-point sampling here in tblite would be a really cool feature, but with the integration in DFTB+ we already have such an implementation with both k-points and spin channels available. Therefore, this is currently less of a priority for me. If more projects start using tblite's high-level API to evaluate xTB singlepoints for periodic systems this might be worth revisiting. |
Hi @awvwgk as a follow up I got dftb+ to compile and for the same system described above it looks like convergence is pretty rapid with a pretty small MP kpoint mesh. However, the converged results do not agree with the largest supercell energy reported above. The gamma point and molecular energies do agree to high precision. Do you have some example crystals with GFN2-xTB energies that you believe are converged? It would be useful for me to make sure I'm getting the right answers. |
I have been testing tblite, DFTB+, and CP2k for a while. tblibe as a stand-alone calculator is the most attractive. Yet, it does luck some features, like k-point sampling. |
For me it was easiest to get a good k-point implementation by integrating tblite in DFTB+ and leverage the available k-point aware SCF. For an implementation in tblite we can rely on an external library, but it has to be available in the SCF (so in Fortran) to be useful. |
This could easily be a feature but I'm filing as an issue in case it's not. As a test I computed the cohesive energy of ammonia crystal (from the X23 test set) using the given unit cell as well as 2x2x2, 3x3x3, etc supercells. The energy I compute is 3.25, 9.25 and 10.10 kcal/mol/molecule for the unitcell, 2x2x2, and 3x3x3 respectively. For larger supercells I get a segfault.
Can you advise? Is this due to lack of k-point sampling (gamma point approx)? Is this expected? Is there a hard limit on the system size?
Molecule geometry:
Unit cell geometry:
2x2x2 cell
The text was updated successfully, but these errors were encountered: