2013-07-17 19:24:07 +02:00
2013-09-17 14:55:55 +02:00
Manipulating local Green's functions
------------------------------------
2013-07-17 19:24:07 +02:00
2013-09-12 15:06:00 +02:00
Let us start with a problem of free electrons: an impurity `d`
2013-07-17 19:24:07 +02:00
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
2013-09-12 15:06:00 +02:00
mesh on the real axis in the energy interval :math: `\omega \in (-2:2]` .
2013-07-17 19:24:07 +02:00
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 `` :
2014-10-17 18:15:19 +02:00
.. plot :: reference/gfs/py/impinbath.py
2013-07-17 19:24:07 +02:00
:include-source:
:scale: 70
2014-10-17 18:15:19 +02:00
You will find more information on the local Green's function implementation in TRIQS in :doc: `the corresponding chapter of the manual <../../reference/gfs/py/green>`
2013-07-17 19:24:07 +02:00