KSPACING: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 12: Line 12:
{{NB|warning|This implementation is not entirely consistent with the automatic k-point generation (Mode{{=}}A) used in the {{FILE|KPOINTS}} file.}}  
{{NB|warning|This implementation is not entirely consistent with the automatic k-point generation (Mode{{=}}A) used in the {{FILE|KPOINTS}} file.}}  
If the k points are generated using the [[KPOINTS#Automatic_k-point_mesh|automatic mode]] in the {{FILE|KPOINTS}} file, <math> N_i</math>  is calculated as
If the k points are generated using the [[KPOINTS#Automatic_k-point_mesh|automatic mode]] in the {{FILE|KPOINTS}} file, <math> N_i</math>  is calculated as
<math> N_i= \mathrm{int}(\mathrm{max}(1, R_k| \mathbf{b}_i| + 0.5)) </math> with <math>R_k=1/\mathrm{KSPACING}</math>
<math> N_i= \mathrm{int}(\mathrm{max}(1, R_k| \mathbf{b}_i| + 0.5)) </math> with <math>R_k=2\pi/\mathrm{KSPACING}</math>
and rounding it to the nearest integer.  We recommend using the {{TAG|KSPACING}} tag in the {{FILE|INCAR}} file  
and rounding it to the nearest integer.  We recommend using the {{TAG|KSPACING}} tag in the {{FILE|INCAR}} file  
and avoiding the automatic mode via the {{FILE|KPOINTS}} file.   
and avoiding the automatic mode via the {{FILE|KPOINTS}} file.   

Revision as of 18:40, 1 September 2022

KSPACING = [real]
Default: KSPACING = 0.5 

Description: The tag KSPACING determines the number of k points if the KPOINTS file is not present.


KSPACING is the smallest allowed spacing between k points in units of . The number of k points increases when the spacing is decreased. The number of k points in the direction of the first, second and third reciprocal lattice vector is determined by with being the ceiling function which returns the least integer that is equal or larger than . In this equation, are the reciprocal lattice vectors . The generated grid is either centred at the point, i.e., includes the point when KGAMMA=.TRUE., or is shifted away from the point, as done for Monkhorst-Pack grids when KGAMMA=.FALSE. is set. The default is to include the point.

Warning: This implementation is not entirely consistent with the automatic k-point generation (Mode=A) used in the KPOINTS file.

If the k points are generated using the automatic mode in the KPOINTS file, is calculated as with and rounding it to the nearest integer. We recommend using the KSPACING tag in the INCAR file and avoiding the automatic mode via the KPOINTS file.

Related tags and articles

KGAMMA, KPOINTS

Examples that use this tag