标题: 使用rescu软件结构优化后,产生mat文件,不会转化为cif [打印本页] 作者Author: liuzl 时间: 2023-11-15 08:18 标题: 使用rescu软件结构优化后,产生mat文件,不会转化为cif # -*- coding: utf-8 -*-
"""
Extract lattice vectors and atom info from saved mat file
"""
from ase.atoms import Atom, Atoms
from ase.io import write
from pymatreader import read_mat
atom_list = []
for i in range(len(ele_ind_list)):
atom = Atom(ele_species_list[int(ele_ind_list[i]) - 1], poses[i])
atom_list.append(atom)
ats = Atoms(atom_list, cell=latvec)
print(ats)
print("--> Writing to atoms.cif file...")