RT_entropy Subroutine

subroutine RT_entropy(en, k, dG_lesser, Entr, TEntr, EnEntr, E_IP)

Evaluate electronic entropy and thermodynamic temperature in real-time.

1. Entropy Calculation (\f$S(t)\f$)

The entropy is computed from the time-dependent occupations \f$n_{nk}(t)\f$: \f[ S(t) = - \sum_{nk} w_k [n_{nk} \ln(n_{nk}/s) + (s-n_{nk}) \ln(1-n_{nk}/s)] \f] where \f$s\f$ is the spin_occ (typically 2 for non-magnetic systems). Electron (\f$S_e\f$) and hole (\f$S_h\f$) entropies are computed separately.

2. Thermodynamic Temperature (\f$T\f$)

The temperature is derived from the relation: \f[ \frac{1}{T} = \frac{\Delta S}{\Delta E} \f] where \f$\Delta S\f$ and \f$\Delta E\f$ are the variations of entropy and energy between two consecutive time steps.

Prefactors

  • Temperatures are converted from a.u. to Kelvin using HA2KEL.

Arguments

Type IntentOptional Attributes Name
type(levels), intent(in) :: en

Electronic levels.

type(bz_samp), intent(in) :: k

BZ sampling structure.

complex(kind=SP), intent(in) :: dG_lesser(RT_bands(1):RT_bands(2),RT_bands(1):RT_bands(2),PAR_G_k_range(1):PAR_G_k_range(2),n_sp_pol)
real(kind=SP), intent(inout) :: Entr(3)
real(kind=SP), intent(out) :: TEntr(3)
real(kind=SP), intent(inout) :: EnEntr(3)
real(kind=SP), intent(in) :: E_IP

Independent particle energy variation.



📚 Documentation Pages
⏱️ Real-Time
🔗 Code API