tightbinder.disorder.set_impurities#

set_impurities(system, indices, energy=0.1)[source]#

Routine to set impurities on the system on the atoms specified by the list provided.

Parameters:
  • system (System) – System class or derived subclass. Must have Hamiltonian initialized

  • indices (List[int]) – List with indices of those atoms we want to transform into impurities. The indices are referred to the order in the motif

  • energy (float) – On-site energy for the impurities. Defaults to 0.1.

Return type:

System

Returns:

Modified system.