calc_approximate_charges
- static ThomasFermi.calc_approximate_charges(physics, n, islands)
Calculates the approximate charge on each island.
This is calculated by summing
nover the region defined by each island.- Parameters:
physics (PhysicsParameters) – The physical device parameters.
n (ndarray[float]) – A 1D array containing the particle density (in 1/nm).
islands (ndarray[int]) – An array with shape
(num_islands, 2)giving the islands, whereislands[i]is a length-2 integer array[begin_index, end_index + 1]giving the indeces ofphysics.xcorresponding to the island.
- Returns:
approximate_charges – An array with length equal to the number of islands, where each entry of the array is n(x) integrated over the corresponding island.
- Return type:
ndarray[float]