Skip to content

Commit 8a6eddd

Browse files
jeanwsrfishjojo
authored andcommitted
update for set_frozen
1 parent 0f1ac8e commit 8a6eddd

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

source/user/cc.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ To freeze occupied and/or unoccupied orbitals with finer control, a list of
104104
# freeze 2 core orbitals and 3 unoccupied orbitals
105105
mycc = cc.CCSD(mf, frozen=[0,1,16,17,18]).run()
106106

107+
The number of core orbitals to be frozen can be generated automatically::
108+
109+
mycc = cc.CCSD(mf).set_frozen().run()
110+
111+
See also :ref:`user_mp2_frozen` for more information on the rule of freezing orbitals.
107112

108113
Equation-of-motion coupled-cluster theory
109114
=========================================

source/user/frozencore.png

115 KB
Loading

source/user/mp.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Analytical nuclear gradients can be calculated :cite:`Pople1979,Handy1985,Yamagu
9595
mygrad = mymp.nuc_grad_method().run()
9696

9797

98+
.. _user_mp2_frozen:
99+
98100
Frozen orbitals
99101
===============
100102

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

118+
The number of core orbitals to be frozen can be generated automatically::
119+
120+
mymp = mp.MP2(mf).set_frozen().run()
121+
122+
``set_frozen()`` will freeze the core orbitals determined by sum of the core electrons of atoms, which are shown as follows.
123+
The current rule is the same as that of ORCA program.
124+
125+
.. image:: ./frozencore.png
126+
:width: 600
116127

117128
Job control
118129
===========

0 commit comments

Comments
 (0)