Skip to content

Feature Request: Support arbitrary Libxc hybrid functionals #7787

Description

@jeanwsr

Describe the bug

This is a band job generated by AsterFire Go platform (ABACUS v3.10.1):

INPUT_PARAMETERS

...

# Electronic structure
basis_type          lcao
ks_solver           cusolver
dft_functional      HYB_GGA_XC_CAM_B3LYP
smearing_method     gauss
smearing_sigma      0.004
mixing_type         broyden
mixing_beta         0.4
mixing_ndim         20
mixing_gg0          1.0
gamma_only          0
scf_nmax            100
scf_thr             1e-07

...

In running_scf.log I found

 LCAO ALGORITHM --------------- ION=   1  ELEC=  14--------------------------------

 Density error is 6.11145223884e-08
----------------------------------------------------------
     Energy           Rydberg                 eV          
----------------------------------------------------------
 E_KohnSham     -21.1420813815       -287.6527743683      
 E_KS(sigma->0) -21.1420813815       -287.6527743683      
 E_Harris       -21.1420826434       -287.6527915366      
 E_band         -4.0734737497        -55.4224536500       
 E_one_elec     -157.0637584030      -2136.9620635763     
 E_Hartree      79.6573363944        1083.7936624667      
 E_xc           -5.6240622546        -76.5192925694       
 E_Ewald        61.8884028817        842.0349193107       
 E_entropy(-TS) -0.0000000000        -0.0000000000        
 E_descf        0.0000000000         0.0000000000         
 E_exx          0.0000000000         0.0000000000         
 E_Fermi        0.2450171022         3.3336286970         
----------------------------------------------------------

which seems incorrect since CAM-B3LYP is a RSH functional.

Expected behavior

CAM-B3LYP should have E_exx.

To Reproduce

No response

Environment

No response

Additional Context

No response

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

EXX and lr-TDDFTRelated to EXX or lr-TDDFTFeatures NeededThe features are indeed needed, and developers should have sophisticated knowledgeInput&OutputSuitable for coders without knowing too many DFT details

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions