Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

LMAXFOCKAE: Difference between revisions

From VASP Wiki
Kresse (talk | contribs)
No edit summary
Csheldon (talk | contribs)
No edit summary
 
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{TAGDEF|LMAXFOCKAE|[integer]|-1}}
{{TAGDEF|LMAXFOCKAE|[integer]}}


{{TAGDEF|NMAXFOCKAE|[integer]|0}}
{{DEF|LMAXFOCKAE|-1|DFT, Hartree-Fock|4|post-DFT methods}}


Description: Specifies the maximum spherical angular momentum quantum number (<math>L</math>) up to which augmentation charges are accurately restored on the plane-wave grid. This parameter controls the quality of shape restoration for the [[Projector-augmented-wave_formalism|PAW method]].
----
In the [[Projector-augmented-wave_formalism|PAW method]], the difference between the charge density of the all-electron partial waves <math>\phi_n</math> and the pseudo partial waves <math>\tilde \phi_n</math>
<math>
Q_{nm}({\mathbf r})= \phi^*_n({\mathbf r})\phi_m({\mathbf r})  - \tilde \phi^*_n({\mathbf r})\tilde \phi_m({\mathbf r})
</math>
is usually treated on spherical grids centered at each atom
(one-center terms inside the PAW spheres, see [[Projector-augmented-wave_formalism|PAW method]] method and more detailed description for {{TAG|LMAXFOCK}}).  To describe long-range electrostatic effects, the ''moments'' of the differences of the all-electron and pseudo charge density also need to be added on the plane wave grid (compensation density, see [[Projector-augmented-wave_formalism|PAW method]]). These compensation charges exactly restore the moments of the all-electron density on the plane wave grid. For the Fock exchange the maximum ''L'' quantum number up to which the augmentation is done is controlled by {{TAG|LMAXFOCK}}.
For [[GW approximation of Hedin's equations|GW]], [[ACFDT/RPA calculations|RPA]], and [[:Category:Many-body perturbation theory|post-DFT]] methods, the one-center terms are, however, presently not implemented, which can cause sizable errors, particularly for 3''d'' and (to a lesser extent) 2''p'', 4''d'', and 5''d'' elements. To correct for this error, an alternative treatment is implemented on the plane-wave grid for the exchange and correlation contributions, allowing for accurate restoration of the all-electron densities.
This improved treatment — termed ''shape restoration'' — is available for exchange as well as many-body correlation contributions. <!--For exchange, the exact one-center terms are also implemented (cf. {{TAG|LFOCKSTD}}); this means shape restoration is not required and should not change the results.--> More details on shape restoration are explained in Ref. {{cite|shishkin:prb:2006}} and {{cite|unzog:prb:2022}}.
Shape restoration allows restoration of the all-electron densities accurately already on the plane-wave grid by specifying the tags {{TAG|LMAXFOCKAE}} and {{TAG|NMAXFOCKAE}}. This accurate augmentation charge <math>\hat n</math> is calculated for the total orbital and angular momentum quantum numbers <math>L</math> (up to {{TAG|LMAXFOCKAE}}) and <math>M</math> using shape-restoring radial functions <math>\Delta g_L(r)</math> with coefficients <math>c^L_{nm}</math> to be determined:
<math>
\hat n=\sum_{LM\atop n,m}\rho_{LM}\!\left[q^{LM}_{nm}Y_{LM}(\Omega)+c^L_{nm}\,\Delta g_L(r)Y_{LM}(\Omega)\right]
</math>
where <math>Y_{LM}(\Omega)</math> are the spherical harmonics and <math>q^{LM}_{nm}</math> are the moments of the charge difference.
{{TAG|NMAXFOCKAE}} controls how accurately this compensation is performed by specifying the maximum expansion order of spherical Bessel functions <math>j_L</math> with carefully chosen coefficients <math>\alpha_{\beta L}</math> and <math>q_{\beta L}</math> (cf. Appendix of Ref. {{cite|unzog:prb:2022}} for details).
<math>
\;\Delta g_L(r)=\sum_{\beta=1}^{NMAXFOCKAE}\alpha_{\beta L}\, j_L\!\left(q_{\beta L}\, r\right)
</math>
{{NB|mind|This tag generally only applies to the Fock-exchange and [[:Category:Many-body perturbation theory|many-body perturbation theory]] (MBPT) (GW, RPA, [[MP2]], etc). The default for DFT and Hartree-Fock, {{TAG|LMAXFOCKAE|-1}}, restores only the moments of the all-electron charge densities on the plane-wave grid. For Hartree-Fock, the setting is very precise since the one-center terms are implemented in radial grids as for DFT.
}}


Description: {{TAG|LMAXFOCKAE}} and {TAG|LMAXFOCKAE}} sets the maximum angular momentum quantum number ''l'' for the "accurate" augmentation of charge densities in Hartree-Fock type routines.
== Recommendations ==
----
=== Element-Dependent ===
Usually VASP restores only the ''moments'' of the all-electron charge density on the plane wave grid (see {{TAG|LMAXFOCK}}) up to a certain ''l'' quantum number. It is, however, also possible to restore the ''shape'' of the charge density accurately on the plane wave grid, using the flag {{TAG|LMAXFOCKAE}}.
The setting for {{TAG|LMAXFOCKAE}} should be chosen based on the elements in the calculation:
* '''''s'' and ''p'' elements''': {{TAG|LMAXFOCKAE|2}}
* '''''d'' elements''': {{TAG|LMAXFOCKAE|4}} (a ''d'' electron can create charge densities with L-quantum numbers up to 4)
* '''''f'' elements''': {{TAG|LMAXFOCKAE|6}} may be required - test for each case


If {{TAG|LMAXFOCKAE}} is set, the shape of the charge density is restored accurately on the plane wave grid up to a typical plane wave energy of 100 eV. (Beyond that cutoff the polarizability is usually very small (<0.01), necessitating no accurate treatment.)
The general rule is to set {{TAG|LMAXFOCKAE}} to approximately twice the maximum ''l'' quantum number found in the {{FILE|POTCAR}} file.


This flag usually hardly changes the total energy or one-electron states, since the one-center-terms are calculated exactly for most Hamiltonians (the one-center terms are defined as the difference between the pseudized one-center terms and the all-electron one-center terms). However for the following type of Hamiltonians, one-center terms are currently not implemented, or only approximately implemented:
=== General ===
* Setting {{TAG|LMAXFOCKAE|4}} (or larger) forces an accurate treatment for charge augmentation on the plane-wave grid. This can be selected even in Hartree-Fock-type calculations, but causes some additional noise.
*If no accurate augmentation is desired set {{TAG|LMAXFOCKAE|-1}}, which will reduce the noise in the correlation energies.
* For DFT calculations, the exact one-center terms are implemented. This means shape restoration is not required and should not change the results. For post-DFT calculations, shape restoration significantly improves accuracy.


*Thomas-Fermi type screening ({{TAG|LTHOMAS}}=.TRUE.)
=== Relationship with NMAXFOCKAE ===
*[[GW calculations]]
{{TAG|LMAXFOCKAE}} and {{TAG|NMAXFOCKAE}} are strongly coupled. It is vital to use consistent settings for both when comparing energy differences.
* {{TAG|NMAXFOCKAE|1}} and {{TAG|LMAXFOCKAE|0|op=≥}}: Charge density is restored up to approximately 150 eV (controlled by {{TAG|QMAXFOCKAE}}).
* {{TAG|NMAXFOCKAE|2}} and {{TAG|LMAXFOCKAE|0|op=≥}}: Charge density is restored up to approximately 400 eV.
{{NB|important|{{TAG|NMAXFOCKAE|2}} is for very accurate augmentation on the plane-wave grid. Use {{TAG|NMAXFOCKAE|2}} only with care, as it can result in very noisy data for coarse FFT grids.|:}}


In these cases, it is recommended to set {{TAG|LMAXFOCKAE}} to twice the maximum ''l'' quantum number found in the {{FILE|POTCAR}} file.
== Related tags and articles ==
{{TAG|NMAXFOCKAE}}, {{TAG|LMAXFOCK}}, {{TAG|QMAXFOCKAE}}, {{TAG|LFOCKAEDFT}}, {{TAG|LFOCKSTD}}


For ''GW'' calculations involving first row elements set {{TAG|LMAXFOCKAE}} = 2. For ''GW'' calculations involving transition metals {{TAG|LMAXFOCKAE}} = 4 is recommended.
{{sc|LMAXFOCKAE|Examples|Examples that use this tag}}


== Related Tags and Sections ==
== References ==
{{TAG|LMAXFOCK}}
----
[[The_VASP_Manual|Contents]]


[[Category:INCAR]][[Category:Hybrids]]
[[Category:INCAR tag]]
[[Category:ACFDT]]
[[Category:Low-scaling GW and RPA]]
[[Category:Exchange-correlation functionals]]
[[Category:Hybrid functionals]]
[[Category:Many-body perturbation theory]]
[[Category:GW]]

Latest revision as of 13:46, 22 July 2026

LMAXFOCKAE = [integer] 

Default: LMAXFOCKAE = -1 DFT, Hartree-Fock
= 4 post-DFT methods

Description: Specifies the maximum spherical angular momentum quantum number ([math]\displaystyle{ L }[/math]) up to which augmentation charges are accurately restored on the plane-wave grid. This parameter controls the quality of shape restoration for the PAW method.


In the PAW method, the difference between the charge density of the all-electron partial waves [math]\displaystyle{ \phi_n }[/math] and the pseudo partial waves [math]\displaystyle{ \tilde \phi_n }[/math]

[math]\displaystyle{ Q_{nm}({\mathbf r})= \phi^*_n({\mathbf r})\phi_m({\mathbf r}) - \tilde \phi^*_n({\mathbf r})\tilde \phi_m({\mathbf r}) }[/math]

is usually treated on spherical grids centered at each atom (one-center terms inside the PAW spheres, see PAW method method and more detailed description for LMAXFOCK). To describe long-range electrostatic effects, the moments of the differences of the all-electron and pseudo charge density also need to be added on the plane wave grid (compensation density, see PAW method). These compensation charges exactly restore the moments of the all-electron density on the plane wave grid. For the Fock exchange the maximum L quantum number up to which the augmentation is done is controlled by LMAXFOCK.

For GW, RPA, and post-DFT methods, the one-center terms are, however, presently not implemented, which can cause sizable errors, particularly for 3d and (to a lesser extent) 2p, 4d, and 5d elements. To correct for this error, an alternative treatment is implemented on the plane-wave grid for the exchange and correlation contributions, allowing for accurate restoration of the all-electron densities.

This improved treatment — termed shape restoration — is available for exchange as well as many-body correlation contributions. More details on shape restoration are explained in Ref. [1] and [2].

Shape restoration allows restoration of the all-electron densities accurately already on the plane-wave grid by specifying the tags LMAXFOCKAE and NMAXFOCKAE. This accurate augmentation charge [math]\displaystyle{ \hat n }[/math] is calculated for the total orbital and angular momentum quantum numbers [math]\displaystyle{ L }[/math] (up to LMAXFOCKAE) and [math]\displaystyle{ M }[/math] using shape-restoring radial functions [math]\displaystyle{ \Delta g_L(r) }[/math] with coefficients [math]\displaystyle{ c^L_{nm} }[/math] to be determined:

[math]\displaystyle{ \hat n=\sum_{LM\atop n,m}\rho_{LM}\!\left[q^{LM}_{nm}Y_{LM}(\Omega)+c^L_{nm}\,\Delta g_L(r)Y_{LM}(\Omega)\right] }[/math]

where [math]\displaystyle{ Y_{LM}(\Omega) }[/math] are the spherical harmonics and [math]\displaystyle{ q^{LM}_{nm} }[/math] are the moments of the charge difference.

NMAXFOCKAE controls how accurately this compensation is performed by specifying the maximum expansion order of spherical Bessel functions [math]\displaystyle{ j_L }[/math] with carefully chosen coefficients [math]\displaystyle{ \alpha_{\beta L} }[/math] and [math]\displaystyle{ q_{\beta L} }[/math] (cf. Appendix of Ref. [2] for details).

[math]\displaystyle{ \;\Delta g_L(r)=\sum_{\beta=1}^{NMAXFOCKAE}\alpha_{\beta L}\, j_L\!\left(q_{\beta L}\, r\right) }[/math]

Recommendations

Element-Dependent

The setting for LMAXFOCKAE should be chosen based on the elements in the calculation:

  • s and p elements: LMAXFOCKAE = 2
  • d elements: LMAXFOCKAE = 4 (a d electron can create charge densities with L-quantum numbers up to 4)
  • f elements: LMAXFOCKAE = 6 may be required - test for each case

The general rule is to set LMAXFOCKAE to approximately twice the maximum l quantum number found in the POTCAR file.

General

  • Setting LMAXFOCKAE = 4 (or larger) forces an accurate treatment for charge augmentation on the plane-wave grid. This can be selected even in Hartree-Fock-type calculations, but causes some additional noise.
  • If no accurate augmentation is desired set LMAXFOCKAE = -1, which will reduce the noise in the correlation energies.
  • For DFT calculations, the exact one-center terms are implemented. This means shape restoration is not required and should not change the results. For post-DFT calculations, shape restoration significantly improves accuracy.

Relationship with NMAXFOCKAE

LMAXFOCKAE and NMAXFOCKAE are strongly coupled. It is vital to use consistent settings for both when comparing energy differences.

Related tags and articles

NMAXFOCKAE, LMAXFOCK, QMAXFOCKAE, LFOCKAEDFT, LFOCKSTD

Examples that use this tag

References