mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
28140f14fb
Mainly on the python part. I had a quick browse through to check if the scripts were still working.
21 lines
634 B
ReStructuredText
21 lines
634 B
ReStructuredText
|
|
|
|
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>`
|
|
|