NELECT: Difference between revisions
(Created page with '{{TAGDEF|NELECT|[real]|number of valence electrons}} Description: {{TAG|NELECT}} sets the number of electrons. ---- Usually you should not set this line. The number of electrons…') |
|||
(22 intermediate revisions by 6 users not shown) | |||
Line 3: | Line 3: | ||
Description: {{TAG|NELECT}} sets the number of electrons. | Description: {{TAG|NELECT}} sets the number of electrons. | ||
---- | ---- | ||
{{NB| warning | Unless you would like to perform a charged calculation, you should not set this line.}} | |||
The number of electrons is determined automatically from the {{FILE|POTCAR}} (ZVAL of the element) and {{FILE|POSCAR}} file (number of the atoms of the respective atom type) assuming the cell is charge-neutral. | |||
If the number of electrons is not compatible with the number derived from the valence and the number of atoms a homogeneous background charge is assumed. | |||
If the number of ions specified in the {{FILE|POSCAR}} file is 0 and {{TAG|NELECT}}=n, then the energy of a homogeneous electron gas is calculated. | |||
== Charged calculations == | |||
{{NB| warning | Using the {{TAG|NELECT}} tag without the use of an appropriate correction leads to a very slow convergence of energies with respect to the size ''L'' of the supercell. }} | |||
The required first-order correction to the energy caused by an excess charge is given by | |||
::<math>\frac{e^2q^2\alpha}{L\epsilon}</math> | |||
where ''q'' is the net charge of the system, α | |||
the Madelung constant of a point charge ''q'' placed in a homogeneous background charge ''-q'', and ε | |||
the dielectric constant of the system. | |||
For atoms or molecules surrounded by vacuum, ε takes on the vacuum value ε=1. | |||
VASP can automatically correct this leading error, see {{TAG|Electrostatic corrections}} for further information. | |||
<!-- Consult the following pages for information about how to deal with charged materials | |||
* [[Dipole corrections for defects and charged defects| Dipole correction for defects and charged defects]] when dealing with bulk charged defects | |||
* [[Charged systems with density functional theory| Charged systems with density functional theory]] to understand why computing energies of charged materials requires special care. | |||
--> | |||
It is important to emphasize that the total energy cannot be corrected for charged slabs, since a charged slab results in an electrostatic potential that grows with the distance from the slab. | |||
This non-convergence of the potential is a result of the interaction between the charged slab and the compensating background. | |||
A practical consequence of this non-convergence is that the total energy depends linearly on the width of the vacuum. | |||
{{NB|warning| Presently, no simple ''a posteriori'' correction scheme is implemented in VASP for slab calculations. Total energies from charged slab calculations must be used with care. In certain cases, relative energies between two charged surface calculations may be useful''}} | |||
== Related tags and articles == | |||
{{TAG|Monopole Dipole and Quadrupole corrections}}, | |||
{{TAG|EPSILON}}, | |||
{{TAG|DIPOL}}, | |||
{{TAG|IDIPOL}}, | |||
{{TAG|LMONO}}, | |||
{{TAG|LDIPOL}}, | |||
{{TAG|EFIELD}} | |||
<!-- | |||
* [[Dipole corrections for defects and charged defects| Dipole correction for defects and charged defects]] when dealing with bulk charged defects | |||
* [[Charged systems with density functional theory| Charged systems with density functional theory]] to understand why computing energies of charged materials requires special care. | |||
--> | |||
{{sc|NELECT|Examples|Examples that use this tag}} | |||
[[Category:INCAR]] | [[Category:INCAR tag]][[Category:Electronic occupancy]][[Category:Electrostatics]] |
Latest revision as of 11:57, 17 October 2024
NELECT = [real]
Default: NELECT = number of valence electrons
Description: NELECT sets the number of electrons.
Warning: Unless you would like to perform a charged calculation, you should not set this line. |
The number of electrons is determined automatically from the POTCAR (ZVAL of the element) and POSCAR file (number of the atoms of the respective atom type) assuming the cell is charge-neutral. If the number of electrons is not compatible with the number derived from the valence and the number of atoms a homogeneous background charge is assumed. If the number of ions specified in the POSCAR file is 0 and NELECT=n, then the energy of a homogeneous electron gas is calculated.
Charged calculations
Warning: Using the NELECT tag without the use of an appropriate correction leads to a very slow convergence of energies with respect to the size L of the supercell. |
The required first-order correction to the energy caused by an excess charge is given by
where q is the net charge of the system, α the Madelung constant of a point charge q placed in a homogeneous background charge -q, and ε the dielectric constant of the system. For atoms or molecules surrounded by vacuum, ε takes on the vacuum value ε=1. VASP can automatically correct this leading error, see Electrostatic corrections for further information. It is important to emphasize that the total energy cannot be corrected for charged slabs, since a charged slab results in an electrostatic potential that grows with the distance from the slab. This non-convergence of the potential is a result of the interaction between the charged slab and the compensating background. A practical consequence of this non-convergence is that the total energy depends linearly on the width of the vacuum.
Warning: Presently, no simple a posteriori correction scheme is implemented in VASP for slab calculations. Total energies from charged slab calculations must be used with care. In certain cases, relative energies between two charged surface calculations may be useful |
Related tags and articles
Monopole Dipole and Quadrupole corrections, EPSILON, DIPOL, IDIPOL, LMONO, LDIPOL, EFIELD