3.37 Sternheimer RPA for atoms and diatomic molecules

This section describes Sternheimer implementations of the RPA correlation energy for finite single atoms and diatomic molecules. The common idea is to avoid an explicit sum over unoccupied states in the response calculation by solving the Sternheimer equation on a two-dimensional real-space grid adapted to the atomic or diatomic geometry.

Two related implementations are available:

  • •

    an RI-Sternheimer path, enabled by use_rpa_stern_diatom .true., which uses the RI-V Coulomb representation, and

  • •

    an iterative Sternheimer path, enabled by iter_sternheimer_diatom .true., which avoids an auxiliary basis and obtains the eigenvalues of the Sternheimer response operator with ARPACK.

These two paths are mutually exclusive input options.

The current implementation is intentionally restricted to the cases for which it has been tested:

  • •

    finite, non-periodic systems containing either one atom or two atoms,

  • •
  • •

    for the RI-Sternheimer path, relativistic none and RI_method V,

  • •

    for the iterative Sternheimer path, relativistic none or relativistic atomic_zora scalar,

  • •

    for diatomic molecules, the molecular axis must be parallel to the Cartesian z axis, i.e. both atoms must have the same x and y coordinates, and

  • •

    for single atoms, the atom must lie on the z axis and have z≠0. The current grid convention uses R=2⁢|z⁢_⁢atom| for a single atom.

The molecule does not have to be centered at the origin. If these requirements are not fulfilled, FHI-aims stops with an explicit error message.

The sparse Sternheimer linear systems are solved with PARDISO when FHI-aims is built with MKL. Builds without MKL/PARDISO use a dense LAPACK fallback. The LAPACK fallback is intended only for small-grid tests because it expands the sparse Sternheimer matrix to dense form. For production calculations or dense Sternheimer grids, build FHI-aims with MKL/PARDISO so that the sparse solver is used. The LAPACK fallback prints a warning and stops before allocation if the estimated dense matrix memory is too large for the current node.

The iterative implementation is parallelized over frequency points. The Sternheimer matrices and ARPACK work arrays are local to each MPI task that handles a frequency point, and large grids can therefore require substantial memory. For large tests, reducing the number of MPI ranks per node may be necessary.

The iterative path requires an FHI-aims build linked with ARPACK. In CMake builds, enable USE_ARPACK and add the ARPACK library and library path to LIBS and LIB_PATHS, respectively. Builds without ARPACK still compile, but stop with an explicit error message if iter_sternheimer_diatom is used.

Examples

A minimal control.in setup for the RI-Sternheimer path is:

xc                 pbe
relativistic       none

total_energy_method rpa
frequency_points    8
RI_method           V

use_rpa_stern_diatom .true.
grid_N_mu_Sternheimer 150
grid_N_nu_Sternheimer 120
grid_Rmax 30.0

# [insert species data below]

A minimal control.in setup for the iterative path is:

xc                 pbe
relativistic       atomic_zora scalar

total_energy_method rpa
frequency_points    48

iter_sternheimer_diatom .true.
iter_sternheimer_parm 100 0 3
grid_N_mu_Sternheimer 150
grid_N_nu_Sternheimer 120
grid_Rmax 30.0

# [insert species data below]

The corresponding geometry.in must align the molecule along the z axis, for example:

atom 0.0 0.0 -0.56771798 O
atom 0.0 0.0  0.56771798 C

Tags for the general section of control.in:

 

Tag: use_rpa_stern_diatom(control.in)

Usage: use_rpa_stern_diatom .true.
Purpose: Enable the RI-Sternheimer RPA correlation-energy path for finite single atoms and diatomic molecules. This keyword is active for total_energy_method rpa calculations and currently requires relativistic none and RI_method V. It must not be combined with iter_sternheimer_diatom.

 

Tag: iter_sternheimer_diatom(control.in)

Usage: iter_sternheimer_diatom .true.
Purpose: Enable the iterative Sternheimer RPA correlation-energy path for finite single atoms and diatomic molecules. This path uses ARPACK to obtain selected eigenvalues of the Sternheimer response operator and does not use an auxiliary RI basis. The current implementation supports relativistic none and relativistic atomic_zora scalar. It must not be combined with use_rpa_stern_diatom.

 

Tag: iter_sternheimer_parm(control.in)

Usage: iter_sternheimer_parm n_eigen m_min m_max
Purpose: Set the number of ARPACK eigenvalues and the range of angular momentum channels used by the iterative Sternheimer RPA solver. n_eigen is the number of eigenvalues retained for each m channel. m_min and m_max define the inclusive range of non-negative m channels. The m=0 channel is counted once, while channels with m>0 include the usual factor of two for ±m.

 

Tag: grid_N_mu_Sternheimer(control.in)

Usage: grid_N_mu_Sternheimer integer
Purpose: Set the number of μ grid points in the two-dimensional real-space grid used by the Sternheimer RPA solvers. The default is 150. The grid should be converged for production results.

 

Tag: grid_N_nu_Sternheimer(control.in)

Usage: grid_N_nu_Sternheimer integer
Purpose: Set the number of ν grid points in the two-dimensional real-space grid used by the Sternheimer RPA solvers. The default is 120. The grid should be converged for production results.

 

Tag: grid_level_Sternheimer(control.in)

Usage: grid_level_Sternheimer integer
Purpose: Select one of the legacy preset two-dimensional grid sizes. This keyword is retained for compatibility with older inputs. New inputs should prefer the explicit grid_N_mu_Sternheimer and grid_N_nu_Sternheimer keywords. If grid_level_Sternheimer is specified, it overrides the explicit grid-size keywords.

 

Tag: grid_Rmax(control.in)

Usage: grid_Rmax real
Purpose: Set the radial extent of the two-dimensional Sternheimer grid in bohr. The value must be positive and large enough to contain the molecule.