Coverage for eminus/xc/gga_c_pbe_sol.py: 100.00%
5 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-08 12:59 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-08 12:59 +0000
1# SPDX-FileCopyrightText: 2021 The eminus developers
2# SPDX-License-Identifier: Apache-2.0
3"""Perdew-Burke-Ernzerhof GGA correlation for solids and surfaces.
5Reference: Phys. Rev. Lett. 100, 136406.
6"""
8from .gga_c_pbe import gga_c_pbe, gga_c_pbe_spin
11def gga_c_pbe_sol(n, **kwargs):
12 """Perdew-Burke-Ernzerhof solid parametrization of the correlation functional (spin-paired).
14 Corresponds to the functional with the label GGA_C_PBE_SOL and ID 133 in Libxc.
16 Reference: Phys. Rev. Lett. 100, 136406.
18 Args:
19 n: Real-space electronic density.
21 Keyword Args:
22 **kwargs: Throwaway arguments.
24 Returns:
25 PBEsol correlation energy density, potential, and vsigma.
26 """
27 return gga_c_pbe(n, beta=0.046, **kwargs)
30def gga_c_pbe_sol_spin(n, zeta, **kwargs):
31 """Perdew-Burke-Ernzerhof solid parametrization of the correlation functional (spin-polarized).
33 Corresponds to the functional with the label GGA_C_PBE_SOL and ID 133 in Libxc.
35 Reference: Phys. Rev. Lett. 100, 136406.
37 Args:
38 n: Real-space electronic density.
39 zeta: Relative spin polarization.
41 Keyword Args:
42 **kwargs: Throwaway arguments.
44 Returns:
45 PBEsol correlation energy density, potential, and vsigma.
46 """
47 return gga_c_pbe_spin(n, zeta, beta=0.046, **kwargs)