![]() |
Octopus
|
Per-species, geometry-independent one-center data. Built once at setup and immutable during the SCF; the compute routine only reads it. More...
Per-species, geometry-independent one-center data. Built once at setup and immutable during the SCF; the compute routine only reads it.
Definition at line 194 of file paw_onsite.F90.
Private Attributes | |
| integer | nspin = 1 |
| number of spin components of rho/dij More... | |
| integer | spin_channels = 1 |
| number of spin channels (1 or 2) More... | |
| real(real64) | rc = M_ZERO |
| radius of the augmentation sphere More... | |
| integer | nr = 0 |
| number of radial points inside the sphere More... | |
| real(real64), dimension(:), allocatable | r |
| r_k More... | |
| real(real64), dimension(:), allocatable | r2 |
| r_k^2 More... | |
| real(real64), dimension(:), allocatable | invr |
| 1/r_k, defined as 0 at the origin (r_k = 0), so the radial-gradient angular terms (phi/r) need no branch in the hot loops More... | |
| real(real64), dimension(:), allocatable | wr |
| native radial weights: int f dr = sum f_k wr_k More... | |
| real(real64), dimension(:), allocatable | vwr |
| radial volume weight r_k^2 wr_k: int f r^2 dr = sum f_k vwr_k More... | |
| integer | nrad = 0 |
| number of radial partial waves More... | |
| integer, dimension(:), allocatable | lrad |
| l of each radial partial wave More... | |
| real(real64), dimension(:,:), allocatable | phi_ae |
| (nr, nrad) AE partial wave phi_i(r) More... | |
| real(real64), dimension(:,:), allocatable | phi_ps |
| (nr, nrad) PS partial wave phitilde_i(r) More... | |
| integer, dimension(:), allocatable | rad_2j |
| (nrad) 2j of each partial wave (0 for scalar-relativistic datasets) More... | |
| logical | has_small = .false. |
| fully-relativistic dataset with small components More... | |
| real(real64), dimension(:,:), allocatable | phi_ae_small |
| (nr, nrad) small component of the AE waves More... | |
| integer | nlm = 0 |
| total number of (radial, m) projectors More... | |
| integer, dimension(:), allocatable | p_rad |
| (nlm) radial channel of projector More... | |
| integer, dimension(:), allocatable | p_l |
| (nlm) l of projector More... | |
| integer, dimension(:), allocatable | p_m |
| (nlm) m of projector More... | |
| integer | laug = -1 |
| max L of the augmentation More... | |
| real(real64), dimension(:,:,:), allocatable | qaug |
| (nr, npair, 0:laug) Qhat_{ij}^L(r) More... | |
| integer | npair = 0 |
| The one-center densities, D-matrix accumulations and GGA pair gradients all contract rho_ij (or v_LM) with the species-constant radial pair products phi_i phi_j and the real Gaunt coefficients int Y_{l_i m_i} Y_{l_j m_j} Y_{LM} dOmega. More... | |
| real(real64), dimension(:,:), allocatable | pair_ae |
| (nr, npair) phi_i(r) phi_j(r) More... | |
| real(real64), dimension(:,:), allocatable | pair_ps |
| (nr, npair) phitilde_i(r) phitilde_j(r) More... | |
| integer | ngnt = 0 |
| number of nonzero Gaunt couplings (i, j, L, M) More... | |
| integer, dimension(:), allocatable | gnt_pair |
| (ngnt) radial pair index of each coupling More... | |
| integer, dimension(:), allocatable | gnt_l |
| (ngnt) L of each coupling (the qaug channel) More... | |
| integer, dimension(:), allocatable | gnt_lm |
| (ngnt) packed (L,M) index L(L+1)+M+1 More... | |
| real(real64), dimension(:), allocatable | gnt_c |
| (ngnt) real Gaunt coefficient More... | |
| integer, dimension(:), allocatable | gnt_ptr |
| (nlm*nlm+1) CSR offsets: the couplings of the projector pair (i, j) are gnt_ptr(ij) to gnt_ptr(ij+1)-1 with ij = (i-1)*nlm + j More... | |
| real(real64), dimension(:,:), allocatable | dpair_ae |
| (nr, npair) d(phi_i phi_j)/dr More... | |
| real(real64), dimension(:,:), allocatable | dpair_ps |
| (nr, npair) d(phitilde_i phitilde_j)/dr More... | |
| real(real64), dimension(:,:,:), allocatable | dqaug |
| (nr, npair, 0:laug) d Qhat_{ij}^L/dr More... | |
| real(real64), dimension(:), allocatable | nc_ae_der |
| (nr) d n_c^AE/dr More... | |
| real(real64), dimension(:), allocatable | nc_ps_der |
| (nr) d n_c^PS/dr More... | |
| integer | der_nw = 5 |
| Five-point Fornberg finite-difference weights on the (nonuniform) radial grid inside the sphere: df(k) = sum_w der_w(w, k) f(der_i0(k)+w-1). Built once at init; applying it and its transpose is allocation-free and O(nr). It is only used by the moment expansion of the GGA one-center XC (paw_xc_moments), which needs a linear operator on the sphere grid together with its discrete adjoint. All the other radial derivatives are the precomputed full-grid ones above. More... | |
| real(real64), dimension(:,:), allocatable | der_w |
| (der_nw, nr) derivative weights per radial point More... | |
| integer, dimension(:), allocatable | der_i0 |
| (nr) leftmost stencil index per radial point More... | |
| integer | der_ntw = 0 |
| real(real64), dimension(:,:), allocatable | der_wt |
| (der_ntw, nr) transposed weights per output point More... | |
| integer, dimension(:), allocatable | der_trow0 |
| (nr) first contributing row per output point More... | |
| integer, dimension(:), allocatable | der_tn |
| (nr) number of contributing rows per output point More... | |
| logical | has_ae_core = .false. |
| logical | has_ps_core = .false. |
| real(real64), dimension(:), allocatable | nc_ae |
| (nr) AE core density n_c(r) More... | |
| real(real64), dimension(:), allocatable | nc_ps |
| (nr) PS core density ntilde_c(r) More... | |
| real(real64), dimension(:), allocatable | vref_ae |
| (nr) AE reference potential (Ha): -Z/r + v_H[core] More... | |
| real(real64), dimension(:), allocatable | vref_ps |
| (nr) PS reference potential vbar (Ha) More... | |
| real(real64), dimension(:,:), allocatable | kin_ae |
| (nrad, nrad) <phi_i|T|phi_j> More... | |
| real(real64), dimension(:,:), allocatable | kin_ps |
| (nrad, nrad) <phitilde_i|T|phitilde_j> More... | |
| integer | nang = 0 |
| number of angular points More... | |
| integer | lmax_rho = 0 |
| max L of the density expansion (= 2 max l) More... | |
| integer | nlm_rho = 0 |
| (lmax_rho+1)^2 More... | |
| real(real64), dimension(:), allocatable | wang |
| (nang) angular weights (int dOmega) More... | |
| real(real64), dimension(:,:), allocatable | ylm |
| (nang, nlm_rho) real spherical harmonics More... | |
| real(real64), dimension(:,:), allocatable | dylm_dth |
| (nang, nlm_rho) dY_LM/dtheta (GGA) More... | |
| real(real64), dimension(:,:), allocatable | dylm_dph |
| (nang, nlm_rho) (1/sin theta) dY_LM/dphi (GGA) More... | |
| real(real64), dimension(:,:), allocatable | wylm |
| (nang, nlm_rho) quadrature-weighted Y_LM More... | |
| real(real64), dimension(:,:), allocatable | wdylm_dth |
| (nang, nlm_rho) quadrature-weighted dY_LM/dtheta More... | |
| real(real64), dimension(:,:), allocatable | wdylm_dph |
| (nang, nlm_rho) quadrature-weighted (1/sin theta) dY_LM/dphi More... | |
| real(real64), dimension(:,:), allocatable | rhat |
| Cartesian components of the spherical orthonormal basis at each angular point, used to build the Cartesian gradient of phi(r) Y_LM(Omega) for the one-center current: rhat = radial, that = theta, phat = phi. grad(phi Y) = phi` Y rhat + (phi/r)(dY/dth that + (1/sin th)dY/dph phat). More... | |
| real(real64), dimension(:,:), allocatable | that |
| (nang, 3) theta unit vector More... | |
| real(real64), dimension(:,:), allocatable | phat |
| (nang, 3) phi unit vector More... | |
| real(real64), dimension(:), allocatable | tau_c_ae |
| The frozen-core kinetic-energy density The all-electron tau_c_ae is reconstructed exactly from the stored core orbitals The smooth tau_c_ps is a gradient-expansion model of the (pseudized) smooth core density, used identically here and on the mesh so the AE-PS one-center cancellation stays clean. The core density Laplacians feed Laplacian-dependent meta-GGAs (e.g. TB09). Stored already divided by spin_channels (added directly to each spin channel). More... | |
| real(real64), dimension(:), allocatable | tau_c_ps |
| (nr) smooth core KED, per spin channel More... | |
| real(real64), dimension(:), allocatable | nc_ae_lapl |
| (nr) Laplacian of the AE core density, per spin channel More... | |
| real(real64), dimension(:), allocatable | nc_ps_lapl |
| (nr) Laplacian of the smooth core density, per spin channel More... | |
| real(real64), dimension(:,:), allocatable | dphi_ae |
| Radial derivatives of the partial waves, only for meta-GGA (computed once on the full dataset grid, see paw_onsite_init_mgga). The second derivatives only for Laplacian-dependent functionals. More... | |
| real(real64), dimension(:,:), allocatable | dphi_ps |
| (nr, nrad) d phitilde_i/dr More... | |
| real(real64), dimension(:,:), allocatable | d2phi_ae |
| (nr, nrad) d^2 phi_i/dr^2 More... | |
| real(real64), dimension(:,:), allocatable | d2phi_ps |
| (nr, nrad) d^2 phitilde_i/dr^2 More... | |
| integer | formulation = PAW_KRESSE_JOUBERT |
| type(xc_functional_t), dimension(:), pointer | xc_functl => null() |
| Exchange and correlation functionals. More... | |
| logical | owns_xc_functl = .true. |
| .false. once the handles are shared with the main xc More... | |
| logical | xc_is_gga = .false. |
| set if either functional needs the density gradient More... | |
| logical | xc_is_mgga = .false. |
| set if either functional needs the kinetic-energy density More... | |
| logical | xc_needs_laplacian = .false. |
| set if a meta-GGA needs the density Laplacian (e.g. TB09) More... | |
| logical | usexcnhat = .true. |
| Kresse-Joubert (.true.) vs Bloechl (.false.) treatment of the compensation charge in XC. Defaults to .not. xc_is_mgga; overridden by the PAWCompensationScheme input via paw_onsite_init. More... | |
| integer | xc_scheme = PAW_XC_SCHEME_MOMENTS |
| one-center XC scheme More... | |
|
private |
number of spin components of rho/dij
Definition at line 196 of file paw_onsite.F90.
|
private |
number of spin channels (1 or 2)
Definition at line 197 of file paw_onsite.F90.
|
private |
radius of the augmentation sphere
Definition at line 200 of file paw_onsite.F90.
|
private |
number of radial points inside the sphere
Definition at line 201 of file paw_onsite.F90.
|
private |
r_k
Definition at line 202 of file paw_onsite.F90.
|
private |
r_k^2
Definition at line 203 of file paw_onsite.F90.
|
private |
1/r_k, defined as 0 at the origin (r_k = 0), so the radial-gradient angular terms (phi/r) need no branch in the hot loops
Definition at line 204 of file paw_onsite.F90.
|
private |
native radial weights: int f dr = sum f_k wr_k
Definition at line 207 of file paw_onsite.F90.
|
private |
radial volume weight r_k^2 wr_k: int f r^2 dr = sum f_k vwr_k
Definition at line 208 of file paw_onsite.F90.
|
private |
number of radial partial waves
Definition at line 211 of file paw_onsite.F90.
|
private |
l of each radial partial wave
Definition at line 212 of file paw_onsite.F90.
|
private |
(nr, nrad) AE partial wave phi_i(r)
Definition at line 213 of file paw_onsite.F90.
|
private |
(nr, nrad) PS partial wave phitilde_i(r)
Definition at line 214 of file paw_onsite.F90.
|
private |
(nrad) 2j of each partial wave (0 for scalar-relativistic datasets)
Definition at line 215 of file paw_onsite.F90.
|
private |
fully-relativistic dataset with small components
Definition at line 216 of file paw_onsite.F90.
|
private |
(nr, nrad) small component of the AE waves
Definition at line 217 of file paw_onsite.F90.
|
private |
total number of (radial, m) projectors
Definition at line 220 of file paw_onsite.F90.
|
private |
(nlm) radial channel of projector
Definition at line 221 of file paw_onsite.F90.
|
private |
(nlm) l of projector
Definition at line 222 of file paw_onsite.F90.
|
private |
(nlm) m of projector
Definition at line 223 of file paw_onsite.F90.
|
private |
max L of the augmentation
Definition at line 226 of file paw_onsite.F90.
|
private |
(nr, npair, 0:laug) Qhat_{ij}^L(r)
Definition at line 227 of file paw_onsite.F90.
|
private |
The one-center densities, D-matrix accumulations and GGA pair gradients all contract rho_ij (or v_LM) with the species-constant radial pair products phi_i phi_j and the real Gaunt coefficients int Y_{l_i m_i} Y_{l_j m_j} Y_{LM} dOmega.
nrad*(nrad+1)/2 packed (i <= j) radial channel pairs
Definition at line 233 of file paw_onsite.F90.
|
private |
(nr, npair) phi_i(r) phi_j(r)
Definition at line 234 of file paw_onsite.F90.
|
private |
(nr, npair) phitilde_i(r) phitilde_j(r)
Definition at line 235 of file paw_onsite.F90.
|
private |
number of nonzero Gaunt couplings (i, j, L, M)
Definition at line 236 of file paw_onsite.F90.
|
private |
(ngnt) radial pair index of each coupling
Definition at line 237 of file paw_onsite.F90.
|
private |
(ngnt) L of each coupling (the qaug channel)
Definition at line 238 of file paw_onsite.F90.
|
private |
(ngnt) packed (L,M) index L(L+1)+M+1
Definition at line 239 of file paw_onsite.F90.
|
private |
(ngnt) real Gaunt coefficient
Definition at line 240 of file paw_onsite.F90.
|
private |
(nlm*nlm+1) CSR offsets: the couplings of the projector pair (i, j) are gnt_ptr(ij) to gnt_ptr(ij+1)-1 with ij = (i-1)*nlm + j
Definition at line 241 of file paw_onsite.F90.
|
private |
(nr, npair) d(phi_i phi_j)/dr
Definition at line 248 of file paw_onsite.F90.
|
private |
(nr, npair) d(phitilde_i phitilde_j)/dr
Definition at line 249 of file paw_onsite.F90.
|
private |
(nr, npair, 0:laug) d Qhat_{ij}^L/dr
Definition at line 250 of file paw_onsite.F90.
|
private |
(nr) d n_c^AE/dr
Definition at line 251 of file paw_onsite.F90.
|
private |
(nr) d n_c^PS/dr
Definition at line 252 of file paw_onsite.F90.
|
private |
Five-point Fornberg finite-difference weights on the (nonuniform) radial grid inside the sphere: df(k) = sum_w der_w(w, k) f(der_i0(k)+w-1). Built once at init; applying it and its transpose is allocation-free and O(nr). It is only used by the moment expansion of the GGA one-center XC (paw_xc_moments), which needs a linear operator on the sphere grid together with its discrete adjoint. All the other radial derivatives are the precomputed full-grid ones above.
Definition at line 261 of file paw_onsite.F90.
|
private |
(der_nw, nr) derivative weights per radial point
Definition at line 262 of file paw_onsite.F90.
|
private |
(nr) leftmost stencil index per radial point
Definition at line 263 of file paw_onsite.F90.
|
private |
Definition at line 264 of file paw_onsite.F90.
|
private |
(der_ntw, nr) transposed weights per output point
Definition at line 265 of file paw_onsite.F90.
|
private |
(nr) first contributing row per output point
Definition at line 266 of file paw_onsite.F90.
|
private |
(nr) number of contributing rows per output point
Definition at line 267 of file paw_onsite.F90.
|
private |
Definition at line 270 of file paw_onsite.F90.
|
private |
Definition at line 271 of file paw_onsite.F90.
|
private |
(nr) AE core density n_c(r)
Definition at line 272 of file paw_onsite.F90.
|
private |
(nr) PS core density ntilde_c(r)
Definition at line 273 of file paw_onsite.F90.
|
private |
(nr) AE reference potential (Ha): -Z/r + v_H[core]
Definition at line 274 of file paw_onsite.F90.
|
private |
(nr) PS reference potential vbar (Ha)
Definition at line 275 of file paw_onsite.F90.
|
private |
(nrad, nrad) <phi_i|T|phi_j>
Definition at line 278 of file paw_onsite.F90.
|
private |
(nrad, nrad) <phitilde_i|T|phitilde_j>
Definition at line 279 of file paw_onsite.F90.
|
private |
number of angular points
Definition at line 282 of file paw_onsite.F90.
|
private |
max L of the density expansion (= 2 max l)
Definition at line 283 of file paw_onsite.F90.
|
private |
(lmax_rho+1)^2
Definition at line 284 of file paw_onsite.F90.
|
private |
(nang) angular weights (int dOmega)
Definition at line 285 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) real spherical harmonics
Definition at line 286 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) dY_LM/dtheta (GGA)
Definition at line 287 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) (1/sin theta) dY_LM/dphi (GGA)
Definition at line 288 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) quadrature-weighted Y_LM
Definition at line 289 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) quadrature-weighted dY_LM/dtheta
Definition at line 290 of file paw_onsite.F90.
|
private |
(nang, nlm_rho) quadrature-weighted (1/sin theta) dY_LM/dphi
Definition at line 291 of file paw_onsite.F90.
|
private |
Cartesian components of the spherical orthonormal basis at each angular point, used to build the Cartesian gradient of phi(r) Y_LM(Omega) for the one-center current: rhat = radial, that = theta, phat = phi. grad(phi Y) = phi` Y rhat + (phi/r)(dY/dth that + (1/sin th)dY/dph phat).
(nang, 3) radial unit vector (= Omega direction)
Definition at line 295 of file paw_onsite.F90.
|
private |
(nang, 3) theta unit vector
Definition at line 296 of file paw_onsite.F90.
|
private |
(nang, 3) phi unit vector
Definition at line 297 of file paw_onsite.F90.
|
private |
The frozen-core kinetic-energy density The all-electron tau_c_ae is reconstructed exactly from the stored core orbitals The smooth tau_c_ps is a gradient-expansion model of the (pseudized) smooth core density, used identically here and on the mesh so the AE-PS one-center cancellation stays clean. The core density Laplacians feed Laplacian-dependent meta-GGAs (e.g. TB09). Stored already divided by spin_channels (added directly to each spin channel).
(nr) AE core KED, per spin channel
Definition at line 305 of file paw_onsite.F90.
|
private |
(nr) smooth core KED, per spin channel
Definition at line 306 of file paw_onsite.F90.
|
private |
(nr) Laplacian of the AE core density, per spin channel
Definition at line 307 of file paw_onsite.F90.
|
private |
(nr) Laplacian of the smooth core density, per spin channel
Definition at line 308 of file paw_onsite.F90.
|
private |
Radial derivatives of the partial waves, only for meta-GGA (computed once on the full dataset grid, see paw_onsite_init_mgga). The second derivatives only for Laplacian-dependent functionals.
(nr, nrad) d phi_i/dr
Definition at line 311 of file paw_onsite.F90.
|
private |
(nr, nrad) d phitilde_i/dr
Definition at line 312 of file paw_onsite.F90.
|
private |
(nr, nrad) d^2 phi_i/dr^2
Definition at line 313 of file paw_onsite.F90.
|
private |
(nr, nrad) d^2 phitilde_i/dr^2
Definition at line 314 of file paw_onsite.F90.
|
private |
Definition at line 317 of file paw_onsite.F90.
|
private |
Exchange and correlation functionals.
Definition at line 319 of file paw_onsite.F90.
|
private |
.false. once the handles are shared with the main xc
Definition at line 320 of file paw_onsite.F90.
|
private |
set if either functional needs the density gradient
Definition at line 321 of file paw_onsite.F90.
|
private |
set if either functional needs the kinetic-energy density
Definition at line 322 of file paw_onsite.F90.
|
private |
set if a meta-GGA needs the density Laplacian (e.g. TB09)
Definition at line 323 of file paw_onsite.F90.
|
private |
Kresse-Joubert (.true.) vs Bloechl (.false.) treatment of the compensation charge in XC. Defaults to .not. xc_is_mgga; overridden by the PAWCompensationScheme input via paw_onsite_init.
Definition at line 326 of file paw_onsite.F90.
|
private |
one-center XC scheme
Definition at line 327 of file paw_onsite.F90.