LREAL: Difference between revisions
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
:For {{TAG|LREAL}}=Auto | :For {{TAG|LREAL}}=Auto | ||
::{| | ::{| | ||
|{{TAG|PREC}}=Fast || accuracy 2& | |{{TAG|PREC}}=Fast || accuracy 2&time;10<sup>-3</sup> ({{TAG|ROPT}}=-0.002) | ||
|- | |- | ||
|{{TAG|PREC}}=Normal || accuracy 5 · 10<sup>-4</sup> ({{TAG|ROPT}}=-5E-4) | |{{TAG|PREC}}=Normal || accuracy 5 · 10<sup>-4</sup> ({{TAG|ROPT}}=-5E-4) |
Revision as of 18:47, 16 October 2023
LREAL = .FALSE. | Auto (or A) | On (or O) | .TRUE.
Default: LREAL = .FALSE.
Description: LREAL determines whether the projection operators are evaluated in real-space or in reciprocal space.
LREAL=.FALSE. | projection done in reciprocal space |
LREAL=Auto or A | projection done in real space, fully automatic optimization of projection operators (little to no user interference required) |
LREAL=On or O | projection done in real space, projection operators are re-optimized (not recommended) |
LREAL=.TRUE. | projection done in real space, use projectors on file (not recommended) |
The non local part of the pseudopotential requires the evaluation of an expression:
- .
where the "projected wavefunction character" is defined as:
This expression can be evaluated in reciprocal or real space: In reciprocal space (second line) the number of operations scales with the size of the basis set (i.e. number of plane waves). In real space (first line) the projection operators are confined to spheres around each atom. Therefore the number of operations necessary to evaluate one Cink does not increase with the system size (usually the number of grid points within the cut-off-sphere is between 500 and 2000). One of the major obstacles to the method working in real space is that the projection operators must be optimized, i.e. all high Fourier components must be removed from the projection operators. If this is not done "aliasing" can happen, i.e., the high Fourier components of the projection operators are downfolded to low Fourier components and random noise is introduced).
Currently, VASP supports three different schemes to remove the high Fourier components from the projectors. LREAL=.TRUE. is the simplest one. For LREAL=.TRUE., the real space projectors that have been generated by the pseudopotential generation code are used. This requires no user interference but is potentially very inaccurate. For the outdated LREAL=On, the real space projectors are optimized by VASP using an algorithm proposed by King-Smith et al.[1] For the recommended LREAL=Auto, an unpublished scheme[2] is used which results in simultaneously more accurate and localized projector functions than for the King-Smith et al. method. To fine-tune the optimization procedure the flag ROPT can and should be used, if LREAL=Auto (or LREAL=On) is used. Specifically, perform first reference calculations using LREAL=.False. and decrease ROPT until an acceptable accuracy of say 1 meV/atom is attained. Please also check carefully the documentation for ROPT.
We recommend using the real-space projection scheme for systems containing more than about 30 atoms. We also strongly recommend using only LREAL=Auto.
For LREAL=A (and LREAL=O) the projection operators are optimized by VASP on the fly (i.e. on startup). Several flags influence the optimization:
- ENCUT (i.e. the energy cutoff), components beyond the energy cutoff are 'removed' from the projection operators.
- PREC tag specifies how precise the real space projectors should be and sets the variables ROPT accordingly to the following values:
- For LREAL=Auto
- For LREAL=On
Mind: Real-space optimization (LREAL=Auto) always results in a small (not necessarily negligible) error (the error is usually a constant energy shift for each atom). If you are interested in energy differences of a few meV use only calculations with the same setup (i.e. same ENCUT, PREC, LREAL and ROPT setting) for all calculations. For example, if you want to calculate surface or defect energies recalculate the bulk ground-state energy with exactly the same setting you are using for the surface. Another possibility is to relax the structure using real space projection and to perform one final total energy calculation using LREAL=.FALSE. to get very precise energies. Anyway, for PREC=Normal, the errors introduced by the real space projection are usually of the same order magnitude as those introduced by the wrap-around errors. For PREC=Accurate errors are usually less than 1 meV. PREC=Fast should be used only for, say, fast molecular-dynamics calculations, if compute resources are really an issue.
When the energy cutoff [[ENCUT ]] way above their defaults, the real space projection scheme sometimes becomes unreliable, and it might be necessary to decrease ROPT to values as small as ROPT= 1E-4.
Related tags and articles
References
- ↑ R.D. King-Smith, M.C. Payne and J.S. Lin, Phys. Rev B 44, 13063 (1991).
- ↑ G. Kresse, to be published.