Skip to content

Conversation

@AsTonyshment
Copy link
Collaborator

@AsTonyshment AsTonyshment commented Sep 19, 2024

Linked Issue

Fix #4938

What's Changed?

  • The control logic for the LCAO basis set has been refined and is now split into three distinct parameters: out_pchg, out_wfc_norm, and out_wfc_re_im. This separation makes the control flow much clearer and more intuitive.
  • Previously, setting out_wfc_r=1 would generate an output in an obscure and unstructured format. This PR introduces support for outputting real-space wave functions in the widely-used Gaussian CUBE format, offering greater clarity and usability. (Only support LCAO now, PW will follow later)

Warnings!!!

The functionalities have not been thoroughly tested, so their correctness in certain circumstances remains uncertain. I plan to conduct further testing and address any bugs that may arise.

@AsTonyshment AsTonyshment marked this pull request as draft September 20, 2024 04:17
@AsTonyshment AsTonyshment changed the title Support outputting real space wave functions in Gaussian CUBE format Feature: Support outputting real space wave functions in Gaussian CUBE format Sep 20, 2024
Copy link
Collaborator

@kirk0830 kirk0830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR refactors the output of wavefunction on realspace grid, make the datastructureorganizedas a standard Gaussian cube file, correct variables names to follow the latest convention in ABACUS.

this PR changes reference values of integrated test case, other developers should be informed of it.

However, there are still ill-formed functions functions with name followed by "_1", and misleading function calls. Hope will be refactored soon.

@mohanchen mohanchen added the Features Needed The features are indeed needed, and developers should have sophisticated knowledge label Oct 10, 2024
@mohanchen mohanchen merged commit c212bdf into deepmodeling:develop Oct 10, 2024
14 checks passed
@AsTonyshment AsTonyshment deleted the pchg_wf_param branch October 10, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Features Needed The features are indeed needed, and developers should have sophisticated knowledge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can the output of out_wfc_r be changed to standard Gaussian CUBE files?

3 participants