2013-07-17 19:24:07 +02:00
|
|
|
|
|
|
|
|
2013-09-17 14:55:55 +02:00
|
|
|
A tight-binding model on a square lattice
|
|
|
|
-----------------------------------------
|
2013-07-17 19:24:07 +02:00
|
|
|
|
|
|
|
Let us now consider free fermions on a Bravais lattice.
|
|
|
|
We will set up a square lattice with the nearest
|
|
|
|
neighbour hopping using the ``BravaisLattice`` class of TRIQS, compute its
|
|
|
|
density of states (DOS) and then plot it by using again the ``oplot`` function.
|
|
|
|
|
|
|
|
|
2013-08-31 00:04:09 +02:00
|
|
|
.. literalinclude:: ../../reference/python/lattice/ex1.py
|
2013-07-17 19:24:07 +02:00
|
|
|
:lines: 1-34
|
|
|
|
|
2013-08-31 00:04:09 +02:00
|
|
|
.. image:: ../../reference/python/lattice/ex1.png
|
2013-07-17 19:24:07 +02:00
|
|
|
:width: 700
|
|
|
|
:align: center
|
|
|
|
|
2013-08-31 00:04:09 +02:00
|
|
|
More information on the lattice tools implemeted in TRIQS can be :doc:`found here <../../reference/python/lattice/lattice>`
|
2013-07-17 19:24:07 +02:00
|
|
|
|