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. K.K.Ghosh kk_ghosh@rediffmail.com
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.
Saying:
lat=kwant.lattice.general([(1,0),(0,1)])
(note the lack of basis) will give you the Monatomic lattice you expect.
Thanks,
Joe
On 2 February 2016 at 17:50, kamal ghosh
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. K.K.Ghosh kk_ghosh@rediffmail.com
https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign...
Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company email. *Know More >* http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host
participants (2)
-
Joseph Weston
-
kamal ghosh