[ase-users] How to convert trajectory file to .vasp or .cif

Sebastian Potthoff potthoff at hmi.uni-bremen.de
Thu Apr 19 16:12:40 CEST 2018


Use ASEs read and write module.

*from ase.io import read, write*

The *.traj files contain all images of your optimization trajectory. By 
default *read*, will only read in the last configuration of the 
trajectory. If you want to have a different configuration use the 
*index* keyword.

e.g. *image =* *read("lowest.traj")*

Then just use *write* to save the configuration in a supported format. e.g.

*write("myfile.cif", image, format="cif")*


More info can be found here: https://wiki.fysik.dtu.dk/ase/ase/io/io.html

Best
Sebastian

On 19.04.2018 14:59, Dianwei Hou via ase-users wrote:
> Hi,
>
> When I you basinhooping or minimahopping to optimize structures. When 
> the calculation finished, I got a lot of structures in lowest.traj 
> or minima.traj files. How can I convert the .traj file to .vasp or 
> .cif files to use structure for further calculation?
>
> Best regards,
> Dianwei Hou
>
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20180419/ef65edf0/attachment.html>


More information about the ase-users mailing list