functions.models.nearest_neighbor_finder

nearest_neighbor_finder(avec, abasisvec, t_list, x_init, y_init, basis_init)[source]

Finds the relevant nearest neighbors for a given lattice.

Parameters:
  • avec (ndarray) – The lattice vectors.

  • abasisvec (ndarray) – The basis vectors.

  • t_list (list) – The list of hopping amplitudes in order of ascending NN.

  • x_init (float) – The initial x-coordinate.

  • y_init (float) – The initial y-coordinate.

  • basis_init (int) – The initial sublattice index.

Returns:

  • data (ndarray) – The array of relevant nearest neighbors.

  • bases (list) – The list of unique sublattice indices.