CONTCAR: Difference between revisions

From VASP Wiki
No edit summary
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
After each ionic step and at the end of each job a {{TAG|CONTCAR}} file is written. This file has a valid {{TAG|POSCAR}} format and can be used for "continuation" jobs. After each ionic step whether the file can be read or not depends on the operating system. VASP writes, flushes and rewinds the file. If you stop or kill VASP it should be possible to continue from the CONTCAR file.
The {{FILE|CONTCAR}} file contains information about the structure, e.g., the ionic positions. It has a format that is compatible with the {{FILE|POSCAR}} file. The file is written after each ionic step and at the end of a completed calculation. It can thus be copied to the {{FILE|POSCAR}} file to restart a calculation.  


== Molecular dynamics ==
== Molecular dynamics ==


For molecular dynamics runs ({{TAG|IBRION}}=0) the {{TAG|CONTCAR}} file contains the actual coordinates, velocities and predictor-corrector coordinates needed as an input for the next MD-job.
For [[:Category:Molecular dynamics|molecular-dynamics]] (MD) runs ({{TAG|IBRION}}=0), the {{TAG|CONTCAR}} file contains the MD trajectories. In particular, the structure parameters, velocities, and predictor-corrector coordinates are needed as input to restart an MD simulation.  


*1st block: Lattice parameters and atom coordinates.
*1st block: Lattice parameters and ionic positions.
*2nd block: Initial velocities for atoms.
*2nd block: Initial velocities for atoms.
*3rd block: Predictor-corrector coordinates.
*3rd block: Predictor-corrector coordinates.
{{NB|mind| Whether the ionic positions are rebased into the unit cell depends on the choice for the {{TAG|MDALGO}} tag for historical reasons.}}
{{NB|warning|To continue an MD calculation from a {{TAG|CONTCAR}} file but with a different ensemble (e.g. switching from {{TAG|NVT ensemble}} to {{TAG|NpT ensemble}}) the predictor-corrector coordinates must be removed; otherwise the calculations will crash. If no velocities are copied to the {{TAG|POSCAR}} file then random velocities are drawn from a Maxwell-Boltzmann distribution at the selected temperature {{TAG|TEBEG}}.}}


'''Important''': If one wants to continue a molecular dynamics calculations from a {{TAG|CONTCAR}} file but with a different ensemble (e.g. switching from {{TAG|NVT ensemble}} to {{TAG|NpT ensemble}}) the predictor-corrector coordinates must be removed otherwise the calculations will be incompatible.
== Structure relaxation ==
 
== Structural relaxation ==
 
For relaxation jobs the {{TAG|CONTCAR}} file contains the positions of the last ionic step of the relaxation. If the relaxation run has not yet converged one should copy {{TAG|CONTCAR}} to {{TAG|POSCAR}} before continuing. For static calculations {{TAG|CONTCAR}} is identical to {{TAG|POSCAR}}.
 


For [[:Category:Ionic minimization|structure relaxation]], the {{TAG|CONTCAR}} file contains the positions of the last ionic step of the relaxation. If the relaxation run has not yet converged one should copy {{TAG|CONTCAR}} to {{FILE|POSCAR}} before continuing. For static calculations, the {{TAG|CONTCAR}} file contains the same information as the {{TAG|POSCAR}} file.


== Related tags and articles ==
{{FILE|POSCAR}}, [[:Category:Ionic minimization|structure relaxation]], {{TAG|XDATCAR}}, {{TAG|IBRION}}


----
----
[[The_VASP_Manual|Contents]]


[[Category:Files]][[Category:Output Files]]
[[Category:Files]][[Category:Output files]][[Category:Symmetry]]

Revision as of 12:26, 20 July 2022

The CONTCAR file contains information about the structure, e.g., the ionic positions. It has a format that is compatible with the POSCAR file. The file is written after each ionic step and at the end of a completed calculation. It can thus be copied to the POSCAR file to restart a calculation.

Molecular dynamics

For molecular-dynamics (MD) runs (IBRION=0), the CONTCAR file contains the MD trajectories. In particular, the structure parameters, velocities, and predictor-corrector coordinates are needed as input to restart an MD simulation.

  • 1st block: Lattice parameters and ionic positions.
  • 2nd block: Initial velocities for atoms.
  • 3rd block: Predictor-corrector coordinates.
Mind: Whether the ionic positions are rebased into the unit cell depends on the choice for the MDALGO tag for historical reasons.
Warning: To continue an MD calculation from a CONTCAR file but with a different ensemble (e.g. switching from NVT ensemble to NpT ensemble) the predictor-corrector coordinates must be removed; otherwise the calculations will crash. If no velocities are copied to the POSCAR file then random velocities are drawn from a Maxwell-Boltzmann distribution at the selected temperature TEBEG.

Structure relaxation

For structure relaxation, the CONTCAR file contains the positions of the last ionic step of the relaxation. If the relaxation run has not yet converged one should copy CONTCAR to POSCAR before continuing. For static calculations, the CONTCAR file contains the same information as the POSCAR file.

Related tags and articles

POSCAR, structure relaxation, XDATCAR, IBRION