2020-12-10 17:21:38 +01:00
|
|
|
BEGIN_PROVIDER [ double precision, factor_een ]
|
2020-11-25 16:59:53 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2020-12-14 13:40:47 +01:00
|
|
|
! ElectronE-electron-nuclei contribution to Jastrow factor
|
2020-11-25 16:59:53 +01:00
|
|
|
END_DOC
|
2020-12-14 13:40:47 +01:00
|
|
|
integer :: i, j, a, p, k, l, lmax, m
|
2020-12-10 17:21:38 +01:00
|
|
|
double precision :: riam, rjam_cn, rial, rjal, rijk
|
|
|
|
double precision :: cn
|
2020-12-04 13:59:10 +01:00
|
|
|
|
2020-11-25 16:59:53 +01:00
|
|
|
factor_een = 0.0d0
|
2020-12-02 10:41:22 +01:00
|
|
|
|
2020-12-14 13:40:47 +01:00
|
|
|
do p = 2, ncord
|
|
|
|
do k = 0, p - 1
|
|
|
|
if (k /= 0) then
|
|
|
|
lmax = p - k
|
|
|
|
else
|
|
|
|
lmax = p - k - 2
|
2020-12-10 17:21:38 +01:00
|
|
|
endif
|
2020-12-14 13:40:47 +01:00
|
|
|
do l = 0, lmax
|
|
|
|
if ( iand(p - k - l, 1) == 1) cycle
|
|
|
|
m = (p - k - l) / 2
|
|
|
|
do a = 1, nnuc
|
|
|
|
cn = cord_vect_lkp(l, k, p, typenuc_arr(a))
|
|
|
|
do j = 1, nelec
|
|
|
|
rjal = rescale_een_n(j, a, l)
|
|
|
|
rjam_cn = rescale_een_n(j, a, m) * cn
|
|
|
|
do i = 1, j - 1
|
|
|
|
rial = rescale_een_n(i, a, l)
|
|
|
|
riam = rescale_een_n(i, a, m)
|
|
|
|
rijk = rescale_een_e(i, j, k)
|
2020-12-16 13:22:42 +01:00
|
|
|
factor_een = factor_een + rijk * (rial + rjal) * riam * rjam_cn
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
enddo
|
2020-12-10 17:21:38 +01:00
|
|
|
enddo
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
2020-12-10 17:21:38 +01:00
|
|
|
enddo
|
2020-12-10 14:16:39 +01:00
|
|
|
|
2020-12-10 17:21:38 +01:00
|
|
|
END_PROVIDER
|
|
|
|
|
2020-12-14 13:40:47 +01:00
|
|
|
BEGIN_PROVIDER [ double precision, factor_een_deriv_e, (4, nelec) ]
|
2020-12-10 14:16:39 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2020-12-14 13:40:47 +01:00
|
|
|
! Dimensions 1-3 : dx, dy, dz
|
|
|
|
! Dimension 4 : d2x + d2y + d2z
|
2020-12-10 14:16:39 +01:00
|
|
|
END_DOC
|
2020-12-14 13:40:47 +01:00
|
|
|
integer :: i, ii, j, a, p, k, l, lmax, m
|
2020-12-10 14:16:39 +01:00
|
|
|
double precision :: riam, rjam_cn, rial, rjal, rijk
|
2020-12-16 13:22:42 +01:00
|
|
|
double precision, dimension(4) :: driam, drjam_cn, drial, drjal, drijk
|
2020-12-14 13:40:47 +01:00
|
|
|
double precision :: cn, v1, v2, d1, d2, lap
|
2020-12-10 14:16:39 +01:00
|
|
|
|
2020-12-10 17:21:38 +01:00
|
|
|
factor_een_deriv_e = 0.0d0
|
2020-12-10 14:16:39 +01:00
|
|
|
|
2020-12-14 13:40:47 +01:00
|
|
|
do p = 2, ncord
|
|
|
|
do k = 0 , p - 1
|
|
|
|
if (k /= 0) then
|
|
|
|
lmax = p - k
|
|
|
|
else
|
|
|
|
lmax = p - k - 2
|
2020-12-10 17:21:38 +01:00
|
|
|
endif
|
2020-12-14 13:40:47 +01:00
|
|
|
|
|
|
|
do l = 0, lmax
|
|
|
|
if ( iand(p - k - l, 1) == 1) cycle
|
|
|
|
m = (p - k - l) / 2
|
|
|
|
|
|
|
|
do a = 1, nnuc
|
|
|
|
cn = cord_vect_lkp(l, k, p, typenuc_arr(a))
|
|
|
|
|
|
|
|
do j = 1, nelec
|
|
|
|
rjal = rescale_een_n(j, a, l)
|
|
|
|
rjam_cn = rescale_een_n(j, a, m) * cn
|
|
|
|
|
|
|
|
do ii = 1, 4
|
|
|
|
drjal(ii) = rescale_een_n_deriv_e(ii, j, a, l)
|
|
|
|
drjam_cn(ii) = rescale_een_n_deriv_e(ii, j, a, m) * cn
|
|
|
|
enddo
|
|
|
|
|
|
|
|
do i = 1, nelec
|
|
|
|
rial = rescale_een_n(i, a, l)
|
|
|
|
riam = rescale_een_n(i, a, m)
|
|
|
|
rijk = rescale_een_e(i, j, k)
|
|
|
|
|
|
|
|
do ii = 1, 4
|
2020-12-15 17:06:55 +01:00
|
|
|
drijk(ii) = rescale_een_e_deriv_e(ii, j, i, k)
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
|
|
|
|
|
|
|
v1 = rijk * (rial + rjal)
|
|
|
|
v2 = rjam_cn * riam
|
|
|
|
|
2020-12-16 13:22:42 +01:00
|
|
|
lap = 0.0d0
|
2020-12-15 17:06:55 +01:00
|
|
|
do ii = 1, 3
|
2020-12-16 13:22:42 +01:00
|
|
|
d1 = drijk(ii) * (rial + rjal) + rijk * drjal(ii)
|
2020-12-14 13:40:47 +01:00
|
|
|
d2 = drjam_cn(ii) * riam
|
|
|
|
lap = lap + d1 * d2
|
2020-12-16 13:22:42 +01:00
|
|
|
factor_een_deriv_e(ii, j) += v1 * d2 + d1 * v2
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
|
|
|
|
2020-12-16 13:22:42 +01:00
|
|
|
! v(x) u''(x) + 2 * u'(x) v'(x) + u(x) v''(x)
|
2020-12-15 17:06:55 +01:00
|
|
|
ii = 4
|
2020-12-16 13:22:42 +01:00
|
|
|
d1 = drijk(ii) * (rial + rjal) + rijk * drjal(ii)
|
2020-12-15 17:06:55 +01:00
|
|
|
d2 = drjam_cn(ii) * riam
|
2020-12-16 13:22:42 +01:00
|
|
|
factor_een_deriv_e(ii, j) += v1 * d2 + d1 * v2 + 2.0d0 * lap
|
2020-12-15 17:06:55 +01:00
|
|
|
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
2020-12-10 17:21:38 +01:00
|
|
|
enddo
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
2020-12-10 14:16:39 +01:00
|
|
|
enddo
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
2020-12-10 14:16:39 +01:00
|
|
|
enddo
|
2020-12-14 13:40:47 +01:00
|
|
|
|
2020-12-10 14:16:39 +01:00
|
|
|
END_PROVIDER
|