PAOFLOW.elphon.adaptive_smearing#

Adaptive smearing of the energy-conserving deltas of the electron-phonon drivers.

A delta function summed on a uniform k- or q-grid is replaced by a Gaussian whose width follows the variation of its argument across one grid cell (Yates, Wang, Vanderbilt and Souza, Phys. Rev. B 75, 195121 (2007); PAOFLOW’s adaptive_smearing of the DOS and of the dielectric function):

\[\sigma_{n\mathbf k} = a\,|\nabla_{\mathbf k}\varepsilon_{n\mathbf k}|\,\Delta k, \qquad \Delta k = \Big(\frac{8\pi^3}{\Omega N}\Big)^{1/3},\]

with \(a\) of order one (0.7 for Gaussians) and a floor that keeps the width finite at the band extrema. The electron-phonon deltas depend on two states and on the grid they are summed over:

  • scattering rates, summed over q at fixed \(n\mathbf k\): \(\delta(\varepsilon_{m\mathbf k+\mathbf q} - \varepsilon_{n\mathbf k} \mp \omega_{\mathbf q\nu})\) varies with q through \(\mathbf v_{m\mathbf k+\mathbf q}\) (the phonon group velocity, two orders of magnitude smaller, is neglected): state_widths() of the final state with the q spacing;

  • phonon-assisted absorption, summed over k and q: pair_widths(), \(a\sqrt{|\mathbf v_{i\mathbf k} - \mathbf v_{j\mathbf k+\mathbf q}|^2\Delta k^2 + |\mathbf v_{j\mathbf k+\mathbf q}|^2\Delta q^2}\), the k-part being the width of the direct (vertical) transitions;

  • the Fermi-surface double delta of the Eliashberg function, summed over k and q: state_widths() of each state with the k spacing, and a Fermi level consistent with the state-dependent widths (fermi_level_adaptive()).

EPW’s adapt_smearing (broadening in utilities.f90) is the first case with the standard deviation of a uniform distribution over the cell (1/sqrt(12) per axis) and a 1 meV floor. The widths are in the energy unit of the velocities (energy x length) times the spacing (1/length).

Functions#

grid_spacing(cell_volume, n_per_axis)

Linear size of a cell of a uniform n^3 grid in reciprocal space.

state_widths(velocity, spacing, afac, floor)

Width of the delta of one state, max(afac |v| spacing, floor).

pair_widths(velocity_k, velocity_kq, spacing_k, ...)

Width of delta(e_{j k+q} - e_{i k} - ...) summed over k and q.

fermi_level_adaptive(energies, widths, nelec[, ...])

Fermi level of nelec electrons with a Gaussian delta of state-dependent width.

summarize_widths(widths[, scale])

{'min', 'median', 'max'} of the widths (times scale), for reports.

Module Contents#

PAOFLOW.elphon.adaptive_smearing.grid_spacing(cell_volume, n_per_axis)[source]#

Linear size of a cell of a uniform n^3 grid in reciprocal space.

Parameters:
  • cell_volume (float) – Volume of the real-space cell (bohr^3).

  • n_per_axis (int) – Grid points per axis.

Returns:

\((8\pi^3 / (\Omega N))^{1/3}\) with \(N = n^3\) (1/bohr), PAOFLOW’s dk.

Return type:

float

PAOFLOW.elphon.adaptive_smearing.state_widths(velocity, spacing, afac, floor)[source]#

Width of the delta of one state, max(afac |v| spacing, floor).

Parameters:
  • velocity (ndarray (..., 3)) – Band group velocities (energy x length).

  • spacing (float) – Grid spacing of the summation variable (1/length), grid_spacing().

  • afac (float) – Prefactor \(a\) (0.7 for Gaussians).

  • floor (float) – Minimum width (energy).

Returns:

Widths (energy).

Return type:

ndarray (...)

PAOFLOW.elphon.adaptive_smearing.pair_widths(velocity_k, velocity_kq, spacing_k, spacing_q, afac, floor)[source]#

Width of delta(e_{j k+q} - e_{i k} - ...) summed over k and q.

Parameters:
  • velocity_k (ndarray (..., 3), broadcastable) – Group velocities of the initial state at k and of the final state at k+q.

  • velocity_kq (ndarray (..., 3), broadcastable) – Group velocities of the initial state at k and of the final state at k+q.

  • spacing_k (float) – Spacings of the k- and q-grids (1/length); spacing_q = 0 gives the width of a vertical transition summed over k alone.

  • spacing_q (float) – Spacings of the k- and q-grids (1/length); spacing_q = 0 gives the width of a vertical transition summed over k alone.

  • afac (float) – As state_widths().

  • floor (float) – As state_widths().

Returns:

\(a\sqrt{|\mathbf v_i - \mathbf v_j|^2\Delta k^2 + |\mathbf v_j|^2\Delta q^2}\), floored.

Return type:

ndarray

PAOFLOW.elphon.adaptive_smearing.fermi_level_adaptive(energies, widths, nelec, spin_degeneracy=2.0, niter=120)[source]#

Fermi level of nelec electrons with a Gaussian delta of state-dependent width.

Parameters:
  • energies (ndarray (nk, nband)) – Band energies and the widths of their deltas (same unit).

  • widths (ndarray (nk, nband)) – Band energies and the widths of their deltas (same unit).

  • nelec (float) – Electrons per cell.

  • spin_degeneracy (float, optional)

  • niter (int, optional) – Bisection steps.

Returns:

\(\mu\) with \(\frac{g_s}{N_k}\sum_{n\mathbf k}\tfrac12\, \mathrm{erfc}\big((\varepsilon_{n\mathbf k} - \mu)/\sigma_{n\mathbf k}\big) = n_{\rm el}\) (the occupation that integrates the Gaussian delta, QE efermig with ngauss = 0).

Return type:

float

PAOFLOW.elphon.adaptive_smearing.summarize_widths(widths, scale=1.0)[source]#

{'min', 'median', 'max'} of the widths (times scale), for reports.