Add the framework of DFPT in plane wave basis#7356
Open
mohanchen wants to merge 2 commits into
Open
Conversation
added 2 commits
May 18, 2026 09:45
This commit adds the complete framework for a Density Functional Perturbation Theory (DFPT) solver for plane-wave basis set in ABACUS. New files added: - source/source_pw/module_dfpt/dfpt_pw.h/cpp - Main DFPT-PW interface (Pimpl pattern) - source/source_pw/module_dfpt/dfpt_pw_data.h/cpp - PW-specific data container - source/source_pw/module_dfpt/dfpt_pert.h/cpp - Perturbation construction - source/source_pw/module_dfpt/dfpt_stern.h/cpp - Sternheimer equation solver - source/source_pw/module_dfpt/dfpt_rho.h/cpp - First-order density handling - source/source_pw/module_dfpt/dfpt_phon.h/cpp - Phonon/dynamical matrix - source/source_pw/module_dfpt/dfpt_q0.h/cpp - q=0 special handling (dielectric, Born) - source/source_pw/module_dfpt/dfpt_metal.h/cpp - Metal system handling - source/source_pw/module_dfpt/CMakeLists.txt - Module build configuration - source/source_pw/module_dfpt/README.md - Module documentation - source/source_cell/qlist.h/cpp - q-point management - source/source_esolver/esolver_dfpt_pw.h/cpp - DFPT energy solver Modified files: - CMakeLists.txt - Added module_dfpt to target_link_libraries - source/source_pw/CMakeLists.txt - Added module_dfpt subdirectory - source/source_cell/CMakeLists.txt - Added qlist.cpp and qlist.h - source/source_esolver/CMakeLists.txt - Added esolver_dfpt_pw.cpp Note: This code is in design phase and has not been put into production yet. All implementation classes contain stub implementations that need to be filled in.
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.
Add the framework of DFPT in plane wave basis