tightbinder.system.generate_near_cells#

generate_near_cells(bravais_lattice, n=1, half=False)[source]#

Auxiliary routine to generate the Bravais vectors corresponding to unit cells neighbouring the origin one. NB: It only generates half of them, since we are going to use hermiticity to generate the Hamiltonian.

Parameters:
  • bravais_lattice (Union[list, ndarray]) – Basis vectors of the Bravais lattice.

  • n (int) – Values on each axis go from [-n, n]. Defaults to 1.

  • half (bool) – Generate only half the combinations. Defaults to False.

Return type:

ndarray

Returns:

Array with combinations of Bravais basis vectors.