(git:6344619)
Loading...
Searching...
No Matches
ri_rs_setup Module Reference

Builds the shared RI-RS grid, AO collocation and fitting representation. More...

Functions/Subroutines

subroutine, public ensure_ri_rs_representation (qs_env, bs_env)
 Populate the RI-RS grid, AO collocation and auxiliary fitting coefficients once. Periodic systems use the same neighbouring-image convention for phi and Z.
subroutine, public compute_z_lp (qs_env, bs_env, ri_rs_grid_points, mat_phi_mu_l, mat_z_lp, periodic_images)
 Computes Z_lP for (1) a tabulated RI basis set or (2) an on-the-fly generated RI basis set.

Detailed Description

Builds the shared RI-RS grid, AO collocation and fitting representation.

History
09.2026 created Jan Wilhelm 09.2026 moved code by Ritaj Tyagi from gw_ri_rs_non_periodic.F 09.2026 added routine to compute Z_lP for automatic RI optimization

Function/Subroutine Documentation

◆ ensure_ri_rs_representation()

subroutine, public ri_rs_setup::ensure_ri_rs_representation ( type(qs_environment_type), pointer qs_env,
type(post_scf_bandstructure_type), pointer bs_env )

Populate the RI-RS grid, AO collocation and auxiliary fitting coefficients once. Periodic systems use the same neighbouring-image convention for phi and Z.

Parameters
qs_envelectronic-structure environment
bs_envgeometry, RI-RS settings and owned output matrices

Definition at line 85 of file ri_rs_setup.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_z_lp()

subroutine, public ri_rs_setup::compute_z_lp ( type(qs_environment_type), pointer qs_env,
type(post_scf_bandstructure_type), pointer bs_env,
real(kind=dp), dimension(:, :), intent(in) ri_rs_grid_points,
type(dbcsr_type), intent(inout) mat_phi_mu_l,
type(dbcsr_type), intent(out) mat_z_lp,
logical, intent(in), optional periodic_images )

Computes Z_lP for (1) a tabulated RI basis set or (2) an on-the-fly generated RI basis set.

  In both cases, the Z_lP coefficients are computed by solving the linear system

    Σ_l' D_ll' Z_l'P = d_lP,

  with D_ll' and d_lP given by

    D_ll' = [Σ_μ ϕ_μ(r_l) ϕ_μ(r_l')]²,

    d_lP = Σ_μν ϕ_μ(r_l) ϕ_ν(r_l) (μν|P).

  For an on-the-fly generated RI basis set, an RI function φ_P may be a contraction of
  Gaussians on neighboring atoms, which requires special computation of d_lP.
Parameters
qs_env...
bs_envBand-structure environment containing GW parameters.
ri_rs_grid_points...
mat_phi_mu_l...
mat_Z_lP...
periodic_imagesuse Gamma image sums and minimum-image integration spheres

Definition at line 150 of file ri_rs_setup.F.

Here is the call graph for this function:
Here is the caller graph for this function: