cif2pos.pl script

Vasp transition state theory tools

Moderator: moderators

Post Reply
Phani Kanth
Posts: 7
Joined: Fri May 28, 2010 10:28 am

cif2pos.pl script

Post by Phani Kanth »

Dear Sir,

I was trying to use cif2pos.pl script for converting the cif file collected from ICSD to POSCAR file used in VASP. However, I couldn't do it. Could you please provide me, if latest version of this script is available.
It seems the code available with me from your website is only considering the atoms present in cif file but not all atoms in unit cell, if I am not wrong.

Thanks and Best Regards,
Phani Kanth
dano
Posts: 39
Joined: Sat Nov 05, 2005 12:04 am
Contact:

Re: cif2pos.pl script

Post by dano »

The script right now only converts cif files that are in p1 symmetry. If you send me your cif file I will attempt to see what is going on. The most current version can be checked out in svn. http://theory.cm.utexas.edu/henkelman/code/
tarzan11_11
Posts: 11
Joined: Wed Aug 03, 2011 2:08 pm

Re: cif2pos.pl script

Post by tarzan11_11 »

hi
I was trying to convert this cif file to POSCAR ..
but it doesnt work properly ..
hope to get some help
the cif file is zipped
Attachments
Al2O3.zip
(1.18 KiB) Downloaded 927 times
Dathar
Posts: 3
Joined: Wed Aug 04, 2010 7:11 am

Re: cif2pos.pl script

Post by Dathar »

The present version of the script does not check for the order of columns printed in the cif file. The script works with cif files generated by "Crystal Maker".

The difference between the file you have "generated by Materials Studio" and the file "generated by Crystal Maker" is the occupancy factor column. Try this:

** checkout the latest version of the script (redefined alpha, beta and gamma)**

Move the occupancy column (last column in the block with atom symbols, coordinates etc) to the place before coordinates. The new order will be Atom number, Atom symbol, Occupancy, x, y, z ,... and so on. Also change the order printed above to work with other visualizers.

Run the script. Use some visualizer to see if both files are same.
-------
Attached is the converted file. Looks good to me. Please check it.

I will try to update the script to work with both versions.

Phani
Attachments
Al2O3.tar
Poscar file converted from Al2O3.cif
(4 KiB) Downloaded 868 times
tarzan11_11
Posts: 11
Joined: Wed Aug 03, 2011 2:08 pm

Re: cif2pos.pl script

Post by tarzan11_11 »

hi ...
thank you very much for the reply ..
Pls do drop a msg in the forum once u have updated the code ..
thanks once again
tarzan11_11
Posts: 11
Joined: Wed Aug 03, 2011 2:08 pm

Re: cif2pos.pl script

Post by tarzan11_11 »

dear Phani
the script which i have downlaoded from the site has one more small issue also ...
the lattice vectors are not being generated properly ... v2[1] ; v2[2] and v3[1] and v3[2] had to be interchanged in the downloaded script to get them right ..

but u have managed to generated it right ..

so pls let me know whatz the issue ...
Dathar
Posts: 3
Joined: Wed Aug 04, 2010 7:11 am

Re: cif2pos.pl script

Post by Dathar »

The definitons of Alpha, beta and gamma in the script follow the convention in "pos2con" script. I modified the "cif2pos" script to match the values with the ones read from the cif file. I thought this issue was resolved. I will look into it again.

Thanks,
Phani
Post Reply