(git:27c966b)
Loading...
Searching...
No Matches
xc_perdew86.F
Go to the documentation of this file.
1!--------------------------------------------------------------------------------------------------!
2! CP2K: A general program to perform molecular dynamics simulations !
3! Copyright 2000-2026 CP2K developers group <https://cp2k.org> !
4! !
5! SPDX-License-Identifier: GPL-2.0-or-later !
6!--------------------------------------------------------------------------------------------------!
7
8! **************************************************************************************************
9!> \brief Calculate the Perdew Correlation from 1986
10!> \par History
11!> JGH (26.02.2003) : OpenMP enabled
12!> fawzi (04.2004) : adapted to the new xc interface
13!> \author JGH (03.03.2002)
14! **************************************************************************************************
16
18 USE kinds, ONLY: dp
32#include "../base/base_uses.f90"
33
34 IMPLICIT NONE
35
36 PRIVATE
37
38! *** Global parameters ***
39 REAL(KIND=dp), PARAMETER :: f13 = 1.0_dp/3.0_dp, &
40 f23 = 2.0_dp*f13, &
41 f43 = 4.0_dp*f13, &
42 f53 = 5.0_dp*f13, &
43 f76 = 7.0_dp/6.0_dp, &
44 frs = 1.6119919540164696407_dp, &
45 fpe = 0.19199566167376364_dp
46
47 PUBLIC :: p86_lda_info, p86_lda_eval
48
49 REAL(KIND=dp) :: eps_rho
50 LOGICAL :: debug_flag
51
52 REAL(KIND=dp), PARAMETER :: a = 0.023266_dp, &
53 b = 7.389e-6_dp, &
54 c = 8.723_dp, &
55 d = 0.472_dp, &
56 pc1 = 0.001667_dp, &
57 pc2 = 0.002568_dp, &
58 pci = pc1 + pc2
59 CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'xc_perdew86'
60
61CONTAINS
62
63! **************************************************************************************************
64!> \brief ...
65!> \param cutoff ...
66!> \param debug ...
67! **************************************************************************************************
68 SUBROUTINE p86_init(cutoff, debug)
69
70 REAL(KIND=dp), INTENT(IN) :: cutoff
71 LOGICAL, INTENT(IN), OPTIONAL :: debug
72
73 eps_rho = cutoff
74 CALL set_util(cutoff)
75
76 IF (PRESENT(debug)) THEN
77 debug_flag = debug
78 ELSE
79 debug_flag = .false.
80 END IF
81
82 END SUBROUTINE p86_init
83
84! **************************************************************************************************
85!> \brief ...
86!> \param reference ...
87!> \param shortform ...
88!> \param needs ...
89!> \param max_deriv ...
90! **************************************************************************************************
91 SUBROUTINE p86_lda_info(reference, shortform, needs, max_deriv)
92 CHARACTER(LEN=*), INTENT(OUT), OPTIONAL :: reference, shortform
93 TYPE(xc_rho_cflags_type), INTENT(inout), OPTIONAL :: needs
94 INTEGER, INTENT(out), OPTIONAL :: max_deriv
95
96 IF (PRESENT(reference)) THEN
97 reference = "J. P. Perdew, Phys. Rev. B, 33, 8822 (1986) {LDA version}"
98 END IF
99 IF (PRESENT(shortform)) THEN
100 shortform = "Perdew 1986 correlation energy functional {LDA}"
101 END IF
102 IF (PRESENT(needs)) THEN
103 needs%rho = .true.
104 needs%norm_drho = .true.
105 END IF
106 IF (PRESENT(max_deriv)) max_deriv = 3
107
108 END SUBROUTINE p86_lda_info
109
110! **************************************************************************************************
111!> \brief ...
112!> \param rho_set ...
113!> \param deriv_set ...
114!> \param order ...
115!> \param p86_params ...
116! **************************************************************************************************
117 SUBROUTINE p86_lda_eval(rho_set, deriv_set, order, p86_params)
118
119 TYPE(xc_rho_set_type), INTENT(IN) :: rho_set
120 TYPE(xc_derivative_set_type), INTENT(IN) :: deriv_set
121 INTEGER, INTENT(IN) :: order
122 TYPE(section_vals_type), POINTER :: p86_params
123
124 CHARACTER(len=*), PARAMETER :: routinen = 'p86_lda_eval'
125
126 INTEGER :: handle, npoints
127 INTEGER, DIMENSION(2, 3) :: bo
128 REAL(kind=dp) :: drho_cutoff, rho_cutoff
129 REAL(kind=dp), ALLOCATABLE, DIMENSION(:) :: rs
130 REAL(kind=dp), CONTIGUOUS, DIMENSION(:, :, :), POINTER :: e_0, e_ndrho, e_ndrho_ndrho, &
131 e_ndrho_ndrho_ndrho, e_rho, e_rho_ndrho, e_rho_ndrho_ndrho, e_rho_rho, e_rho_rho_ndrho, &
132 e_rho_rho_rho, grho, rho
133 TYPE(xc_derivative_type), POINTER :: deriv
134
135 CALL timeset(routinen, handle)
136 NULLIFY (rho, e_0, e_rho, e_ndrho, &
137 e_rho_rho, e_rho_ndrho, e_ndrho_ndrho, &
138 e_rho_rho_rho, e_rho_rho_ndrho, e_rho_ndrho_ndrho, e_ndrho_ndrho_ndrho)
139
140 ! calculate the perdew_zunger correlation
141 CALL pz_lda_eval(pz_orig, rho_set, deriv_set, order, p86_params)
142
143 CALL xc_rho_set_get(rho_set, rho=rho, &
144 norm_drho=grho, local_bounds=bo, rho_cutoff=rho_cutoff, &
145 drho_cutoff=drho_cutoff)
146 npoints = (bo(2, 1) - bo(1, 1) + 1)*(bo(2, 2) - bo(1, 2) + 1)*(bo(2, 3) - bo(1, 3) + 1)
147 CALL p86_init(rho_cutoff)
148
149 ALLOCATE (rs(npoints))
150
151 CALL calc_rs_pw(rho, rs, npoints)
152 deriv => xc_dset_get_derivative(deriv_set, [INTEGER::], &
153 allocate_deriv=.true.)
154 CALL xc_derivative_get(deriv, deriv_data=e_0)
155
156 CALL p86_u_0(rho, rs, grho, e_0, npoints)
157 IF (order >= 1) THEN
158 deriv => xc_dset_get_derivative(deriv_set, [deriv_rho], &
159 allocate_deriv=.true.)
160 CALL xc_derivative_get(deriv, deriv_data=e_rho)
161 deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drho], &
162 allocate_deriv=.true.)
163 CALL xc_derivative_get(deriv, deriv_data=e_ndrho)
164
165 CALL p86_u_1(rho, grho, rs, e_rho, &
166 e_ndrho, npoints)
167 END IF
168 IF (order >= 2) THEN
169 deriv => xc_dset_get_derivative(deriv_set, [deriv_rho, deriv_rho], &
170 allocate_deriv=.true.)
171 CALL xc_derivative_get(deriv, deriv_data=e_rho_rho)
172 deriv => xc_dset_get_derivative(deriv_set, [deriv_rho, deriv_norm_drho], &
173 allocate_deriv=.true.)
174 CALL xc_derivative_get(deriv, deriv_data=e_rho_ndrho)
175 deriv => xc_dset_get_derivative(deriv_set, &
176 [deriv_norm_drho, deriv_norm_drho], allocate_deriv=.true.)
177 CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho)
178
179 CALL p86_u_2(rho, grho, rs, e_rho_rho, &
180 e_rho_ndrho, e_ndrho_ndrho, npoints)
181 END IF
182 IF (order >= 3) THEN
183 deriv => xc_dset_get_derivative(deriv_set, [deriv_rho, deriv_rho, deriv_rho], &
184 allocate_deriv=.true.)
185 CALL xc_derivative_get(deriv, deriv_data=e_rho_rho_rho)
186 deriv => xc_dset_get_derivative(deriv_set, &
187 [deriv_rho, deriv_rho, deriv_norm_drho], allocate_deriv=.true.)
188 CALL xc_derivative_get(deriv, deriv_data=e_rho_rho_ndrho)
189 deriv => xc_dset_get_derivative(deriv_set, &
190 [deriv_rho, deriv_norm_drho, deriv_norm_drho], allocate_deriv=.true.)
191 CALL xc_derivative_get(deriv, deriv_data=e_rho_ndrho_ndrho)
192 deriv => xc_dset_get_derivative(deriv_set, &
193 [deriv_norm_drho, deriv_norm_drho, deriv_norm_drho], allocate_deriv=.true.)
194 CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_ndrho)
195
196 CALL p86_u_3(rho, grho, rs, e_rho_rho_rho, &
197 e_rho_rho_ndrho, e_rho_ndrho_ndrho, e_ndrho_ndrho_ndrho, &
198 npoints)
199 END IF
200 IF (order > 3) THEN
201 cpabort("derivatives bigger than 3 not implemented")
202 END IF
203 DEALLOCATE (rs)
204 CALL timestop(handle)
205
206 END SUBROUTINE p86_lda_eval
207
208! **************************************************************************************************
209!> \brief ...
210!> \param rho ...
211!> \param rs ...
212!> \param grho ...
213!> \param e_0 ...
214!> \param npoints ...
215! **************************************************************************************************
216 SUBROUTINE p86_u_0(rho, rs, grho, e_0, npoints)
217
218 REAL(kind=dp), DIMENSION(*), INTENT(IN) :: rho, rs, grho
219 REAL(kind=dp), DIMENSION(*), INTENT(INOUT) :: e_0
220 INTEGER, INTENT(in) :: npoints
221
222 INTEGER :: ip
223 REAL(kind=dp) :: cr, ep, g, or, phi, r, x
224
225!$OMP PARALLEL DO PRIVATE(ip,g,r,x,or,cr,phi,ep) DEFAULT(NONE)&
226!$OMP SHARED(npoints,rho,eps_rho,grho,rs,e_0)
227 DO ip = 1, npoints
228
229 IF (rho(ip) > eps_rho) THEN
230 g = grho(ip)
231 r = rs(ip)
232 x = r*frs
233 or = 1.0_dp/rho(ip)
234 cr = pc1 + (pc2 + a*r + b*r*r)/(1.0_dp + c*r + d*r*r + 1.e4_dp*b*r*r*r)
235 phi = fpe*pci/cr*g*sqrt(x)*or
236 ep = exp(-phi)
237 e_0(ip) = e_0(ip) + x*or*g*g*cr*ep
238 END IF
239
240 END DO
241
242 END SUBROUTINE p86_u_0
243
244! **************************************************************************************************
245!> \brief ...
246!> \param rho ...
247!> \param grho ...
248!> \param rs ...
249!> \param e_rho ...
250!> \param e_ndrho ...
251!> \param npoints ...
252! **************************************************************************************************
253 SUBROUTINE p86_u_1(rho, grho, rs, e_rho, e_ndrho, npoints)
254
255 REAL(kind=dp), DIMENSION(*), INTENT(IN) :: rho, grho, rs
256 REAL(kind=dp), DIMENSION(*), INTENT(INOUT) :: e_rho, e_ndrho
257 INTEGER, INTENT(in) :: npoints
258
259 INTEGER :: ip
260 REAL(kind=dp) :: cr, dcr, dphig, dphir, dpv, dq, ep, ff, &
261 g, or, p, phi, q, r, x
262
263!$OMP PARALLEL DO PRIVATE(ip,g,r,x,or,p,dpv,q,dq,cr,dcr,dphig,phi,dphir,ep,ff) DEFAULT(NONE)&
264!$OMP SHARED(npoints,rho,eps_rho,grho,rs,e_rho,e_ndrho)
265 DO ip = 1, npoints
266
267 IF (rho(ip) > eps_rho) THEN
268 g = grho(ip)
269 r = rs(ip)
270 x = r*frs
271 or = 1.0_dp/rho(ip)
272 p = pc2 + a*r + b*r*r
273 dpv = a + 2.0_dp*b*r
274 q = 1.0_dp + c*r + d*r*r + 1.e4_dp*b*r*r*r
275 dq = c + 2.0_dp*d*r + 3.e4_dp*b*r*r
276 cr = pc1 + p/q
277 dcr = (dpv*q - p*dq)/(q*q)*(-f13*r*or)
278 dphig = fpe*pci/cr*sqrt(x)*or
279 phi = dphig*g
280 dphir = -phi*(dcr/cr + f76*or)
281 ep = exp(-phi)
282 ff = x*or*g*ep
283 e_rho(ip) = e_rho(ip) + ff*g*dcr - ff*g*cr*dphir - ff*g*cr*f43*or
284 e_ndrho(ip) = e_ndrho(ip) + ff*cr*(2.0_dp - g*dphig)
285 END IF
286
287 END DO
288
289 END SUBROUTINE p86_u_1
290
291! **************************************************************************************************
292!> \brief ...
293!> \param rho ...
294!> \param grho ...
295!> \param rs ...
296!> \param e_rho_rho ...
297!> \param e_rho_ndrho ...
298!> \param e_ndrho_ndrho ...
299!> \param npoints ...
300! **************************************************************************************************
301 SUBROUTINE p86_u_2(rho, grho, rs, e_rho_rho, e_rho_ndrho, e_ndrho_ndrho, &
302 npoints)
303
304 REAL(kind=dp), DIMENSION(*), INTENT(IN) :: rho, grho, rs
305 REAL(kind=dp), DIMENSION(*), INTENT(INOUT) :: e_rho_rho, e_rho_ndrho, e_ndrho_ndrho
306 INTEGER, INTENT(in) :: npoints
307
308 INTEGER :: ip
309 REAL(kind=dp) :: cr, d2cr, d2p, d2phir, d2q, dcr, dphig, &
310 dphigr, dphir, dpv, dq, ep, g, or, p, &
311 phi, q, r, x
312
313!$OMP PARALLEL DO PRIVATE(ip,x,r,cr,phi,ep,g,or,p,q,dpv,dq,dphir,dcr) &
314!$OMP PRIVATE(dphig,dphigr,d2phir,d2cr,d2p,d2q) DEFAULT(NONE) &
315!$OMP SHARED(npoints,rho,eps_rho,grho,rs,e_rho_rho,e_rho_ndrho,e_ndrho_ndrho)
316 DO ip = 1, npoints
317
318 IF (rho(ip) > eps_rho) THEN
319 g = grho(ip)
320 r = rs(ip)
321 x = r*frs
322 or = 1.0_dp/rho(ip)
323 p = pc2 + a*r + b*r*r
324 dpv = a + 2.0_dp*b*r
325 d2p = 2.0_dp*b
326 q = 1.0_dp + c*r + d*r*r + 1.e4_dp*b*r*r*r
327 dq = c + 2.0_dp*d*r + 3.e4_dp*b*r*r
328 d2q = 2.0_dp*d + 6.e4_dp*b*r
329 cr = pc1 + p/q
330 dcr = (dpv*q - p*dq)/(q*q)*(-f13*r*or)
331 d2cr = (d2p*q*q - p*q*d2q - 2*dpv*dq*q + 2*p*dq*dq)/(q*q*q)*(f13*r*or)**2 + &
332 (dpv*q - p*dq)/(q*q)*f13*f43*r*or*or
333 dphig = fpe*pci/cr*sqrt(x)*or
334 phi = dphig*g
335 dphir = -phi*(dcr/cr + f76*or)
336 d2phir = -dphir*(dcr/cr + f76*or) - &
337 phi*((d2cr*cr - dcr*dcr)/(cr*cr) - f76*or*or)
338 dphigr = -dphig*(dcr/cr + f76*or)
339 ep = exp(-phi)
340 e_rho_rho(ip) = e_rho_rho(ip) + x*or*ep*g*g* &
341 (-f43*or*dcr + d2cr - dcr*dphir + &
342 f43*or*cr*dphir - dcr*dphir - cr*d2phir + cr*dphir*dphir + &
343 f43*or*(7._dp*f13*or*cr - dcr + cr*dphir))
344 e_rho_ndrho(ip) = e_rho_ndrho(ip) + x*or*ep*g* &
345 (-2*f43*cr*or + 2*dcr - 2*cr*dphir + f43*or*g*cr*dphig - &
346 g*dcr*dphig + g*cr*dphir*dphig - g*cr*dphigr)
347 e_ndrho_ndrho(ip) = e_ndrho_ndrho(ip) + x*or*ep*cr* &
348 (2.0_dp - 4.0_dp*g*dphig + g*g*dphig*dphig)
349 END IF
350
351 END DO
352
353 END SUBROUTINE p86_u_2
354
355! **************************************************************************************************
356!> \brief ...
357!> \param rho ...
358!> \param grho ...
359!> \param rs ...
360!> \param e_rho_rho_rho ...
361!> \param e_rho_rho_ndrho ...
362!> \param e_rho_ndrho_ndrho ...
363!> \param e_ndrho_ndrho_ndrho ...
364!> \param npoints ...
365! **************************************************************************************************
366 SUBROUTINE p86_u_3(rho, grho, rs, e_rho_rho_rho, &
367 e_rho_rho_ndrho, e_rho_ndrho_ndrho, e_ndrho_ndrho_ndrho, &
368 npoints)
369
370 REAL(kind=dp), DIMENSION(*), INTENT(IN) :: rho, grho, rs
371 REAL(kind=dp), DIMENSION(*), INTENT(INOUT) :: e_rho_rho_rho, e_rho_rho_ndrho, &
372 e_rho_ndrho_ndrho, e_ndrho_ndrho_ndrho
373 INTEGER, INTENT(in) :: npoints
374
375 INTEGER :: ip
376 REAL(kind=dp) :: cr, d2cr, d2p, d2phir, d2phirg, d2pq, d2q, d2z, d3cr, d3phir, d3pq, d3q, &
377 d3z, dcr, dphig, dphigr, dphir, dpq, dpv, dq, dz, ep, g, or, oz, p, phi, pq, q, r, x
378
379!$OMP PARALLEL DO PRIVATE(ip,x, r, cr, phi, ep, g, or, p, q, dpv, dq, dphir, dcr, dphig) &
380!$OMP PRIVATE(dphigr, d2phir, d3phir, d2cr, d3cr, d2p, d2q, d2phirg, d3q) &
381!$OMP PRIVATE(pq, dpq, d2pq, d3pq, oz, dz, d2z, d3z) DEFAULT(NONE) &
382!$OMP SHARED(npoints,rho,eps_rho,grho,e_rho_rho_rho,e_rho_rho_ndrho,e_rho_ndrho_ndrho,e_ndrho_ndrho_ndrho)
383 DO ip = 1, npoints
384
385 IF (rho(ip) > eps_rho) THEN
386 g = grho(ip)
387 r = rs(ip)
388 x = r*frs
389 or = 1.0_dp/rho(ip)
390 p = pc2 + a*r + b*r*r
391 dpv = a + 2.0_dp*b*r
392 d2p = 2.0_dp*b
393 q = 1.0_dp + c*r + d*r*r + 1.e4_dp*b*r*r*r
394 dq = c + 2.0_dp*d*r + 3.e4_dp*b*r*r
395 d2q = 2.0_dp*d + 6.e4_dp*b*r
396 d3q = 6.e4_dp*b
397 pq = p/q
398 dpq = (dpv*q - p*dq)/(q*q)
399 d2pq = (d2p*q*q - 2*dpv*dq*q + 2*p*dq*dq - p*d2q*q)/(q*q*q)
400 d3pq = -(3*d2p*dq*q*q - 6*dpv*dq*dq*q + 3*dpv*d2q*q*q + 6*p*dq*dq*dq - 6*p*dq*d2q*q &
401 + p*d3q*q*q)/(q*q*q*q)
402 cr = pc1 + pq
403 dcr = dpq*(-f13*r*or)
404 d2cr = d2pq*f13*f13*r*r*or*or + dpq*f13*f43*r*or*or
405 d3cr = d3pq*(-f13*r*or)**3 + 3*d2pq*(-f13*f13*f43*r*r*or*or*or) + &
406 dpq*(-f13*f43*f13*7*r*or*or*or)
407 oz = sqrt(x)*or/cr
408 dz = dcr/cr + f76*or
409 d2z = d2cr/cr + 2*f76*dcr/cr*or + f76/6._dp*or*or
410 d3z = d3cr/cr + 3*f76*d2cr/cr*or + 3*f76/6._dp*dcr/cr*or*or - 5*f76/36._dp*or*or*or
411 dphig = fpe*pci*oz
412 phi = dphig*g
413 dphir = -phi*dz
414 dphigr = -dphig*dz
415 d2phir = -phi*(d2z - 2*dz*dz)
416 d3phir = -phi*(d3z - 6*d2z*dz + 6*dz*dz*dz)
417 d2phirg = -dphigr*dz - &
418 dphig*((d2cr*cr - dcr*dcr)/(cr*cr) - f76*or*or)
419 ep = exp(-phi)
420 e_rho_rho_rho(ip) = e_rho_rho_rho(ip) &
421 + g*g*x*or*ep*(-280._dp/27._dp*or*or*or*cr + 3*28._dp/9._dp*or*or*dcr + &
422 3*28._dp/9._dp*or*or*cr*(-dphir) - 4*or*d2cr - 8*or*dcr*(-dphir) - &
423 4*or*cr*(-d2phir + dphir*dphir) + d3cr + 3*d2cr*(-dphir) + &
424 3*dcr*(-d2phir + dphir*dphir) + cr*(-d3phir + 3*dphir*d2phir - &
425 dphir**3))
426 e_rho_rho_ndrho(ip) = e_rho_rho_ndrho(ip) &
427 + 2._dp*x*or*ep*g*(-f43*or*dcr + d2cr - dcr*dphir + &
428 f43*or*cr*dphir - dcr*dphir - cr*d2phir + cr*dphir*dphir + &
429 f43*or*(7._dp*f13*or*cr - dcr + cr*dphir)) - &
430 dphig*x*or*ep*g*g*(-f43*or*dcr + d2cr - dcr*dphir + &
431 f43*or*cr*dphir - dcr*dphir - cr*d2phir + cr*dphir*dphir + &
432 f43*or*(7._dp*f13*or*cr - dcr + cr*dphir)) + &
433 x*or*ep*g*g*(-dcr*dphigr + f43*or*cr*dphigr - dcr*dphigr - cr*d2phirg + &
434 2._dp*cr*dphigr*dphir + f43*or*cr*dphigr)
435 e_rho_ndrho_ndrho(ip) = e_rho_ndrho_ndrho(ip) &
436 + x*or*ep*(-2*f43*cr*or + 2*dcr - 2*cr*dphir + f43*or*g*cr*dphig - &
437 g*dcr*dphig + g*cr*dphir*dphig - g*cr*dphigr) + &
438 x*or*ep*g*(-2*cr*dphigr + f43*or*cr*dphig - &
439 dcr*dphig + cr*dphir*dphig + g*cr*dphigr*dphig - cr*dphigr) - &
440 x*or*ep*g*dphig*(-2*f43*cr*or + 2*dcr - 2*cr*dphir + f43*or*g*cr*dphig - &
441 g*dcr*dphig + g*cr*dphir*dphig - g*cr*dphigr)
442 e_ndrho_ndrho_ndrho(ip) = e_ndrho_ndrho_ndrho(ip) &
443 + x*or*ep*cr*dphig*(-6.0_dp + 6.0_dp*g*dphig - g*g*dphig*dphig)
444 END IF
445
446 END DO
447
448 END SUBROUTINE p86_u_3
449
450END MODULE xc_perdew86
451
objects that represent the structure of input sections and the data contained in an input section
Defines the basic variable types.
Definition kinds.F:23
integer, parameter, public dp
Definition kinds.F:34
Module with functions to handle derivative descriptors. derivative description are strings have the f...
integer, parameter, public deriv_norm_drho
integer, parameter, public deriv_rho
represent a group ofunctional derivatives
type(xc_derivative_type) function, pointer, public xc_dset_get_derivative(derivative_set, description, allocate_deriv)
returns the requested xc_derivative
Provides types for the management of the xc-functionals and their derivatives.
subroutine, public xc_derivative_get(deriv, split_desc, order, deriv_data, accept_null_data)
returns various information on the given derivative
Utility routines for the functional calculations.
subroutine, public calc_rs_pw(rho, rs, n)
...
subroutine, public set_util(cutoff)
...
input constants for xc
integer, parameter, public pz_orig
Calculate the Perdew Correlation from 1986.
Definition xc_perdew86.F:15
subroutine, public p86_lda_info(reference, shortform, needs, max_deriv)
...
Definition xc_perdew86.F:92
subroutine, public p86_lda_eval(rho_set, deriv_set, order, p86_params)
...
Calculate the Perdew-Zunger correlation potential and energy density and ist derivatives with respect...
subroutine, public pz_lda_eval(method, rho_set, deriv_set, order, pz_params)
Calculate the correlation energy and its derivatives wrt to rho (the electron density) up to 3rd orde...
contains the structure
contains the structure
subroutine, public xc_rho_set_get(rho_set, can_return_null, rho, drho, norm_drho, rhoa, rhob, norm_drhoa, norm_drhob, rho_1_3, rhoa_1_3, rhob_1_3, laplace_rho, laplace_rhoa, laplace_rhob, drhoa, drhob, rho_cutoff, drho_cutoff, tau_cutoff, tau, tau_a, tau_b, local_bounds)
returns the various attributes of rho_set
A derivative set contains the different derivatives of a xc-functional in form of a linked list.
represent a derivative of a functional
contains a flag for each component of xc_rho_set, so that you can use it to tell which components you...
represent a density, with all the representation and data needed to perform a functional evaluation