OUTCAR and CONTCAR

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
Leny

OUTCAR and CONTCAR

#1 Post by Leny » Tue Mar 27, 2012 4:18 pm

Hello,
Is there any script that can change OUTCAR to CONTCAR file?
I want to rerun NEB calculation and I get not any CONTCAR and I need CONTCAR to rerun it, or if you know about a way to rerun it I will appreciate if you let me know.
Last edited by Leny on Tue Mar 27, 2012 4:18 pm, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

OUTCAR and CONTCAR

#2 Post by admin » Tue Apr 03, 2012 12:20 pm

the CONTCARs are written by default in the 0X directories if you run NEB, please have a look (it should NOT be necessary to generate them from OUTCAR), so you just have to copy them to POSCAR
If you need to do it though, you have to cat the header of the POSCAR file to CONTCAR and add the positions by
grep -A (#of atoms+2) | tail -n (#of atoms) | cut -c1-40 OUTCAR >> CONTCAR
Last edited by admin on Tue Apr 03, 2012 12:20 pm, edited 1 time in total.

Post Reply