- 
                Notifications
    
You must be signed in to change notification settings  - Fork 145
 
Feature: Calculate and output electron localization function (ELF) with KSDFT and OFDFT #5139
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
Conversation
…th KSDFT in both PW and LCAO basis.
119_PW_out_elf, 219_NO_out_elf, 919_OF_out_elf
| 
           Hi, do you have some model systems tests proving the correctness of implementation? you can calculate ELF of, for example a water molecule and make qualitative comparison with the result from CP2K, like #4937  | 
    
          
 Thanks for your suggestions, I have uploaded several examples comparing the ELF obtained by ABACUS and another script. Besides, could you please send me the example of water molecule and the output files from CP2K? This will help me further verify the correctness of the ELF calculations.  | 
    
| 
           I have calculated the ELF of water molecular (  | 
    
| 
           @sunliang98 hi, you can try with these orbitals:  | 
    
…the numerical instability caused by LCAO basis, as suggested by 卢天, 陈飞武. 电子定域化函数的含义与函数形式[J]. 物理化学学报, 2011, 27(12): 2786-2792.
          
 Thanks, the results obtained by these orbitals ((left figure)) are much better than previous one. Besides, I have added a small number (1e-5) onto the numerator of chi to suppress the numerical instability caused by LCAO basis, as suggested by 卢天, 陈飞武. 电子定域化函数的含义与函数形式[J]. 物理化学学报, 2011, 27(12): 2786-2792, and the results were significantly improved (right figure).  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your effort. I hope this PR can be an example illustrating how to get the kinetic density even if not with metaGGA functional. Present kernel function for calculating the tau is named as meta_op, hope it will have another more general and appropriate name soon.
| 
           @sunliang98 Hello, I use v3.8.0 with   | 
    




Reminder
Linked Issue
Fix #...
Unit Tests and/or Case Tests for my changes
119_PW_out_elf,219_NO_out_elf,919_OF_out_elfWhat's changed?
Calculate and output electron localization function (ELF) with KSDFT and OFDFT.

In order to verify the correctness of the ELF obtained by ABACUS, I have writed another script as reference, which is verified by calculating the Pauli potential. Following are some examples.
PW

LCAO

OFDFT with WT KEDF

PW

LCAO

Any changes of core modules? (ignore if not applicable)