10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-15 02:23:51 +01:00
QuantumPackage/src/scf_utils
2020-04-03 14:49:11 -05:00
..
damping_scf.irp.f Initial commit 2019-01-25 11:39:31 +01:00
diagonalize_fock_cplx.irp.f scf kpts 2020-03-20 12:22:10 -05:00
diagonalize_fock.irp.f Doc' 2019-03-13 15:56:44 +01:00
diis_cplx.irp.f scf kpts 2020-03-20 12:22:10 -05:00
diis.irp.f Initial commit 2019-01-25 11:39:31 +01:00
EZFIO.cfg Initial commit 2019-01-25 11:39:31 +01:00
fock_matrix_cplx.irp.f scf kpts 2020-03-20 12:22:10 -05:00
fock_matrix.irp.f scf kpts 2020-03-20 12:22:10 -05:00
huckel_cplx.irp.f scf kpts 2020-03-18 16:30:27 -05:00
huckel.irp.f Initial commit 2019-01-25 11:39:31 +01:00
NEED Initial commit 2019-01-25 11:39:31 +01:00
print_debug_scf_cplx.irp.f Renaming complex -> cplx 2020-03-05 09:06:29 +01:00
README.rst Initial commit 2019-01-25 11:39:31 +01:00
roothaan_hall_scf_cplx.irp.f started kpts nos 2020-04-03 14:49:11 -05:00
roothaan_hall_scf.irp.f Warnings in documentation 2019-01-29 17:09:08 +01:00
scf_density_matrix_ao_cplx.irp.f working on scf kpts 2020-03-18 15:55:53 -05:00
scf_density_matrix_ao.irp.f Develop (#15) 2019-03-07 16:29:06 +01:00

=========
scf_utils
=========



The scf_utils module is an abstract module which contains the basics to perform *Restricted* SCF calculations (the
spatial part of the |MOs| is common for alpha and beta spinorbitals) based on a single-determinant wave function.

This module does not produce any executable *and must not do*, but instead it contains everything one needs to perform an orbital optimization based on an Fock matrix.
The ``scf_utils`` module is meant to be included in the :file:`NEED` of the various single determinant SCF procedures, such as ``hartree_fock`` or ``kohn_sham``, where a specific definition of the Fock matrix is given (see :file:`hartree_fock fock_matrix_hf.irp.f` for an example).

All SCF programs perform the following actions:


#. Compute/Read all the one- and two-electron integrals, and store them in memory

#. Check in the |EZFIO| database if there is a set of |MOs|. If there is, it
   will read them as initial guess. Otherwise, it will create a guess.
#. Perform the |SCF| iterations based on the definition of the Fock matrix


The main keywords/options are:

* :option:`scf_utils thresh_scf`
* :option:`scf_utils level_shift`

At each iteration, the |MOs| are saved in the |EZFIO| database. Hence, if the calculation
crashes for any unexpected reason, the calculation can be restarted by running again
the |SCF| with the same |EZFIO| database.

The `DIIS`_ algorithm is implemented, as well as the `level-shifting`_ method.
If the |SCF| does not converge, try again with a higher value of :option:`level_shift`.

To start a calculation from scratch, the simplest way is to remove the
``mo_basis`` directory from the |EZFIO| database, and run the |SCF| again.

.. _DIIS: https://en.wikipedia.org/w/index.php?title=DIIS
.. _level-shifting: https://doi.org/10.1002/qua.560070407