3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/doc/tutorials/python/tour2.rst
Olivier Parcollet 3305185bee Work on doc
- remove empty parts, start to clean the tour.
- added export of _template and _static to reuse in appli doc.
- clean tutorial part. rm cookbook.
2013-08-31 15:22:36 +02:00

21 lines
650 B
ReStructuredText

Tour 2: A tight-binding model on a square lattice
-------------------------------------------------
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.
.. literalinclude:: ../../reference/python/lattice/ex1.py
:lines: 1-34
.. image:: ../../reference/python/lattice/ex1.png
:width: 700
:align: center
More information on the lattice tools implemeted in TRIQS can be :doc:`found here <../../reference/python/lattice/lattice>`