PAOFLOW.elphon.carrier_scattering#

Ab initio carrier scattering rates (SERTA / MRTA) and phonon-limited transport.

State-resolved electron-phonon relaxation rates \(1/\tau_{n\mathbf k}(T)\) on the dense PAO grid, for semiconductors and insulators (states near the band edges) and for metals (states near the Fermi level):

  • carrier_scattering_dense_q() – the rates in the self-energy (SERTA) and momentum-relaxation (MRTA) relaxation-time approximations, from the EPW+PAO interpolation of the coupling (irreducible k-points against the full dense q-grid, unfolded by symmetry);

  • rta_transport() – route (a): the k-resolved conductivity, carrier densities, mobilities and Seebeck coefficient on the same dense grid;

  • energy_resolved_rates() – route (b): the transport-weighted \(\tau_{eff}(E, T)\) for the Boltzmann module (EnergyResolvedRate in PAOFLOW.PAOFLOW.transport());

  • fermi_levels_for_doping() – the chemical potential of a doped (or intrinsic) crystal.

Energies in eV, temperatures in K, rates in 1/s, velocities in m/s, densities in cm^-3 and mobilities in cm^2/(V s) at the interface.

Attributes#

Functions#

fermi_levels_for_doping(energies_ev, temps_k, nelec[, ...])

Chemical potential of a doped (or intrinsic) crystal at each temperature.

scattering_rate_kernel(energy_k, energy_kq, ...[, ...])

SERTA and MRTA scattering rates of a block of states from one q.

statistics_scissor(temps_k, gap_ev[, scissor_ev, ...])

Scissor of the carrier statistics at each temperature.

carrier_scattering_dense_q(A, HRs, kpts_cryst, bg, at, ...)

State-resolved electron-phonon scattering rates on the dense PAO grid.

rta_transport(results[, kind])

k-resolved relaxation-time transport on the dense e-ph grid (route a).

energy_resolved_rates(results[, kind, bin_ev])

Transport-weighted relaxation rate versus energy, for the Boltzmann module (route b).

write_mobility_outputs(results, outdir)

Write mobilities, scattering rates and the Boltzmann-channel input.

Module Contents#

PAOFLOW.elphon.carrier_scattering.HBAR_EV_S = 6.582119569e-16[source]#
PAOFLOW.elphon.carrier_scattering.BOHR_M = 5.29177210903e-11[source]#
PAOFLOW.elphon.carrier_scattering.ELEMENTARY_CHARGE = 1.602176634e-19[source]#
PAOFLOW.elphon.carrier_scattering.DELTA_CUTOFF = 6.0[source]#
PAOFLOW.elphon.carrier_scattering.MRTA_VELOCITY_FLOOR_MS = 10938.456319051551[source]#
PAOFLOW.elphon.carrier_scattering.fermi_levels_for_doping(energies_ev, temps_k, nelec, doping_cm3=0.0, cell_volume_bohr3=None, spin_degeneracy=2.0, conduction=None, scissor_ev=None, niter=200)[source]#

Chemical potential of a doped (or intrinsic) crystal at each temperature.

Parameters:
  • energies_ev (ndarray, shape (nk, nband)) – Band energies of all bands on a uniform k-grid (eV).

  • temps_k (sequence of float) – Temperatures (K).

  • nelec (float) – Valence electrons per cell.

  • doping_cm3 (float, optional) – Net doping (cm^-3): positive adds electrons (n type), negative removes them (p type), 0 gives the intrinsic level.

  • cell_volume_bohr3 (float, optional) – Cell volume (bohr^3); required with doping_cm3.

  • spin_degeneracy (float, optional) – 2 without spin-orbit coupling, 1 with it.

  • conduction (ndarray of bool, shape (nband,), optional) – Conduction bands, shifted by scissor_ev for the statistics.

  • scissor_ev (sequence of float, optional) – Scissor of each temperature (eV).

  • niter (int, optional) – Bisection steps.

Returns:

\(\mu(T)\) (eV), on the scale of energies_ev.

Return type:

ndarray, shape (ntemp,)

Notes

Solves the charge neutrality

\[\frac{g_s}{N_k}\sum_{n\mathbf k} f\left(\frac{\varepsilon_{n\mathbf k} - \mu}{k_BT}\right) = N_{el} + N_d\,\Omega\]

by bisection; for \(N_d = 0\) it is the intrinsic level. With conduction given (and integer band filling) the balance is solved as \(n_e - n_h = N_d\), the holes evaluated as \(f(-x)\), so that carrier densities far below \(10^{-16}\) per cell (wide gaps, low temperatures) are resolved exactly.

PAOFLOW.elphon.carrier_scattering.scattering_rate_kernel(energy_k, energy_kq, velocity_k, velocity_kq, g2, phonon_energy, temps_ev, occupation_energy_kq, smearing, eps_acoustic, weight=1.0, velocity_floor=0.0)[source]#

SERTA and MRTA scattering rates of a block of states from one q.

Parameters:
  • energy_k (ndarray, shape (nb, nband)) – Band energies at k and k+q (eV).

  • energy_kq (ndarray, shape (nb, nband)) – Band energies at k and k+q (eV).

  • velocity_k (ndarray, shape (nb, nband, 3)) – Band velocities (any unit; only their ratios enter).

  • velocity_kq (ndarray, shape (nb, nband, 3)) – Band velocities (any unit; only their ratios enter).

  • g2 (ndarray, shape (nb, nmode, nband_kq, nband_k)) – \(|g_{mn\nu}(\mathbf k, \mathbf q)|^2\) (eV^2), with the \(1/2\omega\) zero-point factor.

  • phonon_energy (ndarray, shape (nmode,)) – Phonon energies at q (eV); modes below eps_acoustic are skipped.

  • temps_ev (sequence of float) – \(k_BT\) values (eV).

  • occupation_energy_kq (ndarray, shape (ntemp, nb, nband_kq)) – \(\varepsilon_{m\mathbf k+\mathbf q} - \mu(T)\) used in the Fermi occupation of the final states (eV).

  • smearing (float or ndarray, shape (nb, nband_kq)) – Gaussian width of the energy-conserving delta (eV), cut at six widths: one value, or one per final state m k+q (adaptive smearing, state_widths()).

  • eps_acoustic (float) – Phonon-energy threshold (eV).

  • weight (float, optional) – q-point weight (1/N_q for the full grid).

  • velocity_floor (float, optional) – States with \(|\mathbf v_{n\mathbf k}|\) at or below it (same unit as the velocities) take the SERTA weight in MRTA, as in EPW.

Returns:

serta, mrta – Rates \(1/\tau_{n\mathbf k}\) (1/s) contributed by this q.

Return type:

ndarray, shape (ntemp, nb, nband_k)

Notes

\[\frac{1}{\tau_{n\mathbf k}} = \frac{2\pi}{\hbar}\, w_{\mathbf q}\sum_{m\nu} |g_{mn\nu}|^2\Big[(n_{\nu} + f_m)\,\delta(\varepsilon_m - \varepsilon_n - \omega_\nu) + (n_\nu + 1 - f_m)\,\delta(\varepsilon_m - \varepsilon_n + \omega_\nu)\Big],\]

the imaginary part of the Fan-Migdal self-energy (SERTA). MRTA weights each process by \(1 - \mathbf v_{n\mathbf k}\cdot\mathbf v_{m\mathbf k+\mathbf q} /|\mathbf v_{n\mathbf k}|^2\) (momentum relaxation).

PAOFLOW.elphon.carrier_scattering.statistics_scissor(temps_k, gap_ev, scissor_ev=None, target_gap_ev=None, metal=False)[source]#

Scissor of the carrier statistics at each temperature.

Parameters:
  • temps_k (sequence of float) – Temperatures (K).

  • gap_ev (float) – Indirect gap of the Hamiltonian on the dense grid (eV).

  • scissor_ev (float or callable, optional) – Shift (eV) or T -> Delta(T) (varshni_shift()).

  • target_gap_ev (float or callable, optional) – Target gap (eV) or T -> E_g(T) (varshni_gap()).

  • metal (bool, optional) – No scissor for metals.

Returns:

The conduction-band shift per temperature (eV); zeros for a metal or when nothing is given.

Return type:

ndarray, shape (ntemp,)

PAOFLOW.elphon.carrier_scattering.carrier_scattering_dense_q(A, HRs, kpts_cryst, bg, at, alat, cell_volume, coupling_dir, qgrid_coarse, ng, *, masses_amu, nelec, nk_dense=24, nq_dense=24, temps_k=(300.0,), doping_cm3=0.0, window_ev=0.3, smearing_ev=0.01, adaptive_smearing=None, min_smearing_ev=0.001, scissor_ev=None, target_gap_ev=None, eps_acoustic_cm=5.0, screening_eps=None, screening_eps_dft=None, spin_degeneracy=2.0, sym_rots=None, tau_cryst=None, species=None, orbital_positions=None, ispin=0, kblock=256, comm=None, allow_missing_long_range=False, coupling_source='epw', save_dir=None, pseudo_dir=None, prefix=None, basis='auto', unfold='full', basis_shells=None, unfold_tol=1e-06, cache_dir=None, cache_tag=None, long_range=None)[source]#

State-resolved electron-phonon scattering rates on the dense PAO grid.

Parameters:
  • A – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • HRs – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • kpts_cryst – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • bg – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • at – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • alat – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • cell_volume – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • coupling_dir – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • qgrid_coarse – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • ng – As phonon_assisted_absorption_dense_q() (PAO projections and Hamiltonian, lattice, EPW directory, coarse grids).

  • masses_amu (ndarray, shape (nat,)) – Atomic masses (amu), one per atom.

  • nelec (float) – Valence electrons per cell.

  • nk_dense (int, optional) – Dense k- and q-grids per axis (nk_dense % nq_dense == 0).

  • nq_dense (int, optional) – Dense k- and q-grids per axis (nk_dense % nq_dense == 0).

  • temps_k (sequence of float, optional) – Temperatures (K).

  • doping_cm3 (float, optional) – Net doping (cm^-3, positive n type, negative p type, 0 intrinsic).

  • window_ev (float, optional) – Transport window: states within window_ev of the band edges (semiconductors and insulators) or of the Fermi level (metals).

  • smearing_ev (float, optional) – Gaussian width of the energy-conserving delta (eV).

  • adaptive_smearing (float, optional) – Adaptive smearing: the width of the delta of every final state m k+q is adaptive_smearing * |v_{m k+q}| * dq (Yates et al.; 0.7 is the usual Gaussian prefactor), floored at min_smearing_ev, with dq the spacing of the dense q-grid (state_widths()). None keeps the fixed smearing_ev.

  • min_smearing_ev (float, optional) – Floor of the adaptive widths (eV), EPW’s 1 meV.

  • scissor_ev (float or callable, optional) – Scissor of the carrier statistics: a shift (eV) or T -> Delta(T) relative to the Hamiltonian’s own gap (varshni_shift(), for a HRs that already has the 0 K gap).

  • target_gap_ev (float or callable, optional) – Scissor target gap (eV, or T -> E_g(T)) for the carrier statistics (scissor_per_temperature()); the rates involve intraband energy differences only and are unchanged.

  • eps_acoustic_cm (float, optional) – Phonons below this energy (cm^-1) are skipped.

  • screening_eps (float, optional) – Poncé-Resta screening correction of the coupling, as in phonon_assisted_absorption_dense_q() (coupling_screening): the target dielectric constant (e.g. 11.94 for Si, which lowers the Si mobilities by about 9-12 % according to Poncé et al. 2018) and that of the DFPT coupling (default: the .epb tensor). None keeps the DFPT screening.

  • screening_eps_dft (float, optional) – Poncé-Resta screening correction of the coupling, as in phonon_assisted_absorption_dense_q() (coupling_screening): the target dielectric constant (e.g. 11.94 for Si, which lowers the Si mobilities by about 9-12 % according to Poncé et al. 2018) and that of the DFPT coupling (default: the .epb tensor). None keeps the DFPT screening.

  • spin_degeneracy (float, optional) – 2 without spin-orbit coupling, 1 with it. The band velocities are the group velocities of the PAO Hamiltonian, which contains the non-local pseudopotential (Hellmann-Feynman); the non-local velocity correction belongs to interband (optical) dipoles only.

  • sym_rots (optional) – Point group (read_nscf 's_cryst'), atomic positions and labels: irreducible q-points and star-averaged k (see Notes).

  • tau_cryst (optional) – Point group (read_nscf 's_cryst'), atomic positions and labels: irreducible q-points and star-averaged k (see Notes).

  • species (optional) – Point group (read_nscf 's_cryst'), atomic positions and labels: irreducible q-points and star-averaged k (see Notes).

  • orbital_positions (ndarray, optional) – PAO orbital centres (pair-resolved Wigner-Seitz sums, velocity operator).

  • ispin (optional) – Spin channel, k-points per task, MPI communicator, polar guard.

  • kblock (optional) – Spin channel, k-points per task, MPI communicator, polar guard.

  • comm (optional) – Spin channel, k-points per task, MPI communicator, polar guard.

  • allow_missing_long_range (optional) – Spin channel, k-points per task, MPI communicator, polar guard.

  • coupling_source ({'epw', 'dfpt'}, optional) – 'epw' reads EPW’s .epb files from coupling_dir; 'dfpt' computes the coarse vertex from the ph.x outputs in coupling_dir and the nscf wavefunctions of save_dir (prepare_dense_vertex()).

  • save_dir – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • pseudo_dir – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • prefix – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • basis – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • unfold – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • basis_shells – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • unfold_tol – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • cache_dir – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • cache_tag – coupling_source='dfpt' and cache options of prepare_dense_vertex().

  • long_range (LongRangeModel, optional) – Polar crystals: subtract the analytic dipole/quadrupole coupling on the coarse grid and restore it at every dense q (LongRangeModel); the phonons must be built with the same model (phonon_at_q=None or phonon_interp_from_dyn() with long_range).

Returns:

energies_ev (nkd, nband) (window bands, PAO energy scale), velocities_ms (nkd, nband, 3), in_window (nkd, nband), carrier (nband,) (+1 electron/conduction, -1 hole/valence, 0 metal), rates_serta and rates_mrta (ntemp, nkd, nband) (1/s, zero outside the window), fermi_levels_ev, scissor_ev, n_e_cm3, n_h_cm3 (ntemp,), temps_k, doping_cm3, bands, vbm_ev, cbm_ev, metal, cell_volume_bohr3, spin_degeneracy, nk_dense, nq_dense, coupling_screening ('none' or 'ponce-resta' with the screening_* constants).

Return type:

dict

Notes

With the point group \(G\) (and time reversal), the rates are summed over the irreducible dense q-points with their star weights \(w_q\) for every k that carries window states, and then averaged over the star of k:

\[\frac{1}{\tau_{n\mathbf k}} = \sum_{\mathbf q} F_n(\mathbf k, \mathbf q) = \frac{1}{|G|}\sum_{S\in G} A_n(S^{-1}\mathbf k), \qquad A_n(\mathbf k) = \sum_{\mathbf q \in \mathrm{IBZ}} w_{\mathbf q} F_n(\mathbf k, \mathbf q),\]

exact because \(F(S\mathbf k, S\mathbf q) = F(\mathbf k, \mathbf q)\) for the scalar SERTA and MRTA kernels. Pairs whose k+q has no state within one phonon energy (plus the delta tail) of the window are skipped, and the rates are averaged over degenerate bands. The chemical potential follows from charge neutrality with the doping (fermi_levels_for_doping()).

PAOFLOW.elphon.carrier_scattering.rta_transport(results, kind='mrta')[source]#

k-resolved relaxation-time transport on the dense e-ph grid (route a).

Parameters:
Returns:

temps_k, sigma (ntemp, 3, 3) (S/m), sigma_avg, sigma_e, sigma_h (trace/3 of the total and of the conduction and valence bands, S/m; a metal has sigma_avg only), n_e_cm3, n_h_cm3, mobility_e, mobility_h (cm^2/(V s), NaN without carriers of that kind), seebeck_uv_k (trace form, microvolt/K) and kind.

Return type:

dict

Notes

\[\sigma_{\alpha\beta} = \frac{e^2 g_s}{\Omega N_k}\sum_{n\mathbf k} v^\alpha_{n\mathbf k} v^\beta_{n\mathbf k}\,\tau_{n\mathbf k} \left(-\frac{\partial f}{\partial\varepsilon}\right), \qquad \mu_{e,h} = \frac{\sigma_{e,h}}{e\, n_{e,h}},\]

over the window states, conduction (electrons) and valence (holes) bands separately; the Seebeck coefficient is \(S = -\mathrm{Tr}\,L_1/(eT\,\mathrm{Tr}\,L_0)\) with the energy moment \((\varepsilon - \mu)\) in \(L_1\).

PAOFLOW.elphon.carrier_scattering.energy_resolved_rates(results, kind='mrta', bin_ev=0.005)[source]#

Transport-weighted relaxation rate versus energy, for the Boltzmann module (route b).

Parameters:
Returns:

energy_ev (nbin,) on the PAO energy scale (the scale of PAOFLOW’s E_k), temps_k and rate_per_s (ntemp, nbin), the input of EnergyResolvedRate.

Return type:

dict

Notes

\[\frac{1}{\tau_{eff}(E, T)} = \left[\frac{\sum_{n\mathbf k} v^2_{n\mathbf k}\, \tau_{n\mathbf k}\,\delta(E - \varepsilon_{n\mathbf k})} {\sum_{n\mathbf k} v^2_{n\mathbf k}\,\delta(E - \varepsilon_{n\mathbf k})}\right]^{-1}:\]

the energy-only relaxation time that reproduces the trace of the k-resolved conductivity. Empty bins (e.g. the gap) are interpolated.

PAOFLOW.elphon.carrier_scattering.write_mobility_outputs(results, outdir)[source]#

Write mobilities, scattering rates and the Boltzmann-channel input.

Parameters:
Returns:

mobility.dat (T, mu_F, n_e, n_h, SERTA and MRTA mobilities and conductivities), rates_<T>K.dat (energy, SERTA and MRTA rates of the window states), scattering_rates.npz (energy-resolved SERTA and MRTA rates, the input of EnergyResolvedRate.from_npz) and carrier_scattering.npz (all state-resolved arrays).

Return type:

list of str