Debian Codegraph @

doc/tutorialsexercises/energetics/rpa_tut/agts.py

raw
1 from myqueue.workflow import run
2
3 ds = [1.75, 2.0, 2.25, 2.5, 2.75, 3.0, 3.25, 3.5, 3.75,
4 4.0, 5.0, 6.0, 10.0]
5
6
7 def workflow():
8 with run(script='gs_N2.py', cores=16):
9 r1 = run(script='frequency.py', tmax='3h')
10 r2 = run(script='con_freq.py', cores=2, tmax='16h')
11 r3 = run(script='rpa_N2.py', cores=48, tmax='30m')
12 with r1, r2:
13 run(script='plot_w.py')
14 with r2:
15 run(script='plot_con_freq.py')
16 with r3:
17 run(script='extrapolate.py')
18
19 with r3: # r1, r2, r3:
20 run(shell='rm', args=['N.gpw', 'N2.gpw']) # clean up
21
22 deps = []
23 for d in ds:
24 r = run(script='c2cu.py', args=['RPA', d], cores=40, tmax='5h',
25 weight=1)
26 deps.append(r)
27
28 for xc in ['LDA', 'vdW-DF']:
29 r = run(script='c2cu.py', args=[xc] + ds, cores=24, tmax='5h')
30 deps.append(r)
31
32 run(script='plot_c2cu.py', deps=deps)