<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="input_xx.xsl"?>
<!-- FILE AUTOMATICALLY CREATED: DO NOT EDIT, CHANGES WILL BE LOST -->
    
<input_description distribution="Quantum ESPRESSO" package="PHonon" program="postahc.x" >
   <toc>
   </toc>
   <intro>
<b>Purpose of postahc.x:</b>

- Read the electron-phonon quantities calculated by <b>ph.x</b> with the
<b>electron_phonon=&apos;ahc&apos;</b> option.

- Calculate the phonon-induced electron self-energy in the full matrix form
at a given temperature.

<b>Structure of the input data:</b>
========================================================================

<b>&amp;INPUT</b>
   ...specs of namelist variables...
<b>/</b>
   </intro>
   <namelist name="INPUT" >
      <var name="prefix" type="CHARACTER" >
         <default> &apos;pwscf&apos;
         </default>
         <info>
Prepended to input/output filenames; must be the same
used in the calculation of unperturbed system.
         </info>
      </var>
      <var name="outdir" type="CHARACTER" >
         <default>
value of the <tt>ESPRESSO_TMPDIR</tt> environment variable if set;
<br/> current directory (&apos;./&apos;) otherwise
         </default>
         <info>
Directory containing input, output, and scratch files;
must be the same as specified in the calculation of
the unperturbed system.
         </info>
      </var>
      <var name="ahc_dir" type="CHARACTER" >
         <status> REQUIRED
         </status>
         <info>
Directory where the binary files are located.
         </info>
      </var>
      <var name="use_irr_q" type="LOGICAL" >
         <default> .false.
         </default>
         <info>
If .true., assume that the q points are on the irreducible grid. In this case,
the data in <ref>ahc_dir</ref> must have been actually generated from a calculation
on an irreducible q grid.
Off-diagonal self-energies cannot be computed if use_irr_q = .true.
         </info>
      </var>
      <var name="ahc_nbnd" type="INTEGER" >
         <status> REQUIRED
         </status>
         <info>
Number of bands for which the electron self-energy is to be computed. Must be
identical to ahc_nbnd of the ph.x run with electron_phonon=&apos;ahc&apos;.
         </info>
      </var>
      <var name="ahc_nbndskip" type="INTEGER" >
         <default> 0
         </default>
         <info>
Number of bands to exclude when computing the self-energy. Must be identical to
ahc_nbndskip of the ph.x run with electron_phonon=&apos;ahc&apos;.
         </info>
      </var>
      <var name="flvec" type="CHARACTER" >
         <status> REQUIRED
         </status>
         <info>
File containing the normalized phonon displacements written by matdyn.x.
         </info>
      </var>
      <var name="eta_eV" type="REAL" >
         <status> REQUIRED
         </status>
         <info>
Magnitude of the small imaginary component included to smooth the energy
denominators, in eV.
         </info>
      </var>
      <var name="temp_kelvin" type="REAL" >
         <status> REQUIRED
         </status>
         <info>
Temperature in Kelvins at which the electron self-energy is calculated.
         </info>
      </var>
      <var name="efermi_eV" type="REAL" >
         <status> REQUIRED
         </status>
         <info>
Fermi energy of the electrons in eV.
         </info>
      </var>
      <dimension name="amass_amu" start="1" end="ntyp" type="REAL" >
         <status> REQUIRED
         </status>
         <info>
Mass for each atom type in atomic mass unit.
         </info>
      </dimension>
      <var name="ahc_win_min_eV" type="REAL" >
         <default> -1.d8
         </default>
         <info>
Lower bound of active AHC window for the lower Fan term in eV.
         </info>
      </var>
      <var name="ahc_win_max_eV" type="REAL" >
         <default> 1.d8
         </default>
         <info>
Upper bound of active AHC window for the lower Fan term in eV.
         </info>
      </var>
      <var name="skip_upper" type="LOGICAL" >
         <default> .false.
         </default>
         <info>
If .true., skip calculation of the upper Fan self-energy. Also, truncate the
Debye-Waller self-energy to include only the low-energy band contribution.
(Corresponds to the second term (lower Fan + lower DW) of Eq. (G1-revised) of
J.-M. Lihm and C.-H. Park, PRX 12, 039901(E) (2022).)
If .false., calculate the contribution of both the high-energy and low-energy
bands. In this case, ahc_upfan_iq#.bin files must be present in <ref>ahc_dir</ref>.
         </info>
      </var>
      <var name="skip_dw" type="LOGICAL" >
         <default> .false.
         </default>
         <info>
If .true., skip calculation of the Debye-Waller self-energy.
If .false., ahc_dw.bin file must be present in <ref>ahc_dir</ref>.
         </info>
      </var>
      <var name="adiabatic" type="LOGICAL" >
         <default> .false.
         </default>
         <info>
If .true., use the adiabatic approximation when computing the Fan self-energy
by ignoring the phonon frequency in the denominator. This approximation is known
to be inaccurate and even divergent in some materials (S. Poncé et al., J. Chem.
Phys. 143, 102813 (2015)). Therefore, this keyword should be used only for
experimental or debugging purposes.
         </info>
      </var>
   </namelist>
</input_description>
