-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBe_ccsd_grids.py
More file actions
44 lines (40 loc) · 1.09 KB
/
Copy pathBe_ccsd_grids.py
File metadata and controls
44 lines (40 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import logging
import sys as csys
from pyscf import gto, scf
from kelvin.ccsd import ccsd
from kelvin.scf_system import SCFSystem
logging.basicConfig(
format='%(message)s',
level=logging.INFO,
stream=csys.stdout)
mol = gto.M(
verbose=0,
atom='Be 0 0 0',
basis='sto-3G')
m = scf.RHF(mol)
scf.conv_tol_grad = 1e-12
m.conv_tol = 1e-12
logging.info('SCF energy: %f' % m.scf())
T = 0.1
mu = -0.2
sys = SCFSystem(m, T, mu)
ccsdT = ccsd(
sys, iprint=1, T=T, mu=mu, max_iter=45,
damp=0.2, ngrid=100, econv=1e-9)
Ecctot, Ecc = ccsdT.run()
ccsdT = ccsd(
sys, iprint=1, T=T, mu=mu, max_iter=45,
damp=0.2, ngrid=100, quad='ln', econv=1e-9)
Ecctot, Ecc_ln = ccsdT.run()
ccsdT = ccsd(
sys, iprint=1, T=T, mu=mu, max_iter=45,
damp=0.2, ngrid=100, quad='sin', econv=1e-9)
Ecctot, Ecc_sin = ccsdT.run()
ccsdT = ccsd(
sys, iprint=1, T=T, mu=mu, max_iter=45,
damp=0.2, ngrid=100, quad='quad', econv=1e-9)
Ecctot, Ecc_quad = ccsdT.run()
logging.info("{}".format(Ecc))
logging.info("{}".format(Ecc_ln))
logging.info("{}".format(Ecc_sin))
logging.info("{}".format(Ecc_quad))