-
Notifications
You must be signed in to change notification settings - Fork 0
/
readdumpnew.py
25 lines (19 loc) · 886 Bytes
/
readdumpnew.py
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
import os
from modules import trajnew
from modules import initialize
root = './'
filename = 'dump1.1fs.lammpstrj'
fileinit = 'init.dat'
posox = float(input('position of the oxy:>\n'))
nkpoints = 100
ntrysnap = -1
if os.path.exists(root+filename):
inputcompute = initialize.getinitialize(filename, root, posox, nkpoints, ntrysnap)
else:
inputcompute = initialize.getinitialize(fileinit, root, posox, nkpoints, ntrysnap)
trajnew.read_dump(inputcompute['root'], inputcompute['filename'],
inputcompute['N'], inputcompute['number of snapshots'])
natpermol = int(input('number of atoms per molecule:>\n'))
trajnew.computekftnumba(inputcompute['root'], inputcompute['N'],
inputcompute['size'], inputcompute['position of the ox'],
inputcompute['number of k'], inputcompute['number of snapshots'], natpermol)