Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

Restart and output files cheat sheet: Difference between revisions

From VASP Wiki
Hampel (talk | contribs)
No edit summary
Hampel (talk | contribs)
Line 14: Line 14:
* {{FILE|TAUCAR}} &mdash; like {{FILE|CHGCAR}}, but additionally requires {{TAG|LTAU|.TRUE.}}; the {{FILE|vaspwave.h5}} group <code>/kinetic_energy_density</code> follows the <code>/charge</code> rule. {{TAG|LTAU}} defaults to {{TAG|LTAU|.TRUE.}} for meta-GGA functionals.
* {{FILE|TAUCAR}} &mdash; like {{FILE|CHGCAR}}, but additionally requires {{TAG|LTAU|.TRUE.}}; the {{FILE|vaspwave.h5}} group <code>/kinetic_energy_density</code> follows the <code>/charge</code> rule. {{TAG|LTAU}} defaults to {{TAG|LTAU|.TRUE.}} for meta-GGA functionals.
* {{FILE|POT}} &mdash; {{TAG|LVTOT|.TRUE.}} and {{TAG|LH5|.FALSE.}}; the {{FILE|vaspwave.h5}} group <code>/potential</code> requires {{TAG|LVTOT|.TRUE.}} and {{TAG|LH5|.TRUE.}}. Only OEP and hybrid-functional OEP calculations write {{FILE|POT}}.
* {{FILE|POT}} &mdash; {{TAG|LVTOT|.TRUE.}} and {{TAG|LH5|.FALSE.}}; the {{FILE|vaspwave.h5}} group <code>/potential</code> requires {{TAG|LVTOT|.TRUE.}} and {{TAG|LH5|.TRUE.}}. Only OEP and hybrid-functional OEP calculations write {{FILE|POT}}.
{{NB|mind|{{FILE|CHG}} is written together with {{FILE|CHGCAR}} under the same condition, but it omits the PAW one-center occupancies. Like {{FILE|LOCPOT}}, it is an analysis file and not a restart file.}}


=== Defaults ===
=== Defaults ===

Revision as of 07:30, 17 June 2026

VASP can continue a calculation from the converged results of a previous run instead of restarting the electronic minimization from scratch. The wavefunctions are reused through ISTART and the charge density through ICHARG; some methods additionally need the kinetic energy density or the local potential. The files that store these quantities are the restart files.

The restart files are WAVECAR (wavefunctions), CHGCAR (charge density together with the PAW one-center occupancies), TAUCAR (kinetic energy density, for meta-GGA functionals), and POT (local potential, for OEP calculations). Alternatively, these quantities are written to the single HDF5 file vaspwave.h5. The restart files differ from analysis and visualization output such as CHG, LOCPOT, DOSCAR, or vasprun.xml: the latter store derived or reduced quantities (for example, CHG omits the PAW one-center occupancies) and are not read back to continue a calculation.

Which restart files are written, and whether in the legacy format or in vaspwave.h5, is controlled by LWAVE, LCHARG, LTAU, LVTOT, LH5, and LCHARGH5.

How the tags interact

LWAVE, LCHARG, LTAU, and LVTOT decide whether the wavefunctions, the charge density, the kinetic energy density, and the local potential are written. LH5 decides the format: the legacy files for LH5 = .FALSE., or vaspwave.h5 for LH5 = .TRUE., which suppresses the legacy files entirely. LCHARGH5 is the exception: rather than switching the format, it writes the charge density to vaspwave.h5 in addition, so that the density is available for plotting with py4vasp while the restart information is still written to the legacy files.

The files are written according to the following rules:

Defaults

The defaults of LWAVE, LCHARG, LH5, and LVTOT are fixed and do not depend on the other tags:

LTAU defaults to LTAU = .TRUE. for meta-GGA functionals that need the kinetic energy density, and to LTAU = .FALSE. otherwise. LCHARGH5 also has no fixed default: when it is not set, its value is LH5 .AND. LCHARG. As a result, switching to HDF5 output with LH5 = .TRUE. writes the charge density to vaspwave.h5 automatically (as long as LCHARG = .TRUE.), while an explicit LCHARGH5 = .FALSE. suppresses it.

Overview table

The table covers the wavefunctions and the charge density for every combination of effective (i.e., after applying the defaults) tag values. ✓ marks a written file, — a file that is not written. The highlighted row is the default configuration. The kinetic energy density (TAUCAR) and the OEP local potential (POT) follow the same pattern as the charge density, additionally gated by LTAU and LVTOT.

Restart files written for each effective tag combination (wavefunctions and charge density)
LWAVE LCHARG LH5 LCHARGH5 WAVECAR CHGCAR vaspwave.h5 /wave vaspwave.h5 /charge
.TRUE. .TRUE. .FALSE. .FALSE.
.TRUE. .TRUE. .FALSE. .TRUE.
.TRUE. .FALSE. .FALSE. .FALSE.
.TRUE. .FALSE. .FALSE. .TRUE.
.FALSE. .TRUE. .FALSE. .FALSE.
.FALSE. .TRUE. .FALSE. .TRUE.
.FALSE. .FALSE. .FALSE. .FALSE.
.FALSE. .FALSE. .FALSE. .TRUE.
.TRUE. .TRUE. .TRUE. .FALSE.
.TRUE. .TRUE. .TRUE. .TRUE.
.TRUE. .FALSE. .TRUE. .FALSE.
.TRUE. .FALSE. .TRUE. .TRUE.
.FALSE. .TRUE. .TRUE. .FALSE.
.FALSE. .TRUE. .TRUE. .TRUE.
.FALSE. .FALSE. .TRUE. .FALSE.
.FALSE. .FALSE. .TRUE. .TRUE.

Related tags and articles

Files: WAVECAR, CHGCAR, CHG, TAUCAR, POT, LOCPOT, vaspwave.h5

Tags: LWAVE, LCHARG, LCHARGH5, LTAU, LVTOT, LH5, ISTART, ICHARG

References