Vaspgamma.h5: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The {{FILE|vaspgamma.h5}} file is an input file used when {{TAG|ICHARG}}=5 is set. It is read by VASP during an [[electronic minimization]] to incorporate additional occupation changes per k-point and orbital before calculating a new charge density. The file is only read when VASP is compiled with [[:Category:HDF5 support|HDF5 support]] enabled and the {{FILE|GAMMA}} is not present. | The {{FILE|vaspgamma.h5}} file is an input file used when {{TAG|ICHARG}}=5 is set. It is read by VASP during an [[electronic minimization]] to incorporate additional occupation changes per k-point and orbital before calculating a new charge density. The file is only read when VASP is compiled with [[:Category:HDF5 support|HDF5 support]] enabled and the text based {{FILE|GAMMA}} is not present. | ||
{{Available|6.5.0}} | {{Available|6.5.0}} | ||
== Contents of the file == | |||
The {{FILE|vaspgamma.h5}} contains the same information as the {{FILE|GAMMA}} file. The hdf5 archive should contain two groups: | |||
# <tt>band_window</tt> - band window for each k point, i.e. the indices of bands for which the occupation changes are read in | |||
# <tt>deltaN</tt> - contains two groups (up and down) for each spin channel. Each group contains one dataset per k point with size given by the band window. | |||
== Usage == | |||
{{NB|mind|When reading and writing from and to hdf5 archives with VASP while it is running the tag {{TAG|LSYNCH5}} should be set to True.}} | {{NB|mind|When reading and writing from and to hdf5 archives with VASP while it is running the tag {{TAG|LSYNCH5}} should be set to True.}} | ||
While {{TAG|ICHARG}}=5 is set, VASP will read this file right before the new charge density is calculated. However, VASP will only read the file and continues calculation if an additional file called {{FILE|vasp.lock}} is present in the current directory. This design allows to interface to an external code that performs between the SCF step some extra computation and updates the KS occupations. | |||
For non spin-polarized calculations only the `up` group is read and used in VASP. Averaging over spin channels has to be done prior handing over the file to VASP. | |||
See also {{FILE|GAMMA}} for further information. | |||
Revision as of 15:11, 17 February 2025
The vaspgamma.h5 file is an input file used when ICHARG=5 is set. It is read by VASP during an electronic minimization to incorporate additional occupation changes per k-point and orbital before calculating a new charge density. The file is only read when VASP is compiled with HDF5 support enabled and the text based GAMMA is not present.
Mind: Available as of VASP 6.5.0 |
Contents of the file
The vaspgamma.h5 contains the same information as the GAMMA file. The hdf5 archive should contain two groups:
- band_window - band window for each k point, i.e. the indices of bands for which the occupation changes are read in
- deltaN - contains two groups (up and down) for each spin channel. Each group contains one dataset per k point with size given by the band window.
Usage
Mind: When reading and writing from and to hdf5 archives with VASP while it is running the tag LSYNCH5 should be set to True. |
While ICHARG=5 is set, VASP will read this file right before the new charge density is calculated. However, VASP will only read the file and continues calculation if an additional file called vasp.lock is present in the current directory. This design allows to interface to an external code that performs between the SCF step some extra computation and updates the KS occupations.
For non spin-polarized calculations only the `up` group is read and used in VASP. Averaging over spin channels has to be done prior handing over the file to VASP.
See also GAMMA for further information.