Skip to content

Commit

Permalink
update for set_frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanwsr authored and fishjojo committed Jul 13, 2024
1 parent 0f1ac8e commit 8a6eddd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/user/cc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ To freeze occupied and/or unoccupied orbitals with finer control, a list of
# freeze 2 core orbitals and 3 unoccupied orbitals
mycc = cc.CCSD(mf, frozen=[0,1,16,17,18]).run()

The number of core orbitals to be frozen can be generated automatically::
mycc = cc.CCSD(mf).set_frozen().run()

See also :ref:`user_mp2_frozen` for more information on the rule of freezing orbitals.

Equation-of-motion coupled-cluster theory
=========================================
Expand Down
Binary file added source/user/frozencore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions source/user/mp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Analytical nuclear gradients can be calculated :cite:`Pople1979,Handy1985,Yamagu
mygrad = mymp.nuc_grad_method().run()


.. _user_mp2_frozen:

Frozen orbitals
===============

Expand All @@ -113,6 +115,15 @@ keyword argument::
# freeze 2 core orbitals and 3 unoccupied orbitals
mymp = mp.MP2(mf, frozen=[0,1,16,17,18]).run()

The number of core orbitals to be frozen can be generated automatically::
mymp = mp.MP2(mf).set_frozen().run()

``set_frozen()`` will freeze the core orbitals determined by sum of the core electrons of atoms, which are shown as follows.
The current rule is the same as that of ORCA program.

.. image:: ./frozencore.png
:width: 600

Job control
===========
Expand Down

0 comments on commit 8a6eddd

Please sign in to comment.