NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ fermi() [1/2]

template<typename T >
T cntr::fermi ( beta,
omega 
)

Evaluates the Fermi distribution function.

Purpose

Evaluates the Fermi distribution function \( n_\mathrm{F}(\omega)\) at given inverse temperature \(\beta\).

Parameters
beta

[T] inverse temperature \(\beta\)

omega

[T] energy

Definition at line 44 of file cntr_equilibrium_impl.hpp.

Referenced by fermi().

44  {
45  T arg = omega * beta;
46  if (fabs(arg) > EXPMAX) {
47  return (arg > 0.0 ? 0.0 : 1.0);
48  } else {
49  return 1.0 / (1.0 + exp(arg));
50  }
51 }
+ Here is the caller graph for this function: