Octopus
xc_functional.F90
Go to the documentation of this file.
1!! Copyright (C) 2002-2006 M. Marques, A. Castro, A. Rubio, G. Bertsch
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use debug_oct_m
23 use global_oct_m
27 use parser_oct_m
28 use pseudo_oct_m
29 use xc_f03_lib_m
30
31 implicit none
32
33 ! Although the following file only contain comments, we include it here to make sure it exists.
34 ! Otherwise the code might compile, but not run properly, as the variables documentations
35 ! will be incomplete.
36#include "functionals_list.F90"
37
38 private
39 public :: &
47
48
51 integer, public, parameter :: &
52 XC_OEP_X = 901, & !< Exact exchange
53 xc_oep_x_slater = 902, &
54 xc_oep_x_fbe = 903, &
55 xc_ks_inversion = 904, &
56 xc_rdmft_xc_m = 905, &
57 xc_oep_x_fbe_sl = 906, &
58 xc_lda_c_fbe = 907, &
59 xc_lda_c_fbe_sl = 908, &
60 xc_half_hartree = 917, &
61 xc_vdw_c_vdwdf = 918, &
62 xc_vdw_c_vdwdf2 = 919, &
63 xc_vdw_c_vdwdfcx = 920, &
66 xc_mgga_x_nc_br = 923, &
67 xc_mgga_x_nc_br_1 = 924, &
68 xc_mgga_c_nc_cs = 925
69
72 integer, public, parameter :: &
73 XC_FAMILY_KS_INVERSION = 1024, &
74 xc_family_rdmft = 2048, &
75 xc_family_libvdwxc = 4096, &
76 xc_family_nc_lda = 8192, &
77 xc_family_nc_mgga = 16384
78
80 ! Components are public by default
81 integer :: family = xc_family_unknown
82 integer :: type = 0
83 integer :: id = 0
84
85 integer :: spin_channels = 0
86 integer :: flags = 0
87
88 logical, private :: from_libxc = .false.
89
90 type(xc_f03_func_t) :: conf
91 type(xc_f03_func_info_t), private :: info
92 type(libvdwxc_t) :: libvdwxc
93 end type xc_functional_t
94
95 integer, public, parameter :: LIBXC_C_INDEX = 1000
96
97contains
98
99 ! ---------------------------------------------------------
100 subroutine xc_functional_init(functl, namespace, id, ndim, nel, spin_channels)
101 type(xc_functional_t), intent(inout) :: functl
102 type(namespace_t), intent(in) :: namespace
103 integer, intent(in) :: id
104 integer, intent(in) :: ndim
105 real(real64), intent(in) :: nel
106 integer, intent(in) :: spin_channels
107
108 integer :: interact_1d
109 real(real64) :: alpha, parameters(2)
110
111 push_sub(xc_functional_init)
112
113 ! initialize structure
114 functl%id = id
115 functl%spin_channels = spin_channels
116
117 if (functl%id == 0) then
118 functl%family = xc_family_none
119 else
120 ! get the family of the functional
121 functl%family = xc_f03_family_from_id(functl%id)
122 ! this also ensures it is actually a functional defined by the linked version of libxc
123
124 if (functl%family == xc_family_unknown) then
125
126 select case (functl%id)
128 functl%family = xc_family_oep
129
130 case (xc_ks_inversion)
131 functl%family = xc_family_ks_inversion
132
133 case (xc_half_hartree)
134 call messages_experimental("half-Hartree exchange", namespace=namespace)
135 functl%family = xc_family_lda ! XXX not really
136
138 functl%family = xc_family_libvdwxc
139 !functl%flags = functl%flags + XC_FLAGS_HAVE_VXC + XC_FLAGS_HAVE_EXC
140
141 case (xc_rdmft_xc_m)
142 functl%family = xc_family_rdmft
143
145 functl%family = xc_family_hyb_gga
146
148 functl%family = xc_family_nc_mgga
149
150 case default
151 call messages_input_error(namespace, 'XCFunctional', 'Unknown functional')
152
153 end select
154 end if
155 end if
156
157 if (functl%family == xc_family_oep) then
158 functl%type = xc_exchange
159 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
160
161 else if (functl%family == xc_family_ks_inversion .or. functl%family == xc_family_rdmft) then
162 functl%type = xc_exchange_correlation
163 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
164
165 else if (functl%family == xc_family_libvdwxc) then
166 call xc_f03_func_init(functl%conf, xc_lda_c_pw, spin_channels)
167 functl%info = xc_f03_func_get_info(functl%conf)
168 functl%type = xc_f03_func_info_get_kind(functl%info)
169 functl%flags = xc_f03_func_info_get_flags(functl%info)
170 ! Convert Octopus code for functional into corresponding libvdwxc code:
171 call libvdwxc_init(functl%libvdwxc, namespace, functl%id - xc_vdw_c_vdwdf + 1)
172
173 else if (functl%id == xc_half_hartree) then
174 functl%type = xc_exchange_correlation
175 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
176
177 else if(functl%id == xc_lda_c_fbe) then
178 functl%family = xc_family_lda
179 functl%type = xc_correlation
180 functl%flags = xc_flags_have_exc + xc_flags_have_vxc + xc_flags_3d
181
182 else if (functl%id == xc_mgga_x_nc_br .or. functl%id == xc_mgga_x_nc_br_1) then
183 functl%type = xc_exchange
184 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
185
186 else if(functl%id == xc_mgga_c_nc_cs) then
187 functl%type = xc_correlation
188 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
189
190 else if (functl%family == xc_family_none) then
191 functl%type = -1
192 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
193
194 else ! handled by libxc
195 ! initialize
196 functl%from_libxc = .true.
197
198 !For the two MVORB functionals, we initialize libxc with the non-MVORB functionals
199 select case (functl%id)
201 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_hse06, spin_channels)
202
204 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_pbeh, spin_channels)
205
206 case default
207 call xc_f03_func_init(functl%conf, functl%id, spin_channels)
208 end select
209 functl%info = xc_f03_func_get_info(functl%conf)
210 functl%type = xc_f03_func_info_get_kind(functl%info)
211 functl%flags = xc_f03_func_info_get_flags(functl%info)
212
213 ! FIXME: no need to say this for kernel
214 if (bitand(functl%flags, xc_flags_have_exc) == 0) then
215 message(1) = 'Specified functional does not have total energy available.'
216 message(2) = 'Corresponding component of energy will just be left as zero.'
217 call messages_warning(2, namespace=namespace)
218 end if
219
220 if (bitand(functl%flags, xc_flags_have_vxc) == 0) then
221 message(1) = 'Specified functional does not have XC potential available.'
222 message(2) = 'Cannot run calculations. Choose another XCFunctional.'
223 call messages_fatal(2, namespace=namespace)
224 end if
225 end if
226
227 ! Octopus-defined functionals need to provide the proper flags
228 if (functl%family /= xc_family_none) then
229 call xc_check_dimension(functl, ndim, namespace)
230 end if
231
232 ! Yukawa hybrids not supported yet
233 if (bitand(functl%flags, xc_flags_hyb_camy) /= 0) then
234 call messages_not_implemented("Yukawa-range separated hybrids", namespace=namespace)
235 end if
236
237 ! FIXME: aren`t there other parameters that can or should be set?
238 ! special parameters that have to be configured
239 select case (functl%id)
240 ! FIXME: aren`t there other Xalpha functionals?
241 case (xc_lda_c_xalpha)
242
243 !%Variable Xalpha
244 !%Type float
245 !%Default 1.0
246 !%Section Hamiltonian::XC
247 !%Description
248 !% The parameter of the Slater X<math>\alpha</math> functional. Applies only for
249 !% <tt>XCFunctional = xc_lda_c_xalpha</tt>.
250 !%End
251 call parse_variable(namespace, 'Xalpha', m_one, parameters(1))
252
253 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
254
255 ! FIXME: doesn`t this apply to other 1D functionals?
256 case (xc_lda_x_1d_soft, xc_lda_c_1d_csc)
257 !%Variable Interaction1D
258 !%Type integer
259 !%Default interaction_soft_coulomb
260 !%Section Hamiltonian::XC
261 !%Description
262 !% When running in 1D, one has to soften the Coulomb interaction. This softening
263 !% is not unique, and several possibilities exist in the literature.
264 !%Option interaction_exp_screened 0
265 !% Exponentially screened Coulomb interaction.
266 !% See, <i>e.g.</i>, M Casula, S Sorella, and G Senatore, <i>Phys. Rev. B</i> <b>74</b>, 245427 (2006).
267 !%Option interaction_soft_coulomb 1
268 !% Soft Coulomb interaction of the form <math>1/\sqrt{x^2 + \alpha^2}</math>.
269 !%End
270 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1D')
271 call parse_variable(namespace, 'Interaction1D', option__interaction1d__interaction_soft_coulomb, interact_1d)
272
273 !%Variable Interaction1DScreening
274 !%Type float
275 !%Default 1.0
276 !%Section Hamiltonian::XC
277 !%Description
278 !% Defines the screening parameter <math>\alpha</math> of the softened Coulomb interaction
279 !% when running in 1D.
280 !%End
281 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1DScreening')
282 call parse_variable(namespace, 'Interaction1DScreening', m_one, alpha)
283 parameters(1) = real(interact_1d, real64)
284 parameters(2) = alpha
285 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
286
287 case (xc_gga_x_lb)
288 if (parse_is_defined(namespace, 'LB94_modified')) then
289 call messages_obsolete_variable(namespace, 'LB94_modified')
290 end if
291
292 if (parse_is_defined(namespace, 'LB94_threshold')) then
293 call messages_obsolete_variable(namespace, 'LB94_threshold')
294 end if
295 end select
296
297
298 ! For functionals that depend on the number of electrons, we set the number of electrons
299 ! This is currently the case of GGA_K_TFLW, LDA_X_2D_PRM, and LDA_X_RAE
300 if (xc_functional_is_not_size_consistent(functl, namespace)) then
301 assert(xc_f03_func_info_get_n_ext_params(functl%info) == 1)
302 parameters(1) = nel
303 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
304 write(message(1), '(a,i1)') "Info: Setting the number of electrons for the functional for spin ", spin_channels
305 call messages_info(1, namespace=namespace)
306 end if
307
308 pop_sub(xc_functional_init)
309 end subroutine xc_functional_init
310
311
312 ! ---------------------------------------------------------
313 subroutine xc_functional_end(functl)
314 type(xc_functional_t), intent(inout) :: functl
315
316 push_sub(xc_functional_end)
317
318 if (functl%family /= xc_family_none .and. functl%family /= xc_family_oep .and. &
319 functl%family /= xc_family_ks_inversion .and. functl%id /= xc_half_hartree &
320 .and. functl%id /= xc_lda_c_fbe &
321 .and. functl%family /= xc_family_nc_lda .and. functl%family /= xc_family_nc_mgga) then
322 call xc_f03_func_end(functl%conf)
323 end if
324
325 if (functl%family == xc_family_libvdwxc) then
326 call libvdwxc_end(functl%libvdwxc)
327 end if
328
329 pop_sub(xc_functional_end)
330 end subroutine xc_functional_end
331
332
333 ! ---------------------------------------------------------
335 subroutine xc_functional_write_info(functl, iunit, namespace)
336 type(xc_functional_t), intent(in) :: functl
337 integer, optional, intent(in) :: iunit
338 type(namespace_t), optional, intent(in) :: namespace
339
340 character(len=120) :: family
341 integer :: ii
342
344
345 if (functl%family == xc_family_oep) then
346 ! this is handled separately
347
348 select case (functl%id)
349 case (xc_oep_x)
350 write(message(1), '(2x,a)') 'Exchange'
351 write(message(2), '(4x,a)') 'Exact exchange'
352 call messages_info(2, iunit=iunit, namespace=namespace)
353
354 case(xc_oep_x_slater)
355 write(message(1), '(2x,a)') 'Exchange'
356 write(message(2), '(4x,a)') 'Slater exchange'
357 call messages_info(2, iunit=iunit, namespace=namespace)
358
359 case (xc_oep_x_fbe)
360 write(message(1), '(2x,a)') 'Exchange'
361 write(message(2), '(4x,a)') 'Force-based local exchange'
362 write(message(3), '(4x,a)') '[1] Tancogne-Dejean et al., J. Chem. Phys. 160, 024103 (2024)'
363 call messages_info(3, iunit=iunit, namespace=namespace)
364
365 case (xc_oep_x_fbe_sl)
366 write(message(1), '(2x,a)') 'Exchange'
367 write(message(2), '(4x,a)') 'Force-based local exchange - Sturm-Liouville'
368 call messages_info(2, iunit=iunit, namespace=namespace)
369
370 case (xc_lda_c_fbe_sl)
371 write(message(1), '(2x,a)') 'Correlation'
372 write(message(2), '(4x,a)') 'Force-based local-density correlation - Sturm-Liouville'
373 call messages_info(2, iunit=iunit, namespace=namespace)
374
375 case default
376 assert(.false.)
377 end select
378
379 else if (functl%family == xc_family_ks_inversion) then
380 ! this is handled separately
381 select case (functl%id)
382 case (xc_ks_inversion)
383 write(message(1), '(2x,a)') 'Exchange-Correlation:'
384 write(message(2), '(4x,a)') ' KS Inversion'
385 call messages_info(2, iunit=iunit, namespace=namespace)
386 end select
387
388 else if (functl%family == xc_family_libvdwxc) then
389 call libvdwxc_write_info(functl%libvdwxc, iunit=iunit)
390
391 else if (functl%id == xc_mgga_x_nc_br) then
392 write(message(1), '(2x,a)') 'Exchange'
393 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel (MGGA)'
394 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
395 call messages_info(3, iunit)
396
397 else if (functl%id == xc_mgga_x_nc_br_1) then
398 write(message(1), '(2x,a)') 'Exchange'
399 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel, gamma = 1.0 (MGGA)'
400 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
401 call messages_info(3, iunit)
402
403 else if (functl%id == xc_mgga_c_nc_cs) then
404 write(message(1), '(2x,a)') 'Correlation'
405 write(message(2), '(4x,a)') 'Noncollinear Colle-Salvetti (MGGA)'
406 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
407 call messages_info(3, iunit)
408
409
410 else if (functl%id == xc_half_hartree) then
411 write(message(1), '(2x,a)') 'Exchange-Correlation:'
412 write(message(2), '(4x,a)') 'Half-Hartree two-electron exchange'
413 call messages_info(2, iunit=iunit, namespace=namespace)
414
415 else if(functl%id == xc_lda_c_fbe) then
416 write(message(1), '(2x,a)') 'Correlation'
417 write(message(2), '(4x,a)') 'Force-based LDA correlation'
418 call messages_info(2, iunit=iunit, namespace=namespace)
419
420 else if (functl%family /= xc_family_none) then ! all the other families
421 select case (functl%type)
422 case (xc_exchange)
423 write(message(1), '(2x,a)') 'Exchange'
424 case (xc_correlation)
425 write(message(1), '(2x,a)') 'Correlation'
426 case (xc_exchange_correlation)
427 write(message(1), '(2x,a)') 'Exchange-correlation'
428 case (xc_kinetic)
429 call messages_not_implemented("kinetic-energy functionals", namespace=namespace)
430 case default
431 write(message(1), '(a,i6,a,i6)') "Unknown functional type ", functl%type, ' for functional ', functl%id
432 call messages_fatal(1, namespace=namespace)
433 end select
434
435 select case (functl%family)
436 case (xc_family_lda)
437 write(family,'(a)') "LDA"
438 case (xc_family_gga)
439 write(family,'(a)') "GGA"
440 case (xc_family_mgga)
441 write(family,'(a)') "MGGA"
442 case (xc_family_lca)
443 call messages_not_implemented("Support of LCA functional", namespace=namespace)
444 case (xc_family_hyb_lda)
445 write(family,'(a)') "Hybrid LDA"
446 case (xc_family_hyb_gga)
447 write(family,'(a)') "Hybrid GGA"
448 case (xc_family_hyb_mgga)
449 write(family,'(a)') "Hybrid MGGA"
450 end select
451 write(message(2), '(4x,4a)') trim(xc_f03_func_info_get_name(functl%info)), ' (', trim(family), ')'
452 call messages_info(2, iunit=iunit, namespace=namespace)
453
454 ii = 0
455 do while(ii >= 0)
456 write(message(1), '(4x,a,i1,2a)') '[', ii + 1, '] ', &
457 trim(xc_f03_func_reference_get_ref(xc_f03_func_info_get_references(functl%info, ii)))
458 call messages_info(1, iunit=iunit, namespace=namespace)
459 end do
460 end if
461
463 end subroutine xc_functional_write_info
464
465
467 integer function xc_get_default_functional(dim, pseudo_x_functional, pseudo_c_functional) result(default)
468 integer, intent(in) :: dim
469 integer, intent(in) :: pseudo_x_functional, pseudo_c_functional
470
472
473 default = 0
474
475 if (pseudo_x_functional /= pseudo_exchange_any) then
476 default = pseudo_x_functional
477 else
478 select case (dim)
479 case (3)
480 default = xc_lda_x
481 case (2)
482 default = xc_lda_x_2d
483 case (1)
484 default = xc_lda_x_1d_soft
485 end select
486 end if
487
488 assert(default >= 0)
489
490 if (pseudo_c_functional /= pseudo_correlation_any) then
491 default = default + libxc_c_index*pseudo_c_functional
492 else
493 select case (dim)
494 case (3)
495 default = default + libxc_c_index * xc_lda_c_pz_mod
496 case (2)
497 default = default + libxc_c_index * xc_lda_c_2d_amgb
498 case (1)
499 default = default + libxc_c_index * xc_lda_c_1d_csc
500 end select
501 end if
502
503 assert(default >= 0)
504
506 end function xc_get_default_functional
507
509 subroutine xc_check_dimension(functl, ndim, namespace)
510 type(xc_functional_t), intent(in) :: functl
511 integer, intent(in) :: ndim
512 type(namespace_t), intent(in) :: namespace
513
514 logical :: ok
515
516 push_sub(xc_check_dimension)
517
518 ! Check that the functional is used for the correct space dimension
519 ok = bitand(functl%flags, xc_flags_1d) /= 0
520 if (ndim == 1 .and. (.not. ok)) then
521 message(1) = 'Cannot use the specified functionals in 1D.'
522 call messages_fatal(1, namespace=namespace)
523 end if
524
525 ok = bitand(functl%flags, xc_flags_2d) /= 0
526 if (ndim == 2 .and. (.not. ok)) then
527 message(1) = 'Cannot use the specified functionals in 2D.'
528 call messages_fatal(1, namespace=namespace)
529 end if
530
531 ok = bitand(functl%flags, xc_flags_3d) /= 0
532 if (ndim == 3 .and. (.not. ok)) then
533 message(1) = 'Cannot use the specified functionals in 3D.'
534 call messages_fatal(1, namespace=namespace)
535 end if
536
537 pop_sub(xc_check_dimension)
538 end subroutine xc_check_dimension
539
541 logical function xc_functional_is_not_size_consistent(functl, namespace)
542 type(xc_functional_t), intent(in) :: functl
543 type(namespace_t), intent(in) :: namespace
544
545 integer :: n_ext_params, ip
546 character(len=128) :: ext_params_name
547
549 if (.not. functl%from_libxc) return
550
552
553 ! External parameters
554 n_ext_params = xc_f03_func_info_get_n_ext_params(functl%info)
555 do ip = 0, n_ext_params-1
556 ext_params_name = xc_f03_func_info_get_ext_params_name(functl%info, ip)
557 ! Internal parameters starts with '_'
558 if (ext_params_name(1:1) == '_') cycle
559 if (trim(xc_f03_func_info_get_ext_params_description(functl%info, ip)) == 'Number of electrons') then
561 end if
562 end do
563
564 ! We only support size inconsistent functionals with a single parameter at the moment
565 if (xc_functional_is_not_size_consistent .and. n_ext_params > 1) then
566 message(1) = 'The selected functional is currently not supported.'
567 call messages_fatal(1, namespace=namespace)
568 end if
569
572
573 logical pure function xc_functional_is_energy_functional(functl)
574 type(xc_functional_t), intent(in) :: functl
575
576 xc_functional_is_energy_functional = bitand(functl%flags, xc_flags_have_exc) /= 0
578
579end module xc_functional_oct_m
580
581!! Local Variables:
582!! mode: f90
583!! coding: utf-8
584!! End:
real(real64), parameter, public m_one
Definition: global.F90:188
subroutine, public libvdwxc_end(this)
Definition: libvdwxc.F90:481
subroutine, public libvdwxc_init(libvdwxc, namespace, functional)
Definition: libvdwxc.F90:161
subroutine, public libvdwxc_write_info(this, iunit, namespace)
Definition: libvdwxc.F90:207
subroutine, public messages_not_implemented(feature, namespace)
Definition: messages.F90:1125
subroutine, public messages_warning(no_lines, all_nodes, namespace)
Definition: messages.F90:543
subroutine, public messages_obsolete_variable(namespace, name, rep)
Definition: messages.F90:1057
subroutine, public messages_info(no_lines, iunit, verbose_limit, stress, all_nodes, namespace)
Definition: messages.F90:624
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:160
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:420
subroutine, public messages_input_error(namespace, var, details, row, column)
Definition: messages.F90:723
subroutine, public messages_experimental(name, namespace)
Definition: messages.F90:1097
logical function, public parse_is_defined(namespace, name)
Definition: parser.F90:502
integer, parameter, public pseudo_correlation_any
Definition: pseudo.F90:192
integer, parameter, public pseudo_exchange_any
Definition: pseudo.F90:188
integer, parameter, public xc_ks_inversion
inversion of Kohn-Sham potential
integer, parameter, public xc_vdw_c_vdwdf
vdw-df correlation from libvdwxc
integer, parameter, public xc_family_rdmft
subroutine, public xc_functional_write_info(functl, iunit, namespace)
Write functional information.
integer function, public xc_get_default_functional(dim, pseudo_x_functional, pseudo_c_functional)
Returns the default functional given the one parsed from the pseudopotentials and the space dimension...
integer, parameter, public xc_mgga_c_nc_cs
Noncollinear version of the Colle-Salvetti correlation functional.
integer, parameter, public xc_hyb_gga_xc_mvorb_pbeh
Density-based mixing parameter of PBE0.
integer, parameter, public xc_mgga_x_nc_br
Noncollinear version of the Becke-Roussel functional.
integer, parameter, public xc_vdw_c_vdwdfcx
vdw-df-cx correlation from libvdwxc
subroutine, public xc_functional_init(functl, namespace, id, ndim, nel, spin_channels)
integer, parameter, public xc_lda_c_fbe
LDA correlation based ib the force-balance equation.
integer, parameter, public xc_family_nc_mgga
integer, parameter, public xc_half_hartree
half-Hartree exchange for two electrons (supports complex scaling)
integer, parameter, public xc_vdw_c_vdwdf2
vdw-df2 correlation from libvdwxc
subroutine xc_check_dimension(functl, ndim, namespace)
Check that the selected functional is compatible with the space dimension.
integer, parameter, public xc_family_libvdwxc
integer, parameter, public xc_hyb_gga_xc_mvorb_hse06
Density-based mixing parameter of HSE06.
subroutine, public xc_functional_end(functl)
integer, parameter, public xc_lda_c_fbe_sl
LDA correlation based ib the force-balance equation - Sturm-Liouville version.
integer, parameter, public xc_rdmft_xc_m
RDMFT Mueller functional.
integer, parameter, public xc_mgga_x_nc_br_1
Noncollinear version of the Becke-Roussel functional, gamma=1.
logical function, public xc_functional_is_not_size_consistent(functl, namespace)
Does the functional depend on the number of electrons or not.
integer, parameter, public xc_family_nc_lda
integer, parameter, public xc_oep_x_fbe_sl
Exchange approximation based on the force balance equation - Sturn-Liouville version.
integer, parameter, public xc_oep_x_fbe
Exchange approximation based on the force balance equation.
logical pure function, public xc_functional_is_energy_functional(functl)
integer, parameter, public xc_oep_x_slater
Slater approximation to the exact exchange.
int true(void)