Skip to content

Commit 04e7eda

Browse files
committed
edit scf
1 parent ebd760e commit 04e7eda

File tree

3 files changed

+47
-67
lines changed

3 files changed

+47
-67
lines changed

source/modules/scf.rst

Lines changed: 40 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -7,74 +7,50 @@
77
:synopsis: restricted and unrestricted, closed shell and open shell Hartree-Fock methods
88

99
The :mod:`scf` module implements restricted and unrestricted, closed shell and open shell Hartree-Fock methods.
10-
To run a simple HF calculation with SCF::
11-
12-
import pyscf
13-
mol = pyscf.M(
14-
atom = 'H 0 0 0; F 0 0 1.1', # in Angstrom
15-
basis = 'ccpvdz',
16-
symmetry = True,
17-
)
18-
myhf = mol.HF()
19-
myhf.kernel()
20-
# Orbital energies, Mulliken population etc.
21-
myhf.analyze()
22-
# myhf object can also be created using the APIs of gto, scf module
23-
from pyscf import gto, scf
24-
mol = gto.M(
25-
atom = 'H 0 0 0; F 0 0 1.1', # in Angstrom
26-
basis = 'ccpvdz',
27-
symmetry = True,
28-
)
29-
myhf = scf.HF(mol)
30-
myhf.kernel()
10+
3111

3212
Examples
3313
========
3414

35-
:file:`examples/scf/00-simple_hf.py`
36-
:file:`examples/scf/01-h2o.py`
37-
:file:`examples/scf/02-ghf.py`
38-
:file:`examples/scf/02-rohf_uhf.py`
39-
:file:`examples/scf/03-level_shift.py`
40-
:file:`examples/scf/04-dirac_hf.py`
41-
:file:`examples/scf/05-breit_gaunt.py`
42-
:file:`examples/scf/10-glycine.py`
43-
:file:`examples/scf/11-linear_dep.py`
44-
:file:`examples/scf/12-fast_hf.py`
45-
:file:`examples/scf/13-symmetry.py`
46-
:file:`examples/scf/15-initial_guess.py`
47-
:file:`examples/scf/16-h2_scan.py`
48-
:file:`examples/scf/17-stability.py`
49-
:file:`examples/scf/20-density_fitting.py`
50-
:file:`examples/scf/21-x2c.py`
51-
:file:`examples/scf/22-newton.py`
52-
:file:`examples/scf/23-decorate_scf.py`
53-
:file:`examples/scf/24-callback.py`
54-
:file:`examples/scf/24-tune_diis.py`
55-
:file:`examples/scf/30-scan_pes.py`
56-
:file:`examples/scf/31-cr_atom_rohf_tune_init_guess.py`
57-
:file:`examples/scf/31-v_atom_rohf.py`
58-
:file:`examples/scf/32-break_spin_symm.py`
59-
:file:`examples/scf/40-apply_electric_field.py`
60-
:file:`examples/scf/40-customizing_hamiltonian.py`
61-
:file:`examples/scf/41-hf_with_given_densityfit_ints.py`
62-
:file:`examples/scf/42-remove_linear_dep.py`
63-
:file:`examples/scf/43-custom_get_jk.py`
64-
:file:`examples/scf/50-mom-deltaSCF.py`
65-
:file:`examples/scf/51-elecoup_mom.py`
66-
:file:`examples/scf/52-dynamically_control_level_shift.py`
67-
:file:`examples/scf/53-dynamic_sz.py`
68-
:file:`examples/scf/54-fractional_occupancy.py`
69-
:file:`examples/scf/55-overload_convergence_criteria.py`
70-
:file:`examples/scf/56-h2_symm_breaking.py`
71-
:file:`examples/scf/14-restart.py`
72-
:file:`examples/scf/70-background_and_hot_tuning.py`
73-
:file:`examples/scf/71-patch_scf_kernel.py`
74-
75-
76-
Stability analysis
77-
==================
15+
:download:`examples/scf/00-simple_hf.py </../examples/scf/00-simple_hf.py>`
16+
:download:`examples/scf/01-h2o.py </../examples/scf/01-h2o.py>`
17+
:download:`examples/scf/02-ghf.py </../examples/scf/02-ghf.py>`
18+
:download:`examples/scf/02-rohf_uhf.py </../examples/scf/02-rohf_uhf.py>`
19+
:download:`examples/scf/03-level_shift.py </../examples/scf/03-level_shift.py>`
20+
:download:`examples/scf/04-dirac_hf.py </../examples/scf/04-dirac_hf.py>`
21+
:download:`examples/scf/05-breit_gaunt.py </../examples/scf/05-breit_gaunt.py>`
22+
:download:`examples/scf/10-glycine.py </../examples/scf/10-glycine.py>`
23+
:download:`examples/scf/11-linear_dep.py </../examples/scf/11-linear_dep.py>`
24+
:download:`examples/scf/12-fast_hf.py </../examples/scf/12-fast_hf.py>`
25+
:download:`examples/scf/13-symmetry.py </../examples/scf/13-symmetry.py>`
26+
:download:`examples/scf/14-restart.py </../examples/scf/14-restart.py>`
27+
:download:`examples/scf/15-initial_guess.py </../examples/scf/15-initial_guess.py>`
28+
:download:`examples/scf/16-h2_scan.py </../examples/scf/16-h2_scan.py>`
29+
:download:`examples/scf/17-stability.py </../examples/scf/17-stability.py>`
30+
:download:`examples/scf/20-density_fitting.py </../examples/scf/20-density_fitting.py>`
31+
:download:`examples/scf/21-x2c.py </../examples/scf/21-x2c.py>`
32+
:download:`examples/scf/22-newton.py </../examples/scf/22-newton.py>`
33+
:download:`examples/scf/23-decorate_scf.py </../examples/scf/23-decorate_scf.py>`
34+
:download:`examples/scf/24-callback.py </../examples/scf/24-callback.py>`
35+
:download:`examples/scf/24-tune_diis.py </../examples/scf/24-tune_diis.py>`
36+
:download:`examples/scf/30-scan_pes.py </../examples/scf/30-scan_pes.py>`
37+
:download:`examples/scf/31-cr_atom_rohf_tune_init_guess.py </../examples/scf/31-cr_atom_rohf_tune_init_guess.py>`
38+
:download:`examples/scf/31-v_atom_rohf.py </../examples/scf/31-v_atom_rohf.py>`
39+
:download:`examples/scf/32-break_spin_symm.py </../examples/scf/32-break_spin_symm.py>`
40+
:download:`examples/scf/40-apply_electric_field.py </../examples/scf/40-apply_electric_field.py>`
41+
:download:`examples/scf/40-customizing_hamiltonian.py </../examples/scf/40-customizing_hamiltonian.py>`
42+
:download:`examples/scf/41-hf_with_given_densityfit_ints.py </../examples/scf/41-hf_with_given_densityfit_ints.py>`
43+
:download:`examples/scf/42-remove_linear_dep.py </../examples/scf/42-remove_linear_dep.py>`
44+
:download:`examples/scf/43-custom_get_jk.py </../examples/scf/43-custom_get_jk.py>`
45+
:download:`examples/scf/50-mom-deltaSCF.py </../examples/scf/50-mom-deltaSCF.py>`
46+
:download:`examples/scf/51-elecoup_mom.py </../examples/scf/51-elecoup_mom.py>`
47+
:download:`examples/scf/52-dynamically_control_level_shift.py </../examples/scf/52-dynamically_control_level_shift.py>`
48+
:download:`examples/scf/53-dynamic_sz.py </../examples/scf/53-dynamic_sz.py>`
49+
:download:`examples/scf/54-fractional_occupancy.py </../examples/scf/54-fractional_occupancy.py>`
50+
:download:`examples/scf/55-overload_convergence_criteria.py </../examples/scf/55-overload_convergence_criteria.py>`
51+
:download:`examples/scf/56-h2_symm_breaking.py </../examples/scf/56-h2_symm_breaking.py>`
52+
:download:`examples/scf/70-background_and_hot_tuning.py </../examples/scf/70-background_and_hot_tuning.py>`
53+
:download:`examples/scf/71-patch_scf_kernel.py </../examples/scf/71-patch_scf_kernel.py>`
7854

7955

8056
Addons

source/theory/pbc/df.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ An :class:`FFTDF` object can be initialized as follows::
4949
>>> print(mf.with_df)
5050
<pyscf.pbc.df.fft.FFTDF object at 0x1206b0f28>
5151

52-
As the default integral scheme of PBC calculations,
52+
As the default DF scheme of PBC calculations,
5353
an :class:`FFTDF` object is created when initializing the PBC mean-field object and held in the attribute :attr:`with_df`.
5454

5555
4-index ERI tensor and integral transformation

source/theory/scf.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ where :math:`Z_{\alpha}` denotes the nuclear charge of the :math:`\alpha`-th ato
211211

212212
.. note::
213213

214-
For details about how to compute the Coulomb (:math:`\mathbf{J}`)
215-
and exchange (:math:`\mathbf{K}`) integrals, see :numref:`theory_pbc_df`.
214+
For details about how to compute the Coulomb (J)
215+
and exchange (K) integrals, see :numref:`theory_pbc_df`.
216216

217217
Finally, the total electronic energy differs from the molecular case only by a k-point summation:
218218

@@ -365,6 +365,10 @@ Level shifting and smearing
365365
===========================
366366

367367

368+
Stability analysis
369+
==================
370+
371+
368372
References
369373
==========
370374
.. bibliography:: ref_scf.bib

0 commit comments

Comments
 (0)