Hi Kamal,

If you look in the source code for `kwant.lattice.general` you'll see that
the function returns a monatomic lattice when the `basis` argument is `None`.
As you provided a (albeit single-site) basis, a Polyatomic lattice is constructed.


(note the lack of basis) will give you the Monatomic lattice you expect.



On 2 February 2016 at 17:50, kamal ghosh <kk_ghosh@rediffmail.com> wrote:
Dear All,
There are inbuilt crystal lattices in Kwant. As little bit crazy I tried to use
general( ) in constructing monatomic square or rectangular lattice instead of using
lattice.square(). My code was:
lat=kwant.lattice.general([(1,0),(0,1)],[(0,0)])instead of the inbuilt square
lattice i.e. lat=kwant.lattice.square(1).
Error given : polyatomic objects are not callable.
I cant understand how this becomes polyatomic? I have not declared any sublattice.
Please help me how to give a code for manatomic and polyatomic objects as well.
Thanks to all of the discuss forum.
Get your own FREE website, FREE domain & FREE mobile app with Company email.  
Know More >