PARCHG: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
The partial density written to {{FILE|PARCHG}} is part of the valence electron density that was converged selfconsistently in a previous run. | The partial density written to {{FILE|PARCHG}} is part of the valence electron density that was converged selfconsistently in a previous run. | ||
The bands and '''k''' points that contribute to the partial charges are selected by the {{TAG|IBAND}}, {{TAG|NBMOD}}, {{TAG|EINT}} and {{TAG|KPUSE}} tags, allowing for fine control of the contributions to the partial charge density. | The bands and '''k''' points that contribute to the partial charges are selected by the {{TAG|IBAND}}, {{TAG|NBMOD}}, {{TAG|EINT}} and {{TAG|KPUSE}} tags, allowing for fine control of the contributions to the partial charge density. | ||
== PARCHG.nb.nk files== | |||
If {{TAG|LSEPB}} and/or {{TAG|LSEPK}} are set to .TRUE. variants of the {{FILE|PARCHG}} file are written, separating the contributing bands and '''k''' points respectively. The units and format of the files stay the same. | |||
* If {{TAGO|LSEPB|.TRUE.}}, '''PARCHG.nb.ALLK''' files are written, where nb is an index over all bands contributing to the partial charge density. | |||
* If {{TAGO|LSEPK|.TRUE.}}, '''PARCHG.ALLB.nk''' files are created, where nk runs over all '''k''' points in {{TAG|KPUSE}} or all '''k''' points if {{TAG|KPUSE}} is not set. | |||
* For {{TAGO|LSEPB|.TRUE.}} and {{TAGO|LSEPK|.TRUE.}}, all combinations are written to '''PARCHG.nb.nk''' files. | |||
== Format == | == Format == | ||
Line 28: | Line 37: | ||
=== Spin-polarized calculation=== | === Spin-polarized calculation=== | ||
In spin-polarized calculations, two data sets are stored in the {{FILE|PARCHG}} file. | In spin-polarized calculations, two data sets are stored in the {{FILE|PARCHG}} file. | ||
The first set contains the total partial density (spin up + spin down) and the second | The first set contains the total partial density (spin up + spin down), and the second is the magnetization density (spin up - spin down). Each block is separated by a blank line and a line containing the fine FFT grid dimensions {{TAG|NGXF}} {{TAG|NGYF}} {{TAG|NGZF}}. | ||
* Structure | * Structure | ||
* FFT-grid dimensions | * FFT-grid dimensions | ||
Line 34: | Line 43: | ||
* FFT-grid dimensions | * FFT-grid dimensions | ||
* Partial magnetization density (spin up - spin down) | * Partial magnetization density (spin up - spin down) | ||
== Related tags and articles == | == Related tags and articles == | ||
Line 52: | Line 52: | ||
{{TAG|LSEPB}}, | {{TAG|LSEPB}}, | ||
{{TAG|LSEPK}}, | {{TAG|LSEPK}}, | ||
[[Band-decomposed charge densities]] | |||
---- | ---- | ||
[[Category:Files]][[Category:Output Files]][[Category:Charge density]] |
Revision as of 07:36, 14 February 2024
PARCHG is an output file created when partial charge densities are calculated by setting LPARD = .TRUE.. The file has the same structure as the CHG file, containing the structure followed by the charge density on the fine FFT grid, but missing the augmentation occupancies that are written to CHGCAR. The units are also equivalent to CHG and CHGCAR.
The partial density written to PARCHG is part of the valence electron density that was converged selfconsistently in a previous run. The bands and k points that contribute to the partial charges are selected by the IBAND, NBMOD, EINT and KPUSE tags, allowing for fine control of the contributions to the partial charge density.
PARCHG.nb.nk files
If LSEPB and/or LSEPK are set to .TRUE. variants of the PARCHG file are written, separating the contributing bands and k points respectively. The units and format of the files stay the same.
- If
LSEPB = .TRUE.
, PARCHG.nb.ALLK files are written, where nb is an index over all bands contributing to the partial charge density.
- If
LSEPK = .TRUE.
, PARCHG.ALLB.nk files are created, where nk runs over all k points in KPUSE or all k points if KPUSE is not set.
Format
The PARCHG consists of the following blocks:
- Structure in POSCAR format
- FFT-grid dimensions NGXF, NGYF, NGZF
- Partial charge density times FFT-grid volume is written with multiple real numbers per line until all NGXF*NGYF*NGZF values of the block are written.
The real-space mesh (NX,NY,NZ) is uniform and is spanned by the lattice vectors defined in the structure block. The coordinates of the mesh points can be restored via
- .
The dimensions can be increased by increasing the cutoff energy (ENCUT) or explicitly by setting the fine FFT-grid dimensions (NGXF, NGYF, NGZF).
To arrange the data on the real-space grid in the unit cell, mind that the data runs fastest over NX and slowest over NZ. To be more explicit, the density is written using the following command in Fortran
Important: Remember that the values must be divided by the FFT-grid volume and the cell volume to obtain the partial charge density in units . |
Hence,
- ,
where is the partial charge density in units 1/Å.
Spin-polarized calculation
In spin-polarized calculations, two data sets are stored in the PARCHG file. The first set contains the total partial density (spin up + spin down), and the second is the magnetization density (spin up - spin down). Each block is separated by a blank line and a line containing the fine FFT grid dimensions NGXF NGYF NGZF.
- Structure
- FFT-grid dimensions
- Partial charge density times FFT-grid volume (spin up + spin down)
- FFT-grid dimensions
- Partial magnetization density (spin up - spin down)
Related tags and articles
LPARD, IBAND, EINT, NBMOD, KPUSE, LSEPB, LSEPK, Band-decomposed charge densities