LOCPOT: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 14: Line 14:
The data arrangement on the {{TAG|LOCPOT}} file is similar to that of the {{TAG|CHGCAR}} file.
The data arrangement on the {{TAG|LOCPOT}} file is similar to that of the {{TAG|CHGCAR}} file.


For VASP.5.2.12 and newer: {{TAG|LVTOT}}=.TRUE. writes the local potential ''including'' the exchange-correlation contribution on {{TAG|LOCPOT}}. {{TAG|LVHAR}}=.TRUE. writes the local potential ''excluding'' the exchange-correlation potential on {{TAG|LOCPOT}}.
----
----


[[Category:Files]][[Category:Output Files]]
[[Category:Files]][[Category:Output Files]]

Revision as of 17:42, 30 November 2020

The LOCPOT file contains the total local potential (in eV).

To write this file, the line

LVTOT = .TRUE.

must exist in the INCAR file. In the present version, the only electrostatic part of the potential is written (exchange correlation is not added). This is desirable for the evaluation of the work-function, because the electrostatic potential converges more rapidly to the vacuum level than the total potential. However if the exchange correlation potential is to be included, change one line in main.F:

! comment out the following line to add  exchange correlation
!         INFO%LEXCHG=-1
         CALL POTLOK(...)

Mind: Older versions might have had a different behavior, when they were retrieved from the server. Please always check yourself, whether main.F is working in the way you expect (simply search for LEXCHG=-1 in main.F). If the line LEXCHG=-1 is commented out, the exchange correlation is added. It is recommended to avoid wrap around errors, when evaluating LOCPOT. This can be done by specifying PREC=High in the INCAR file. The data arrangement on the LOCPOT file is similar to that of the CHGCAR file.

For VASP.5.2.12 and newer: LVTOT=.TRUE. writes the local potential including the exchange-correlation contribution on LOCPOT. LVHAR=.TRUE. writes the local potential excluding the exchange-correlation potential on LOCPOT.