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)
Draft restart/output-files cheat sheet: tag-interaction rules, defaults, 16-row overview table, recommendations, related tags (#1534 / WI 291)
Hampel (talk | contribs)
No edit summary
Line 19: Line 19:


{{TAG|LCHARGH5}} is the only tag whose default is not fixed: when it is not set, its value is {{TAG|LH5}} <code>.AND.</code> {{TAG|LCHARG}}. As a result, switching to HDF5 output with {{TAG|LH5|.TRUE.}} writes the charge density to {{FILE|vaspwave.h5}} automatically (as long as {{TAG|LCHARG|.TRUE.}}), while an explicit {{TAG|LCHARGH5|.FALSE.}} suppresses it.
{{TAG|LCHARGH5}} is the only tag whose default is not fixed: when it is not set, its value is {{TAG|LH5}} <code>.AND.</code> {{TAG|LCHARG}}. As a result, switching to HDF5 output with {{TAG|LH5|.TRUE.}} writes the charge density to {{FILE|vaspwave.h5}} automatically (as long as {{TAG|LCHARG|.TRUE.}}), while an explicit {{TAG|LCHARGH5|.FALSE.}} suppresses it.
{{NB|tip|To plot the charge density with {{py4vasp}} while still writing restart information to the legacy {{FILE|WAVECAR}}, set {{TAG|LCHARGH5|.TRUE.}} together with {{TAG|LH5|.FALSE.}}.}}


== Overview table ==
== Overview table ==
Line 60: Line 61:
| .FALSE. || .FALSE. || .TRUE. || .TRUE. || — || — || — || — || ✓
| .FALSE. || .FALSE. || .TRUE. || .TRUE. || — || — || — || — || ✓
|}
|}
== Recommendations and advice ==
{{NB|tip|To plot the charge density with {{py4vasp}} while still writing restart information to the legacy {{FILE|WAVECAR}}, set {{TAG|LCHARGH5|.TRUE.}} together with {{TAG|LH5|.FALSE.}}.}}


{{NB|mind|The tag {{TAG|LWAVEH5}} has no effect in current versions of VASP and is ignored. Use {{TAG|LH5}} to redirect the wavefunctions to {{FILE|vaspwave.h5}}.}}
{{NB|mind|The tag {{TAG|LWAVEH5}} has no effect in current versions of VASP and is ignored. Use {{TAG|LH5}} to redirect the wavefunctions to {{FILE|vaspwave.h5}}.}}
Line 71: Line 68:
== Related tags and articles ==
== Related tags and articles ==


Files: {{FILE|WAVECAR}}, {{FILE|CHGCAR}}, {{FILE|CHG}}, {{FILE|vaspwave.h5}}
Files: {{FILE|WAVECAR}}, {{FILE|CHGCAR}}, {{FILE|CHG}}, {{FILE|vaspwave.h5}}, {{FILE|TAUCAR}}


Tags: {{TAG|LWAVE}}, {{TAG|LCHARG}}, {{TAG|LH5}}, {{TAG|LCHARGH5}}, {{TAG|LTAU}}
Tags: {{TAG|LWAVE}}, {{TAG|LCHARG}}, {{TAG|LH5}}, {{TAG|LCHARGH5}}, {{TAG|LTAU}}

Revision as of 08:12, 11 June 2026

The restart and output files WAVECAR, CHGCAR, CHG, and vaspwave.h5 store the wavefunctions and the charge density that VASP writes at the end of a run. Four tags control which files are written and in which format: LWAVE, LCHARG, LH5, and LCHARGH5.

How the tags interact

LWAVE and LCHARG decide whether the wavefunctions and the charge density are written. LH5 decides where they go: the legacy files (WAVECAR, CHGCAR, CHG) for LH5 = .FALSE., or vaspwave.h5 for LH5 = .TRUE.. Setting LH5 = .TRUE. therefore suppresses the legacy files entirely. LCHARGH5 is the exception: it writes the charge density to vaspwave.h5 independently of LH5, so that the density is available for plotting with py4vasp while restart information is still written to the legacy files.

A file is written according to the following rules:

Defaults

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

LCHARGH5 is the only tag whose default is not fixed: 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 lists every combination of effective (i.e., after applying the defaults) tag values and the files that are written. ✓ marks a written file, — a file that is not written. The highlighted row is the default configuration.

Output files written for each effective tag combination
LWAVE LCHARG LH5 LCHARGH5 WAVECAR CHGCAR CHG 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, vaspwave.h5, TAUCAR

Tags: LWAVE, LCHARG, LH5, LCHARGH5, LTAU

References