3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/doc/tutorials/python/tour1.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

27 lines
1.0 KiB
ReStructuredText

Tour 1: Manipulations with local Green functions
------------------------------------------------
Let use start with a problem of free electrons : an impurity `d`
level embedded in a flat conduction bath :math:`\Delta` of `s`-electrons.
To construct and plot the corresponding 2x2 Green's function:
.. math::
\hat{G}^\mathrm{s+d} ( \omega) = \begin{pmatrix} \omega - \epsilon_d & V \\ V & \Delta^{-1} \end{pmatrix}^{-1}
we first create the corresponding energy
mesh `a` on the real axis in the energy interval :math:`\omega \in (-2:2]`
The Green's function is generated using classes of the ``gf.local`` module by setting up
:math:`\left[\hat{G}^\mathrm{s+d}\right]^{-1}` and inverting it.
Finally, the obtained bath and impurity densities of states are plotted using the TRIQS function ``oplot``:
.. plot:: reference/python/green/impinbath.py
:include-source:
:scale: 70
You will find more information on the local Green's function implementation in TRIQS in :doc:`the corresponding chapter of the manual <../../reference/python/green/green>`