chainTB code

The chainTB module models a one-dimensional tight-binding dimer chain with real and/or complex valued hoppings and onsite energies.

chainTB is available at https://github.com/cpoli/TB

class chainTB.eigChain(lat)[source]

Child of the class eigTB. Dedicated to chains along x.

set_hop_alt(ho)[source]

Set chain alternating hoppings.

Parameters:
  • ta – Hopping t_{ab}.
  • tb – Default value 0. Hopping t_{ba}. If tb=0, t_{ba}=t_{ab}
set_dim_defect(dim)[source]

Set dimerization defects.

Parameters:dim – Array. Indices of the dimerization defects.
get_params()[source]

Set parameters used to store figures.

Parameters:on – Array. Sublattices onsite energies.
class chainTB.plotChain(sys)[source]

Child of class plotTB. Dedicated to Graphene.

plt_dispersion(ta, tb=0.0, lw=5, fs=20)[source]

Plot infinite chain dispersion relation.

Parameters:
  • ta – Hopping t_{ab}.
  • tb – Default value 0. Hopping t_{ba}.
  • lw – Default value 5. Linewidth.
  • fs – Default value 20. Fontsize.
plt_chain_hop(ms=20, fs=20)[source]

Plot chain in hopping space.

Parameters:
  • ms – Default value 20. Markersize.
  • fs – Default value 20. Font size.