You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
374 B
16 lines
374 B
2 years ago
|
def poscar2gen(input):
|
||
|
fname = input.split(".")
|
||
|
vx = []
|
||
|
vy = []
|
||
|
vz = []
|
||
|
with open(input, 'r') as f:
|
||
|
next(f)
|
||
|
next(f)
|
||
|
for i in range(3):
|
||
|
arr = next(f).split()
|
||
|
vx.append(arr[0])
|
||
|
vy.append(arr[1])
|
||
|
vz.append(arr[2])
|
||
|
elem_type = next(f).split()
|
||
|
elem_num = next(f).split()
|