3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 19:53:45 +01:00
dft_tools/doc/tutorials/gfs_tutorial.rst

47 lines
1.3 KiB
ReStructuredText
Raw Normal View History

Green's functions
2014-01-10 18:21:08 +01:00
=======================
.. highlight:: c
.. toctree::
:maxdepth: 1
The gfs class of TRIQS contains objects representing Green functions over real or imaginary times, rela or imaginary frequencies... that can be easily manipulated.
(see :doc:`here <../../reference/c++/gf/contents>`).
Here are a couple of simple examples showing the basic use of this class.
Creation of a real time GF
-----------------------------
Here we create a GF define on the time interval from tmin to tmax.
If we want the value of the GF at any time to be a scalar, we use:
.. triqs_example:: ./gfs_tutorial_0.cpp
2014-01-10 18:21:08 +01:00
If we need a matrix of size n by m, we use:
.. triqs_example:: ./gfs_tutorial_1.cpp
2014-01-10 18:21:08 +01:00
Or a tensor !
.. triqs_example:: ./gfs_tutorial_2.cpp
2014-01-10 18:21:08 +01:00
Creation of other simple GF's
-------------------------------
.. triqs_example:: ./gfs_tutorial_3.cpp
2014-01-10 18:21:08 +01:00
Creation of a two real time GF
--------------------------------
.. triqs_example:: ./gfs_tutorial_4.cpp
2014-01-10 18:21:08 +01:00
How to fill a GF with placeholders
-----------------------------------
.. triqs_example:: ./gfs_tutorial_5.cpp
2014-01-10 18:21:08 +01:00
How to interpolate the GF value at a point of the domain
---------------------------------------------------------
You simply have to call the GF with the coordinates of the point:
.. triqs_example:: ./gfs_tutorial_6.cpp
2014-01-10 18:21:08 +01:00
Learn more in the full reference, see :ref:`gf`