pyctramer 0.1.103__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyctramer-0.1.103 → pyctramer-0.2.2}/PKG-INFO +1 -1
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/FGR.py +8 -7
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/SpinBoson.py +2 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/Utilities.py +14 -7
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer.egg-info/PKG-INFO +1 -1
- {pyctramer-0.1.103 → pyctramer-0.2.2}/setup.py +1 -1
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/AnalyzeQC.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/ConstructFF.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/JobControl.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/MarcusAA.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/RunMD.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/SubmitQC.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/__init__.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer/pyctramer.py +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer.egg-info/SOURCES.txt +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer.egg-info/dependency_links.txt +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/pyctramer.egg-info/top_level.txt +0 -0
- {pyctramer-0.1.103 → pyctramer-0.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyctramer
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python package for Charge Transfer Rate from Atomistic Molecular dynamics, Electronic structure, and Rate theory
|
|
5
5
|
Home-page: https://www.github.com/ctramer/PyCTRAMER
|
|
6
6
|
Author: Zengkui Liu, Dominikus Brian, and Xiang Sun
|
|
@@ -12,6 +12,7 @@ exp = np.exp
|
|
|
12
12
|
I = 1j
|
|
13
13
|
|
|
14
14
|
def run_step7(i, job_control, dict_of_simulation, job_info):
|
|
15
|
+
# print('')
|
|
15
16
|
#print(arrow_str,"Started Step 7: FGR")
|
|
16
17
|
project = dict_of_simulation['project']
|
|
17
18
|
work_dir = dict_of_simulation['work_dir']
|
|
@@ -46,14 +47,14 @@ def run_step7(i, job_control, dict_of_simulation, job_info):
|
|
|
46
47
|
#print("omega span (eV) = ", dw_QM * au2eV * point2)
|
|
47
48
|
print('-DeltaE = ', hw_DA * au2eV, ' eV\nGamma_DA = ', Gamma_DA*au2eV, ' eV\nEr = ', np.sum(omega**2*req**2)/2.*au2eV, ' eV')
|
|
48
49
|
print("The following 2 rate constants are from direct integral and FFT, respectively. ")
|
|
49
|
-
print('QM ', ApproxRates(Ct_exact,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au, '
|
|
50
|
-
print('W0 ', ApproxRates(Ct_W0,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au, '
|
|
50
|
+
print('QM ', ApproxRates(Ct_exact,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au*1e12, 'Hz' )
|
|
51
|
+
print('W0 ', ApproxRates(Ct_W0,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au*1e12, 'Hz' )
|
|
51
52
|
#print('Marcus-Levitch ', MarcusLevichRate(omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au,'THz')
|
|
52
|
-
print('CAV ', ApproxRates(Ct_CAV,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au, '
|
|
53
|
-
print('CD ', ApproxRates(Ct_CD,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au, '
|
|
54
|
-
print('C0 ', ApproxRates(Ct_C0,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au, '
|
|
55
|
-
print('Marcus-Levitch ', MarcusLevichRate(omega,req,beta,t,hw_DA,Gamma_DA)*ps2au,'
|
|
56
|
-
print('Marcus Theory ', MarcusRate(omega,req,beta,t,hw_DA,Gamma_DA)*ps2au,'
|
|
53
|
+
print('CAV ', ApproxRates(Ct_CAV,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au*1e12, 'Hz' )
|
|
54
|
+
print('CD ', ApproxRates(Ct_CD,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au*1e12, 'Hz' )
|
|
55
|
+
print('C0 ', ApproxRates(Ct_C0,omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*dt_au*1e12, 'Hz' )
|
|
56
|
+
print('Marcus-Levitch ', MarcusLevichRate(omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*1e12,'Hz' )
|
|
57
|
+
print('Marcus Theory ', MarcusRate(omega,req,beta,t,hw_DA,Gamma_DA)*ps2au*1e12,'Hz')
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
stroutput = ""
|
|
@@ -4,6 +4,7 @@ from .Utilities import *
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def run_step6(i,job_control,dict_of_simulation,job_info):
|
|
7
|
+
# print('')
|
|
7
8
|
#print(arrow_str,"Started Step 6: SpinBoson")
|
|
8
9
|
project = dict_of_simulation['project']
|
|
9
10
|
work_dir = dict_of_simulation['work_dir']
|
|
@@ -42,6 +43,7 @@ def run_step6(i,job_control,dict_of_simulation,job_info):
|
|
|
42
43
|
LE_path = md_dir + "/Traj_"+MD_dyn_state+"/"+project +"_"+ caseid+"_E_LE_TRAJ_"+MD_dyn_state+"_NVE.dat"
|
|
43
44
|
CT_path = md_dir + "/Traj_"+MD_dyn_state+"/"+project +"_"+ caseid+"_E_"+namemax[1]+"_TRAJ_"+MD_dyn_state+"_NVE.dat"
|
|
44
45
|
kcal2eV = 0.0433641043
|
|
46
|
+
print("Transition of the spin-boson model is ", namemax[0], namemax[1])
|
|
45
47
|
print('Energy gap correction of the transition (eV): ', correctmax) #, traj_N_frames)
|
|
46
48
|
Ut = kcal2eV * (np.loadtxt(LE_path) - np.loadtxt(CT_path)) + correctmax
|
|
47
49
|
|
|
@@ -239,21 +239,24 @@ def check_job_status(job_control, dict_of_simulation, job_info):
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
if curr_step == 1 and job_control[i]['status'][curr_step] == 'finished':
|
|
242
|
-
print("==> Finished current step # ", curr_step)
|
|
242
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
243
|
+
print('')
|
|
243
244
|
print("==> Start current step # ", curr_step+1,": AnalyzeQC")
|
|
244
245
|
job_control = run_step2(i,job_control,dict_of_simulation)
|
|
245
246
|
curr_step = 2
|
|
246
247
|
job_control[i]['status'][curr_step] = 'finished'
|
|
247
248
|
|
|
248
249
|
if curr_step == 2 and job_control[i]['status'][curr_step] == 'finished':
|
|
249
|
-
print("==> Finished current step # ", curr_step)
|
|
250
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
251
|
+
print('')
|
|
250
252
|
print("==> Start current step # ", curr_step+1, ": ConstructFF")
|
|
251
253
|
job_control = run_step3(i,job_control,dict_of_simulation, job_info)
|
|
252
254
|
curr_step = 3
|
|
253
255
|
job_control[i]['status'][curr_step] = 'finished'
|
|
254
256
|
|
|
255
257
|
if curr_step == 3 and job_control[i]['status'][curr_step] == 'finished':
|
|
256
|
-
print("==> Finished current step # ", curr_step)
|
|
258
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
259
|
+
print('')
|
|
257
260
|
print("==> Start current step # ", curr_step+1, ": RunMD")
|
|
258
261
|
job_control = run_step4(i,job_control,dict_of_simulation)
|
|
259
262
|
curr_step = 4
|
|
@@ -264,7 +267,8 @@ def check_job_status(job_control, dict_of_simulation, job_info):
|
|
|
264
267
|
if check_slurm_status(job_control[i]['MD_jobids']):
|
|
265
268
|
print("job_control[i]['MD_jobids']",job_control[i]['MD_jobids'])
|
|
266
269
|
job_control[i]['status'][curr_step] = 'finished'
|
|
267
|
-
print("==> Finished current step # ", curr_step)
|
|
270
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
271
|
+
print('')
|
|
268
272
|
else:
|
|
269
273
|
# print("MD_jobids",job_control[i]['MD_jobids'] )
|
|
270
274
|
pass
|
|
@@ -274,21 +278,24 @@ def check_job_status(job_control, dict_of_simulation, job_info):
|
|
|
274
278
|
job_control = run_step5(i,job_control,dict_of_simulation,job_info)
|
|
275
279
|
curr_step = 5
|
|
276
280
|
job_control[i]['status'][curr_step] = 'finished'
|
|
277
|
-
print("==> Finished current step # ", curr_step)
|
|
281
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
282
|
+
print('')
|
|
278
283
|
|
|
279
284
|
if curr_step == 5 and job_control[i]['status'][curr_step] == 'finished':
|
|
280
285
|
print("==> Start current step # ", curr_step+1, ": SpinBoson")
|
|
281
286
|
job_control = run_step6(i,job_control,dict_of_simulation,job_info)
|
|
282
287
|
curr_step = 6
|
|
283
288
|
job_control[i]['status'][curr_step] = 'finished'
|
|
284
|
-
print("==> Finished current step # ", curr_step)
|
|
289
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
290
|
+
print('')
|
|
285
291
|
|
|
286
292
|
if curr_step == 6 and job_control[i]['status'][curr_step] == 'finished':
|
|
287
293
|
print("==> Start current step # ", curr_step+1, ": FGR")
|
|
288
294
|
job_control = run_step7(i,job_control,dict_of_simulation,job_info)
|
|
289
295
|
curr_step = 7
|
|
290
296
|
job_control[i]['status'][curr_step] = 'finished'
|
|
291
|
-
print("==> Finished current step # ", curr_step)
|
|
297
|
+
print("==> Finished current step # ", curr_step, '\n')
|
|
298
|
+
print('')
|
|
292
299
|
job_control[i]['status'][0] = curr_step
|
|
293
300
|
|
|
294
301
|
return job_control
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyctramer
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python package for Charge Transfer Rate from Atomistic Molecular dynamics, Electronic structure, and Rate theory
|
|
5
5
|
Home-page: https://www.github.com/ctramer/PyCTRAMER
|
|
6
6
|
Author: Zengkui Liu, Dominikus Brian, and Xiang Sun
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|