-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
65 lines (61 loc) · 1.21 KB
/
main.py
File metadata and controls
65 lines (61 loc) · 1.21 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from job import Job
from report import TDDFTReport
from utils import read_config, read_sys_input
# calc params
opt_params = {
'contrl': {
'scftyp': 'rhf',
'runtyp': 'optimize',
'units': 'angs',
'maxit': 199
},
'system': {'mwords': 500},
'basis': {
'gbasis': 'n31',
'ngauss': 6,
'ndfunc': 1
},
'statpt': {
'opttol': 0.0001,
'nstep': 1000
},
'guess': {'guess': 'huckel'},
'dft': {'dfttyp': 'b3lyp'}
}
nrg_params = {
'contrl': {
'scftyp': 'rhf',
'runtyp': 'energy',
'tddft': 'excite',
'units': 'angs'
},
'system': {
'mwords': 5000,
'memddi': 2000
},
'basis': {
'gbasis': 'n31',
'ngauss': 6,
'ndfunc': 1,
'npfunc': 1
},
'guess': {'guess': 'huckel'},
'dft': {'dfttyp': 'b3lyp'}
}
# preparation
config = read_config()
material, material_name = read_sys_input()
report = TDDFTReport(
material=material,
material_name=material_name
)
# main
job = Job(
material=material,
material_name=material_name,
config=config,
opt_params=opt_params,
nrg_params=nrg_params,
report=report
)
job.job()