calc_island_charges
- static ThomasFermi.calc_island_charges(numerics, energy_matrix, approximate_charges)
Calculates stable integer charge configuration.
This is the configuration
Qwhich minimizescalc_cap_energy(Q, energy_matrix, approximate_charges).- Parameters:
numerics (NumericsParameters) – Options for numeric calculations.
energy_matrix (ndarray[float]) – A 2D array with shape
(num_islands, num_islands)giving the energy matrix (in meV) of the capacitance model.approximate_charges (ndarray[float]) – An array with length equal to the number of islands, where each entry of the array is the integral of n(x) over the corresponding island.
- Returns:
The charge configuration array which minimizes the capacitance energy. This is a 1D array with length equal to the number of islands specifying the integer number of charges on each island.
- Return type:
ndarray[int]