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):
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#
|
Linear size of a cell of a uniform |
|
Width of the delta of one state, |
|
Width of |
|
Fermi level of |
|
|
Module Contents#
- PAOFLOW.elphon.adaptive_smearing.grid_spacing(cell_volume, n_per_axis)[source]#
Linear size of a cell of a uniform
n^3grid in reciprocal space.
- 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 = 0gives the width of a vertical transition summed over k alone.spacing_q (float) – Spacings of the k- and q-grids (1/length);
spacing_q = 0gives 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
nelecelectrons with a Gaussian delta of state-dependent width.- Parameters:
- 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
efermigwithngauss = 0).- Return type: