pythtb.Lattice.make_supercell#
- Lattice.make_supercell(sc_red_lat, return_sc_vectors=False, to_home=True, to_home_warning=True)[source]#
Make lattice a super-cell.
Changed in version 2.0.0: Parameter to_home_supress_warning has been renamed to to_home_warning. Note: this change inverts the meaning of the boolean parameter.
Constructs a
pythtb.TBModelrepresenting a super-cell of the current object. This function can be used together withcut_piece()in order to create slabs with arbitrary surfaces.By default all orbitals will be shifted to the home cell after unit cell has been created. That way all orbitals will have reduced coordinates between 0 and 1. If you wish to avoid this behavior, you need to set, to_home argument to False.