calc_approximate_charges

static ThomasFermi.calc_approximate_charges(physics, n, islands)

Calculates the approximate charge on each island.

This is calculated by summing n over 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, where islands[i] is a length-2 integer array [begin_index, end_index + 1] giving the indeces of physics.x corresponding 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]