triqs_dft_tools.sumk_dft.SumkDFT.calc_mu
- SumkDFT.calc_mu(precision=0.01, broadening=None, delta=0.5, max_loops=100, method='dichotomy', beta=None)[source]
Searches for the chemical potential that gives the DFT total charge.
- Parameters:
precision : float, optional
A desired precision of the resulting total charge.
broadening : float, optional
Imaginary shift for the axis along which the real-axis GF is calculated. If not provided, broadening will be set to double of the distance between mesh points in ‘mesh’. Only relevant for real-frequency GF.
max_loops : int, optional
Number of dichotomy loops maximally performed.
method : string, optional
- Type of optimization used:
dichotomy: usual bisection algorithm from the TRIQS library
newton: newton method, faster convergence but more unstable
brent: finds bounds and proceeds with hyperbolic brent method, a compromise between speed and ensuring convergence
beta : float, optional, default = broadening
when using MeshReFreq this determines the temperature for the Fermi function smearing when integrating G(w). If not given broadening will be used (converted to beta)
- Returns:
mu : float
Value of the chemical potential giving the DFT total charge within specified precision.