Atomic polarization tensors via numerical differentiation#4287
Merged
oschuett merged 18 commits intocp2k:masterfrom Jul 21, 2025
Merged
Atomic polarization tensors via numerical differentiation#4287oschuett merged 18 commits intocp2k:masterfrom
oschuett merged 18 commits intocp2k:masterfrom
Conversation
fstein93
reviewed
Jul 12, 2025
| !> \author Leo Decking, Hossam Elgabarty | ||
| ! ************************************************************************************************** | ||
|
|
||
| MODULE qs_apt_fdiff_types |
Contributor
There was a problem hiding this comment.
Does it make sense to move these definitions into the module qs_apt_fdiff_methods?
oschuett
reviewed
Jul 12, 2025
Member
|
Please add your new Fortran source files to src/CMakeLists.txt so CMake can find them. |
Member
|
Thanks for the PR :) I was wondering if you did happen to compare the APTs and the nuclear charge (sum average of the trace of APT) between analytical and numerical methods. If so, how close are they? Best, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement atomic polarization tensors as numerical derivatives of the forces with respect to an external electric field.
The differentiation is performed using symmetric differences, requiring a total of six force calculations under external e-field. This is much faster than analytic DFPT-based calculations.
Although this is not a DFPT calculation, for the sake of user convenience the calculation is requested using a new keyword "APT_FD" under the DCDR section. The electric field strength can be set with "APT_FD_DE".
Best regards,
Leo Decking and Hossam Elgabarty