Number of k points and method for smearing: Difference between revisions

From VASP Wiki
No edit summary
mNo edit summary
Line 2: Line 2:




The number of k points necessary for a calculation depends critically
The number of k points needed for a calculation depends critically
on the necessary precision and on the fact whether the system is metallic.
on the necessary precision and on whether the system is metallic.
Metallic systems require an order of magnitude more  k points than
Metallic systems require an order of magnitude more  k points than
semiconducting and insulating systems.
semiconducting and insulating systems.
The number of k points also depends on the smearing method in
The number of k points also depends on the smearing method in
use; not all methods converge with similar speed. In addition the error
use; not all methods converge with similar speed. In addition, the error
is not transferable at all i.e. a <math>9\times 9\times 9</math> leads
is not transferable at all i.e. a <math>9\times 9\times 9</math> leads
to a completely different error for fcc, bcc and sc. Therefore
to a completely different error for fcc, bcc, and sc. Therefore
absolute convergence with respect to the number of k points
absolute convergence with respect to the number of k points
is necessary. The only exception are commensurable super cells.
is necessary. The only exception is commensurable super cells.
If it is possible to use the same super cell for two calculations
If it is possible to use the same super cell for two calculations
it is definitely
it is definitely a good idea to use the same k point set for both calculations.
a good idea to use the same k point set for both calculations.
Finally, we note that the k point mesh and smearing are closely connected.


k point mesh and smearing are closely connected.
We repeat here the guidelines for {{TAG|ISMEAR}}:
We repeat here the guidelines for {{TAG|ISMEAR}}:
*For semiconductors or insulators always use tetrahedron
*For semiconductors or insulators always use the tetrahedron method ({{TAG|ISMEAR}}=-5), if the cell is too large to use tetrahedron method use {{TAG|ISMEAR}}=0.
method ({{TAG|ISMEAR}}=-5), if the cell is too large to use
*For relaxations in metals always use {{TAG|ISMEAR}}=1 and an appropriate {{TAG|SIGMA}} value (so that the entropy term is less than 1 meV per atom). '''Mind''': Avoid using {{TAG|ISMEAR}}>0 for semiconductors and insulators, it might result in problems.
tetrahedron method use {{TAG|ISMEAR}}=0.
*For the DOS and very accurate total energy calculations (no relaxation in metals) use the tetrahedron method ({{TAG|ISMEAR}}=-5).
*For relaxations in metals always use {{TAG|ISMEAR}}=1 and an
appropriated {{TAG|SIGMA}} value (so that the entropy term is less than 1 meV per atom).
'''Mind''': Avoid to use {{TAG|ISMEAR}}>0 for semiconductors and insulators,
it might result in problems.
*For the DOS and very accurate total energy calculations (no relaxation
in metals) use the tetrahedron method ({{TAG|ISMEAR}}=-5).


Once again, if possible we recommend the tetrahedron method
Once again, if possible we recommend using the tetrahedron method
with Bl\"ochl corrections ({{TAG|ISMEAR}}=-5),
with Blöchl corrections ({{TAG|ISMEAR}}=-5),
this method is fool proof and does not require any empirical parameters
this method is foolproof and does not require any empirical parameters
like the other methods.
like the other methods.
Especially for bulk materials we were able to get highly accurate
Especially for bulk materials, we were able to get highly accurate
results using this
results using this
method.
method.


Even with this scheme the number of k points remains relatively
Even with this scheme, the number of k points remains relatively
large. For insulators 100 k points/per atom in the full Brillouin zone
large. For insulators, 100 k points/per atom in the full Brillouin zone
are generally sufficient
are generally sufficient
to reduce the energy error to less than 10 meV.
to reduce the energy error to less than 10 meV.
Metals require approximately 1000 k points/per atom for the same accuracy.
Metals require approximately 1000 k points/per atom for the same accuracy.
For problematic cases (transition metals with a steep DOS at the
For problematic cases (transition metals with a steep DOS at the
Line 53: Line 46:
used in conjunction with LMTO packages using the linear tetrahedron method.
used in conjunction with LMTO packages using the linear tetrahedron method.


Not in all cases it is possible to use the tetrahedron method, for
Not in all cases, it is possible to use the tetrahedron method, for
instance if the number of k-points falls below 3,
instance, if the number of k-points falls below 3,
or if accurate forces are required. In this case
or if accurate forces are required. In this case,
use the method of Methfessel-Paxton with N=1 for metals and N=0 for semiconductors.  SIGMA should be as large as possible,
use the method of Methfessel-Paxton with N=1 for metals and N=0 for semiconductors.  SIGMA should be as large as possible,
but the difference between the free energy and the total energy,
but the difference between the free energy and the total energy,
Line 78: Line 71:
(e.g. Monkhorst Pack <math>8\times 8\times 8 \to 60</math>) result in a larger
(e.g. Monkhorst Pack <math>8\times 8\times 8 \to 60</math>) result in a larger
number of k points than odd divisions (e.g. <math>9\times 9\times 9 \to 35</math>).
number of k points than odd divisions (e.g. <math>9\times 9\times 9 \to 35</math>).
In fact the difference can be traced back to whether or whether not
In fact, the difference can be traced back to whether or whether not
the <math>\Gamma</math> point is included in the resulting k-point mesh.
the <math>\Gamma</math> point is included in the resulting k-point mesh.
Meshes centered at <math>\Gamma</math> (option ''G'' in the {{TAG|KPOINTS}} file or odd divisions,
Meshes centered at <math>\Gamma</math> (option ''G'' in the {{TAG|KPOINTS}} file or odd divisions,
Line 93: Line 86:
It is recommended to use even meshes (e.g. <math>8\times 8\times 8</math>) for
It is recommended to use even meshes (e.g. <math>8\times 8\times 8</math>) for
up to <math>n=8</math>. From there on odd meshes are more efficient (e.g. <math>11\times 11\times 11</math>).
up to <math>n=8</math>. From there on odd meshes are more efficient (e.g. <math>11\times 11\times 11</math>).
However we have already stressed that the number of divisions is often
However, we have already stressed that the number of divisions is often
totally unrelated to the total number of k points and to the
totally unrelated to the total number of k points and to the
precision of the grid.
precision of the grid.
Line 100: Line 93:
approximately as precise as a <math>8\times 8\times 8</math> mesh.
approximately as precise as a <math>8\times 8\times 8</math> mesh.
Finally,
Finally,
for hexagonal cells the mesh should be shifted so that the <math>\Gamma</math> point
for hexagonal cells, the mesh should be shifted so that the <math>\Gamma</math> point
is always included i.e. the {{TAG|KPOINTS}} file
is always included i.e. the {{TAG|KPOINTS}} file
  automatic mesh  
  automatic mesh  

Revision as of 11:44, 8 February 2021

Please read and understand K-point integration before reading this section.


The number of k points needed for a calculation depends critically on the necessary precision and on whether the system is metallic. Metallic systems require an order of magnitude more k points than semiconducting and insulating systems. The number of k points also depends on the smearing method in use; not all methods converge with similar speed. In addition, the error is not transferable at all i.e. a leads to a completely different error for fcc, bcc, and sc. Therefore absolute convergence with respect to the number of k points is necessary. The only exception is commensurable super cells. If it is possible to use the same super cell for two calculations it is definitely a good idea to use the same k point set for both calculations. Finally, we note that the k point mesh and smearing are closely connected.

We repeat here the guidelines for ISMEAR:

  • For semiconductors or insulators always use the tetrahedron method (ISMEAR=-5), if the cell is too large to use tetrahedron method use ISMEAR=0.
  • For relaxations in metals always use ISMEAR=1 and an appropriate SIGMA value (so that the entropy term is less than 1 meV per atom). Mind: Avoid using ISMEAR>0 for semiconductors and insulators, it might result in problems.
  • For the DOS and very accurate total energy calculations (no relaxation in metals) use the tetrahedron method (ISMEAR=-5).

Once again, if possible we recommend using the tetrahedron method with Blöchl corrections (ISMEAR=-5), this method is foolproof and does not require any empirical parameters like the other methods. Especially for bulk materials, we were able to get highly accurate results using this method.

Even with this scheme, the number of k points remains relatively large. For insulators, 100 k points/per atom in the full Brillouin zone are generally sufficient to reduce the energy error to less than 10 meV. Metals require approximately 1000 k points/per atom for the same accuracy. For problematic cases (transition metals with a steep DOS at the Fermi level) it might be necessary to increase the number of k points up to 5000/per atom, which usually reduces the error to less than 1 meV per atom.

Mind: The number of k points in the irreducible part of the Brillouin zone (IRBZ) might be much smaller. For fcc/bcc and sc a mesh containing 1331 k-points is reduced to 56 k-points in the IRBZ. This is a relatively modest value compared with the values used in conjunction with LMTO packages using the linear tetrahedron method.

Not in all cases, it is possible to use the tetrahedron method, for instance, if the number of k-points falls below 3, or if accurate forces are required. In this case, use the method of Methfessel-Paxton with N=1 for metals and N=0 for semiconductors. SIGMA should be as large as possible, but the difference between the free energy and the total energy, i.e. the term

entropy T*S

in the OUTCAR file must be small (i.e. < 1-2 meV/per atom). In this case the free energy and the energy one is really interested in are almost the same. The forces are also consistent with .

Mind: A good check whether the entropy term causes any problems is to compare the entropy term for different situations. The entropy must be the same for all situations. One has a problem if the entropy is 100 meV per atom at the surface but 10 meV per atom for the bulk.

Comparing different k-point meshes

It is necessary to be careful comparing different k-point meshes. Not always does the number of k points in the IRBZ increase continuously with the mesh size. This is for instance the case for fcc, where even grids centered not at the point (e.g. Monkhorst Pack ) result in a larger number of k points than odd divisions (e.g. ). In fact, the difference can be traced back to whether or whether not the point is included in the resulting k-point mesh. Meshes centered at (option G in the KPOINTS file or odd divisions, see also Automatic k-mesh generation) behave different than meshes without (option M in the KPOINTS file and even divisions). The precision of the mesh is usually directly proportional to the of k points in the IRBZ, but not to the number of divisions. Some ambiguities can be avoided if even meshes (not centered at ) are not compared with odd meshes (meshes centered at ).

Some other considerations

It is recommended to use even meshes (e.g. ) for up to . From there on odd meshes are more efficient (e.g. ). However, we have already stressed that the number of divisions is often totally unrelated to the total number of k points and to the precision of the grid. Therefore a might be more accurate then a grid. For fcc a grid is approximately as precise as a mesh. Finally, for hexagonal cells, the mesh should be shifted so that the point is always included i.e. the KPOINTS file

automatic mesh 
0
Gamma
  8   8   6   
  0.  0.  0.

is much more efficient than a KPOINTS file with Gamma replaced by Monkhorst (see also Automatic k-mesh generation).