Skip to content

Bug: Incorrect calculation of partial charge for multi-k-points under both PW and LCAO when symmetry is turned on #4740

@AsTonyshment

Description

@AsTonyshment

Describe the bug

I am currently writing a tutorial on how to calculate and visualize band-decomposed (partial) charge density. However, when I attempt to calculate and draw the .cube charge file, the results from PW and LCAO basis set appear to be inconsistent. Attached are some benchmark results using 2D graphene with a 2×2×2 k-points sampling.

BAND1 (VASP)
image
BAND1 (ABACUS, LCAO)
image
BAND1 (ABACUS, PW)
image

It appears that under the PW basis set, only the charge of certain specific k-points is taken into account. The observed pattern matches the result of the k-point (0.5, 0.5, 0.5) (in terms of k-points sampling using DIRECT coordinates in output file kpoints):

BAND1 K(0.5, 0.5, 0.5) (VASP)
image
BAND1 K(0.5, 0.5, 0.5) (ABACUS, LCAO)
image

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).

Metadata

Metadata

Assignees

Labels

BugsBugs that only solvable with sufficient knowledge of DFTSymmetryThis issue is related to symmetry

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions