-
Notifications
You must be signed in to change notification settings - Fork 145
Fix cal_edm_tddft #5396
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
Fix cal_edm_tddft #5396
Conversation
|
Yes, at least part of the reason. Without fixing cal_edm_tddft, the ionic dynamics of periodic systems is certainly incorrect. I'll link issue #5333 in this PR. Please test issue #5333 again with this PR to see if the problem is resolved. @AsTonyshment |
Thanks a lot. This really has confused me for a long time. |
|
Excellent job. |
* Add files via upload * Update cal_edm_tddft.cpp * Update result.ref * Fix wrong parameters in integrate test * Update result.ref * Update result.ref * Update result.ref * Update result.ref * Update result.ref * Update result.ref * Update result.ref * Update result.ref
The force calculations in rt-TDDFT for periodic systems are incorrect and inconsistent with the results of AIMD. This problem was first discovered by @dyzheng in PR #4879 .This issue is caused by the incorrect implementation of the cal_edm_tddft function, which does not update the HS matrix for each k-point and does not use the correct matrix indices. For ground state calculations, rt-TDDFT should yield results that are expected to be consistent with AIMD. Below is a display of the results before and after this fix.



AIMD:
rt-TDDFT(before fix):
The forces in this case is completely unreasonable.
rt-tddft(after fix):
There is still a very small numerical error, but the results are good enough to demonstrate that the fix is correct.
Linked Issue
Fix #5333