Skip to content
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

spherical averaged dft #17

Open
binghuang2018 opened this issue Jul 31, 2021 · 3 comments
Open

spherical averaged dft #17

binghuang2018 opened this issue Jul 31, 2021 · 3 comments

Comments

@binghuang2018
Copy link

Is it possible to run spherically-averaged DFT, much the same as for spherically-averaged HF using the current implementation of PySCF? Or I have to modify the relevant code for HF to suit my purpose?

@binghuang2018
Copy link
Author

[from Qiming Sun's reply by email]

Is it an atomic calculation? pyscf/scf/atom_hf.py can handle spherically
averaged HF calculations. It does not support DFT. Extending this module is not
difficult. You would like pseudo code as below

class SphericalDFT(rks.RKS, atom_hf.AtomSphericAverageRHF):
    def __init__(self, mol, *args, **kwargs):
        atom_hf.AtomSphericAverageRHF.__init__(self, mol)
        rks.RKS.__init__(self, mol, *args, **kwargs)

    eig = atom_hf.AtomSphericAverageRHF.eig

    get_occ = atom_hf.AtomSphericAverageRHF.get_occ

    get_grad = atom_hf.AtomSphericAverageRHF.get_grad

For molecules, there are some functions to manipulate the occupancy for SCF in
pyscf/scf/addons.py e.g. frac_occ_ allows to assign fractional occupancies for
degenerated orbitals. Some helper functions have examples in examples/scf.

@gkc1000 gkc1000 reopened this Aug 2, 2021
@gkc1000
Copy link
Collaborator

gkc1000 commented Aug 2, 2021

Bing: can you put this on pyscf/pyscf? I'd like to open assign this as feature request.

@binghuang2018
Copy link
Author

binghuang2018 commented Aug 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants