Tutorial on DFT+DMFT¶
A DFT+DMFT calculation for SrVO_{3}.¶
This tutorial aims at showing how to perform a DFT+DMFT calculation using Abinit.
You will not learn here what is DFT+DMFT. But you will learn how to do a DFT+DMFT calculation and what are the main input variables controlling this type of calculation.
It might be useful that you already know how to do PAW calculations using ABINIT but it is not mandatory (you can follow the two tutorials on PAW in ABINIT, PAW1 and PAW2. Also the DFT+U tutorial in ABINIT might be useful to know some basic variables common to DFT+U and DFT+DMFT.
This tutorial should take about one hour to complete (less if you have access to several processors).
Note
Supposing you made your own install of ABINIT, the input files to run the examples are in the ~abinit/tests/ directory where ~abinit is the absolute path of the abinit toplevel directory. If you have NOT made your own install, ask your system administrator where to find the package, especially the executable and test files.
To execute the tutorials, create a working directory (Work*
) and
copy there the input files and the files file of the lesson. This will be explicitly mentioned in the first lessons,
that will tell you more about the files file (see also section 1.1).
The files file ending with _x (e.g. tbase1_x.files) must be edited every time you start to use a new input file.
Most of the tutorials do not rely on parallelism (except specific tutorials on parallelism). However you can run most of the tutorial examples in parallel, see the topic on parallelism.
In case you work on your own PC or workstation, to make things easier, we suggest you define some handy environment variables by executing the following lines in the terminal:
export ABI_HOME=Replace_with_the_absolute_path_to_the_abinit_top_level_dir export PATH=$ABI_HOME/src/98_main/:$PATH export ABI_TESTS=$ABI_HOME/tests/ export ABI_PSPDIR=$ABI_TESTS/Psps_for_tests/ # Pseudopotentials used in examples.
Examples in this tutorial use these shell variables: copy and paste the code snippets into the terminal (remember to set ABI_HOME first!). The ‘export PATH’ line adds the directory containing the executables to your PATH so that you can invoke the code by simply typing abinit in the terminal instead of providing the absolute path.
1 The DFT+DMFT method: summary and key parameters¶
The DFT+DMFT method aims at improving the description of strongly correlated systems. Generally, these highly correlated materials contain rareearth metals or transition metals, which have partially filled d or f bands and thus localized electrons. For further information on this method, please refer to [Georges1996] and [Kotliar2006]. For an introduction to Many Body Physics (Green’s function, Selfenergy, imaginary time, and Matsubara frequencies), see e.g. [Coleman2015] and [Tremblay2017].
Several parameters (both physical and technical) needs to be discussed for a DFT+DMFT calculation.

The definition of correlated orbitals. In the ABINIT DMFT implementation, it is done with the help of Projected Wannier orbitals (see [Amadon2008]). The first part of the tutorial explains the importance of this choice. Wannier functions are unitarily related to a selected set of Kohn Sham (KS) wavefunctions, specified in ABINIT by band index dmftbandi, and dmftbandf. Thus, as empty bands are necessary to build Wannier functions, it is required in DMFT calculations that the KS Hamiltonian is correctly diagonalized: use high values for nnsclo, and nline for DMFT calculations and preceding DFT calculations. Roughly speaking, the larger dmftbandfdmftbandi is, the more localized is the radial part of the orbital. Note that this definition is different from the definition of correlated orbitals in the DFT+U implementation in ABINIT (see [Amadon2008a]). The relation between the two expressions is briefly discussed in [Amadon2012].

The definition of the Coulomb and exchange interaction U and J are done as in DFT+U through the variables upawu and jpawu. They could be computed with the cRPA method, also available in ABINIT. The value of U and J should in principle depend on the definition of correlated orbitals. In this tutorial, U and J will be seen as parameters, as in the DFT+U approach. As in DFT+U, two double counting methods are available (see the dmft_dc input variable). Note that in version 7.10.5 (but not in later versions) jpawu = 0 is required if the density matrix in the correlated subspace is not diagonal.

The choice of the double counting correction. The current default choice in ABINIT is (dmft_dc = 1) which corresponds to the full localized limit.

The method of resolution of the Anderson model. In ABINIT, it can be the Hubbard I method (dmft_solv = 2) the Continuous time Quantum Monte Carlo (CTQMC) method (dmft_solv=5) or the static mean field method (dmft_solv = 1) equivalent to usual DFT+U.

The solution of the Anderson Hamiltonian and the DMFT solution are strongly dependent over temperature. So the temperature tsmear is a very important physical parameter of the calculation.

The practical solution of the DFT+DMFT scheme is usually presented as a double loop over first the local Green’s function, and second the electronic local density. (cf Fig. 1 in [Amadon2012]). The number of iterations of both loops are respectively given in ABINIT by keywords dmft_iter and nstep. Other useful variables are dmft_rslf = 1 and prtden = 1 (to be able to restart the calculation from the density file). Lastly, one linear and one logarithmic grid are used for Matsubara Frequencies indicated by dmft_nwli and dmft_nwlo (Typical values are 100000 and 100, but convergence should be studied). A large number of information are given in the log file using pawprtvol = 3.
2 Electronic Structure of SrVO3 in LDA¶
You might create a subdirectory of the $ABI_TESTS/tutoparal directory, and use it for the tutorial. In what follows, the names of files will be mentioned as if you were in this subdirectory
Copy the files tdmft_1.in and dmft_x.files from $ABI_TESTS/tutoparal in your Work directory,
cd $ABI_TESTS/tutoparal/Input mkdir Work_dmft cd Work_dmft cp ../tdmft_x.files . cp ../tdmft_1.in .
tdmft_X.in tdmft_X.out tdmft_Xi tdmft_Xo tdmft_Xx ../../../Psps_for_tests/23v.paw ../../../Psps_for_tests/38sr.paw ../../../Psps_for_tests/8o.paw
#  ndtset 2 jdtset 1 2 #jdtset 1 2 3 4 pawprtvol 3 getden 1 #================================================================================== ############ Parameters common to all DATASETS #================================================================================== ##### CONVERGENCE PARAMETERS nstep 40 nline 3 #Number of LINE minimisations nnsclo 3 #Number of NonSelf Consistent LOops ecut 12.0 # Maximal kinetic energy cutoff, in Hartree pawecutdg 20.0 #(60)PAW  Energy CUToff for the Double Grid ( need only when usepaw=1=) tolwfr 1.0d15 occopt 3 #OCCupation OPTion tsmear 1200 K #Temperature of SMEARing # ##### PHYSICAL PARAMETERS natom 5 ntypat 3 typat 1 2 3 3 3 znucl 23.0 38.0 8.0 # V Sr O*3 xred 0.00 0.00 0.00 #vectors (X) of atom positions in REDuced coordinates 0.50 0.50 0.50 0.50 0.00 0.00 0.00 0.50 0.00 0.00 0.00 0.50 acell 3*7.2605 rprim 1.0 0.0 0.0 #Real space PRIMitive translations 0.0 1.0 0.0 0.0 0.0 1.0 ngkpt 3 3 3 #K  PoinTs grid : Real space LATTice nshiftk 4 #No shif shiftk 0.5 0.5 0.5 0.5 0.0 0.0 0.0 0.5 0.0 0.0 0.0 0.5 istwfk *1 #For all the dataset nsym 1 nband 30 #================================================================================== ############ FIRST DATASET: First dataset with all the symetries to compute DEnsity #================================================================================== getden2 1 nbandkss2 2 kssform2 3 pawfatbnd2 1 #Parameters (to uncomment) for bands structure iscf2 2 kptopt2 4 ndivk2 18 20 20 28 kptbounds2 1/4 1/4 1/4 #R' 0.0 0.0 0.0 #Gamma 1/2 0.0 0.0 #X 1/2 1/2 0.0 #M 0.0 0.0 0.0 #Gamma #%%<BEGIN TEST_INFO> #%% [setup] #%% executable = abinit #%% test_chain = tdmft_1.in #%% [files] #%% files_to_test = #%% tdmft_1.out, tolnlines= 12, tolabs= 2.0e3, tolrel= 2.0e3, fld_options = medium #%% psp_files= 23v.paw, 38sr.paw, 8o.paw #%% [shell] #%% [paral_info] #%% nprocs_to_test = 32 #%% max_nprocs = 32 #%% [extra_info] #%% keywords = LDA, FATBANDS #%% authors = B. Amadon #%% description = For SrVO3, compute band structure #%%<END TEST_INFO>
Then edit the tdmft_x.files and run ABINIT with:
mpirun n 32 abinit < tdmft_x.files > log_1 &
This run should take some time. It is recommended that you use at least 10 processors (and 32 should be fast). It calculates the LDA ground state of SrVO3 and compute the band structure in a second step.
The variable pawfatbnd allows to create files with “fatbands” (see description of the variable in the list of variables): the width of the line along each kpoint path and for each band is proportional to the contribution of a given atomic orbital on this particular Kohn Sham Wavefunction. A low cutoff and a small number of kpoints are used in order to speed up the calculation.
During this time you can take a look at the input file. There are two datasets. The first one is a ground state calculations with nnsclo=3 and nline=3 in order to have well diagonalized eigenfunctions even for empty states. In practice, you have however to check that the residue of wavefunctions is small at the end of the calculation. In this calculation, we find 1.E06, which is large (1.E10 would be better, so nnsclo and nline should be increased, but it would take more time). When the calculation is finished, you can plot the fatbands for Vanadium and l=2. Several possibilities are available for that purpose. We will work with the simple xmgrace package (you need to install it, if not already available on your machine).
xmgrace tdmft_1o_DS2_FATBANDS_at0001_V_is1_l0002 par ../Input/tdmft_fatband.par
The band structure is given in eV.
and the fatbands for all Oxygen atoms and l=1 with
xmgrace tdmft_1o_DS2_FATBANDS_at0003_O_is1_l0001 tdmft_1o_DS2_FATBANDS_at0004_O_is1_l0001 tdmft_1o_DS2_FATBANDS_at0005_O_is1_l0001 par ../Input/tdmft_fatband.par
In these plots, you recover the band structure of SrVO3 (see for comparison the band structure of Fig.3 of [Amadon2008]), and the main character of the bands. Bands 21 to 25 are mainly d and bands 12 to 20 are mainly oxygen p. However, we clearly see an important hybridization. The Fermi level (at 0 eV) is in the middle of bands 2123.
One can easily check that bands 2123 are mainly dt 2g and bands 2425 are mainly e_{g}: just use pawfatbnd = 2 in tdmft_1.in and relaunch the calculations. Then the file tdmft_1o_DS2_FATBANDS_at0001_V_is1_l2_m2, tdmft_1o_DS2_FATBANDS_at0001_V_is1_l2_m1 and tdmft_1o_DS2_FATBANDS_at0001_V_is1_l2_m1 give you respectively the xy, yz and xz fatbands (ie dt 2g) and tdmft_1o_DS2_FATBANDS_at0001_V_is1_l2_m+0 and tdmft_1o_DS2_FATBANDS_at0001_V_is1_l2_m+2 give the z^{2} and x^{2}y^{2} fatbands (i.e. e_{g}).
So in conclusion of this study, the Kohn Sham bands which are mainly t_{2g} are the bands 21,22 and 23.
Of course, it could have been anticipated from classical crystal field theory: the vanadium is in the center of an octahedron of oxygen atoms, so d orbitals are split in t_{2g} and e_{g}. As t_{2g} orbitals are not directed toward oxygen atoms, t_{2g}like bands are lower in energy and filled with one electron, whereas e_{g}like bands are higher and empty.
In the next section, we will thus use the t_{2g}like bands to built Wannier functions and do the DFT+DMFT calculation.
3 Electronic Structure of SrVO3: DFT+DMFT calculation¶
3.1. The input file for DMFT calculation: correlated orbitals, screened Coulomb interaction and frequency mesh¶
In ABINIT, correlated orbitals are defined using the projected local orbitals Wannier functions as outlined above. The definition requires to define a given energy window from which projected Wannier functions are constructed. We would like in this tutorial, to apply the DMFT method on d orbitals and for simplicity on a subset of d orbitals, namely t_{2g} orbitals ( e_{g} orbitals play a minor role because they are empty). But we need to define t_{2g} orbitals. For this, we will use Wannier functions.
As we have seen in the orbitally resolved fatbands, the Kohn Sham wave function contains a important weight of t_{2g} atomic orbitals mainly in t 2glike bands but also in oxygen bands.
So, we can use only the t_{2g}like bands to define Wannier functions or also both the t_{2g}like and Op like bands.
The first case corresponds to the input file tdmft_2.in. In this case dmftbandi = 21 and dmftbandf = 23. As we only put the electron interaction on t_{2g} orbitals, we have to use first lpawu = 2, but also the keyword dmft_t2g = 1 in order to restrict the application of interaction on t_{2g} orbitals.
Notice also that before launching a DMFT calculation, the LDA should be perfectly converged, including the empty states (check nline and nnsclo in the input file). The input file tdmft_2.in thus contains two datasets: the first one is a well converged LDA calculation, and the second is the DFT+DMFT calculation.
Notice the other dmft variables used in the input file and check their meaning in the input variable glossary. In particular, we are using dmft_solv = 5 for the dmft dataset in order to use the densitydensity continuous time quantum monte carlo (CTQMC) solver. (See [Gull2011], as well as the ABINIT 2016 paper [Gonze2016] for details about the CTQMC implementation in ABINIT.) Note that the number of imaginary frequencies dmft_nwlo has to be set to at least twice the value of dmftqmc_l (the discretization in imaginary time). Here, we choose a temperature of 1200 K. For lower temperature, the number of Matsubara frequencies should be higher.
Here we use a fast calculation, with a small value of the parameters, especially dmft_nwlo, dmftqmc_l and dmftqmc_n.
Let’s now discuss the value of the effective Coulomb interaction U (upawu) and J (jpawu). The values of U and J used in ABINIT in DMFT use the same convention as in DFT+U calculations in ABINIT (cf [Amadon2008a]). However, calculations in Ref. [Amadon2008] use for U and J the usual convention for _t 2g _ systems as found in [Lechermann2006], Eq. 26 (see also the appendix in [Fresard1997]). It corresponds to the Slater integral F4=0 and we can show that U_abinit=U4/3 J and J_abinit=7/6 J. So in order to use U = 4 eV and J=0.65 eV with these latter conventions (as in [Amadon2008]), we have to use in ABINIT: upawu = 3.13333 eV; jpawu = 0.75833 eV and f4of2_sla = 0.
Now, you can launch the calculation:
Copy the files ../Input/tdmft_2.in and modify tdmft_x.files in your Work directory and run ABINIT:
mpirun n 32 abinit < tdmft_x.files > log_2
# _== Convergency and starting # DATASET 1: LDA # DATASET 2: LDA+DMFT ndtset 2 jdtset 1 2 getwfk 1 #ndtset 1 #jdtset 2 #irdden2 1 nline1 5 nnsclo1 5 nline2 10 nnsclo2 10 prtvol 4 pawprtvol 3 ##### CONVERGENCE PARAMETERS nstep1 30 nstep2 10 ecut 12 # low cutoff ! pawecutdg 20 tolvrs 1.0d7 nband 30 occopt 3 tsmear 1200 K #npulayit 30 ##### PHYSICAL PARAMETERS natom 5 ntypat 3 typat 1 2 3 3 3 znucl 23.0 38.0 8.0 # V Sr O*3 xred 0.00 0.00 0.00 0.50 0.50 0.50 0.50 0.00 0.00 0.00 0.50 0.00 0.00 0.00 0.50 acell 3*7.2605 rprim 1.0 0.0 0.0 #Real space PRIMitive translations 0.0 1.0 0.0 0.0 0.0 1.0 # == Points k and symetries ngkpt 3 3 3 #K  PoinTs grid : Real space LATTice nshiftk 4 shiftk 1/2 1/2 1/2 1/2 0.0 0.0 0.0 1/2 0.0 0.0 0.0 1/2 istwfk *1 # == LDA+DMFT usedmft1 0 usedmft2 1 dmftbandi 21 # t2g bands only dmftbandf 23 # t2g bands only dmft_nwlo 100 dmft_nwli 100000 dmft_iter 1 dmftcheck 0 dmft_rslf 1 dmft_mxsf 0.7 dmft_dc 1 dmft_t2g 1 # special value for t2g only calculation. dmftctqmc_gmove 0 dmftctqmc_order 50 # == CTQMC dmft_solv 5 # CTQMC dmftqmc_l 50 dmftqmc_n 1.d6 dmftqmc_therm 10000 # == DFT+U usepawu 1 # For density matrix printout. dmatpuopt 1 # The density matrix: the simplest expression. lpawu 2 1 1 upawu1 0.00 0.0 0.0 eV f4of2_sla3 0.0 0.0 0.0 upawu2 3.1333333333333333 0.0 0.0 eV jpawu2 0.7583333333333333 0.0 0.0 eV #%%<BEGIN TEST_INFO> #%% [setup] #%% executable = abinit #%% [files] #%% files_to_test = #%% tdmft_2.out, tolnlines =1, tolabs =5.0e07, tolrel = 2.0e03, fld_options=medium ; #%% psp_files = 23v.paw, 38sr.paw, 8o.2.paw #%% [paral_info] #%% nprocs_to_test = 32 #%% max_nprocs = 32 #%% [extra_info] #%% authors = B. Amadon #%% keywords = DMFT, CTQMC #%% description = Tutorial DFT+DMFT on SrVO3 #%%<END TEST_INFO>
3.2. The DFT+DMFT calculation: the log file¶
We are now going to browse quickly the log file (log_2) for this calculation.
Starting from
===== Start of DMFT calculation
we have first the definition of logarithmic grid for frequency, then, after:
== Prepare data for DMFT calculation
The projection of Kohn Sham wavefunctions and (truncated) atomic orbitals are computed (Eq.(2.1) in [Amadon2012]) and unnormalized orbitals are built (Eq.(2.2) in [Amadon2012]) The occupation matrix in this orbital basis is
 Symetrised Occupation 0.11142 0.00000 0.00000 0.00000 0.11142 0.00000 0.00000 0.00000 0.11142
and the Normalization of this orbital basis is
 Symetrised Norm 0.65790 0.00000 0.00000 0.00000 0.65790 0.00000 0.00000 0.00000 0.65790
Now, let’s compare these numbers to other quantities. If the preceding LDA calculation is converged, dmatpuopt=1 is used, and dmftbandi=1 and dmftbandf=nband, then the above Symetrised Occupation should be exactly equal to the occupation matrix given in the usual DFT+U occupation matrix written in the log file (with dmatpuopt=1) (see discussion in [Amadon2012]). In our case, we are not in this case because dmftbandi=21 so this condition is not fulfilled. Concerning the norm if these orbitals, two factors play a role:

Firstly, the number of Kohn Sham function used should be infinite (cf Eq. B.4 of [Amadon2012]), which is not the case here, because we take into account only bands 2123. We emphasize that it is not a limitation of our approach, but just a physical choice concerning Wannier functions. This physical choice induces that these intermediate wave functions have a very low norm.

Secondly, the atomic orbitals used to do the projection are cut at the PAW radius. As a consequence, even if we would use a complete set of KS wavefunctions and thus the closure relation, the norm could not be one. In our case, it could be at most 0.86852, which is the norm of the truncated atomic function of d orbitals of Vanadium used in this calculation. This number can be found in the log file by searching for ph0phiint (grep “ph0phiint(icount)= 1” log_2). (See also the discussion in Section B.3 of [Amadon2012]).
Next the LDA Green’s function is computed.
===== LDA Green Function Calculation
Then the Green’s function is integrated to compute the occupation matrix. Interestingly, the density matrix here must be equal to the density matrix computed with the unnormalized correlated orbitals. If this is not the case, it means that the frequency grid is not sufficiently large. In our case, we find:
0.11143 0.00000 0.00000 0.00000 0.11143 0.00000 0.00000 0.00000 0.11143
So the error is very small (1.10E5). As an exercise, you can decrease the number of frequencies and see that the error becomes larger.
Then the true orthonormal Wannier functions are built and the Green’s function is computed in this basis just after:
===== LDA Green Function Calculation with renormalized psichi
The occupation matrix is now:
0.16937 0.00000 0.00000 0.00000 0.16937 0.00000 0.00000 0.00000 0.16937
We see that because of the orthonormalization of the orbitals necessary to built Wannier functions, the occupation matrix logically increases.
Then, after:
===== Define Interaction and selfenergy
The Interaction kernel is computed from U and J, and the self energy is read from the disk file (if it exists). Then, the Green’s function is computed with the self energy and the Fermi level is computed. Then the DMFT Loop starts.
===== DMFT Loop starts here
The log contains a lot of details about the calculation (especially if pawprtvol=3). In order to have a more synthetic overview of the calculation (this is especially useful to detect possible divergence of the calculation), the following command extracts the evolution of the number of electrons (LDA, LDA with Wannier functions, and DMFT number of electrons) as a function of iterations (be careful, all numbers of electron are computed differently as explained in the log file):
grep e Nb e ITER log_2
Besides, during each DMFT calculation, there are one or more CTQMC calculations:
Starting QMC (Thermalization)
For the sake of efficiency, the DMFT Loop is in this calculation done only once before doing again the DFT Loop (cf Fig. 1 of [Amadon2012]). At the end of the calculation, the occupation matrix is written and is:
 polarization spin component 1 0.16843 0.00000 0.00000 0.00000 0.16843 0.00000 0.00000 0.00000 0.16843
We can see that the total number of electron is very close to one and it does not change much as a function of iterations. As an output of the calculation, you can find the self energy in file tdmft_2o_DS2Selfomega_iatom0001_isppol1 and the Green’s function is file Gtau.dat.
3.3. The self energy¶
You can use the selfenergy to compute the quasiparticle renormalization weight. We first extract the first six Matsubara frequencies:
head n 8 tdmft_2o_DS2Selfomega_iatom0001_isppol1 > self.dat
Then we plot the imaginary part of the selfenergy (in imaginary frequency):
xmgrace block self.dat bxy 1:3
Then using xmgrace , you click on Data , then on Transformations and then on Regression and you can do a 4^{th} order fit as:
The slope at zero frequency obtained is 0.82. From this number, the quasiparticle renormalisation weight can be obtained using Z=1/(1+0.82)=0.55.
3.4. The Green’s function for correlated orbitals¶
The impurity (or local) Green’s function for correlated orbitals is written in the file Gtau.dat. It is plotted as a function of the imaginary time in the interval [0, β] where β is the inverse temperature (in Hartree). You can plot this Green’s function for the six t_{2g} orbitals using e.g xmgrace
xmgrace nxy Gtau.dat
As the six _t 2g _ orbitals are degenerated, the six Green’s function must be similar, within the stochastic noise. Moreover, this imaginary time Green’s function must be negative and the value of G(β) for the orbital i is equal to the opposite of the number of electrons in the orbital i (ni). Optionnally, you can check how the Green’s function can be a rough way to check for the importance of stochastic noise. For example, change for simplicity the number of steps for the DMFT calculation to 1:
nstep2 1
and then use a much smaller number of steps for the Monte Carlo Solver such as
dmftqmc_n 1.d3
save the previous Gtau.dat file:
cp Gtau.dat Gtau.dat_save
Then relaunch the calculation. After it is completed, compare the new Green’s function and the old one with the previous value of dmftqmc_n. Using xmgrace,
xmgrace nxy Gtau.dat_save nxy Gtau.dat
one obtains:
One naturally sees that the stochastic noise is much larger in this case. This stochastic noise can induces that the variation of physical quantities (number of electrons, electronic density, energy) as a function of the number of iteration is noisy. Once you have finished this comparison, copy the saved Green’s function into Gtau.dat in order to continue the tutorial with a precise Green’s function in Gtau.dat:
cp Gtau.dat_save Gtau.dat
3.5. The local spectral function¶
You can now use the imaginary time Green’s function (contained in file Gtau.dat) to compute the spectral function in real frequency. Such analytical continuation can be done on quantum Monte Carlo data using the Maximum Entropy method.
A maximum entropy code has been published recently by D. Bergeron. It can be downloaded here. Please cite the related paper [Bergeron2016] if you use this code in a publication.
The code has a lot of options, and definitely, the method should be understood and the user guide should be read before any real use. It is not the goal of this DFT+DMFT tutorial to introduce to the Maximum Entropy Method (see [Bergeron2016] and references therein). We give here a very quick way to obtain a spectral function. First, you have to install this code and the armadillo library by following the guidelines, and then launch it on the current directory in order to generate the default input file OmegaMaxEnt_input_params.dat.
OmegaMaxEnt
Then edit the file OmegaMaxEnt_input_params.dat, and modify the first seven lines with:
data file: Gtau.dat OPTIONAL PREPROCESSING TIME PARAMETERS DATA PARAMETERS bosonic data (yes/[no]): no imaginary time data (yes/[no]): yes
Then relaunch the code
OmegaMaxEnt
and plot the spectral function:
xmgrace OmegaMaxEnt_final_result/optimal_spectral_function_*.dat
Change the unit from Hartree to eV, and then, you have the spectral function:
Even if the calculation is not well converged, you recognize in the spectral functions the quasiparticle peak as well as Hubbard bands at 2 eV and +2.5 eV as in Fig.4 of [Amadon2008].
4 Electronic Structure of SrVO3: Choice of correlated orbitals¶
Previously, only the t_{2g}like bands were used in the definition of Wannier functions. If there were no hybridization between t_{2g} orbitals and oxygen p orbitals, the Wannier functions would be pure atomic orbitals and they would not change if the energy window was increased. But there is an important hybridization, as a consequence, we will now built Wannier functions with a large window, by including oxygen p like bands in the definition of Wannier functions. Create a new input file:
cp tdmft_2.in tdmft_3.in
and use dmftbandi = 12 in tdmft_3.in. Now the code will built Wannier functions with a larger window, including Op like bands, and thus much more localized. Launch the calculation after having updated tdmft_x.files (if the calculation is too long, you can decide to restart the second dataset directly from a converged LDA calculation instead of redoing the LDA calculation for each new DMFT calculation).
abinit < tdmft_x.files > log_3
In this case, both the occupation and the norm are larger because more states are taken into account: you have the occupation matrix which is
 Symetrised Occupation 0.23573 0.00000 0.00000 0.00000 0.23573 0.00000 0.00000 0.00000 0.23573
and the norm is:
 Symetrised Norm 0.78223 0.00000 0.00000 0.00000 0.78223 0.00000 0.00000 0.00000 0.78223
Let us now compare the total number of electron and the norm with the two energy window:
Energy window:  t_{2g}like bands  t_{2g}like+ Op like bands 

dmftbandi/dmftbandf:  21/23  12/23 
Norm:  0.66  0.78 
LDA Number of electrons (before ⊥):  0.66(=0.11*6)  1.42(=0.235*6) 
LDA Number of electrons (after ⊥):  1.02  1.81 
For the large window, as we use more Kohn Sham states, both the occupation and the norm are larger, mainly because of the important weight of d orbitals in the oxygen bands (because of the hybridization). Concerning the norm, remind that in any case, it cannot be larger that 0.86. So as the Norm is 0.78, it means that by selecting bands 1223 in the calculation, we took into account 0.78/0.86*100=90\% of the weight of the truncated atomic orbital among Kohn Sham bands. Moreover, after orthonormalization, you can check that the difference between LDA numbers of electrons is still large (1.02 versus 1.81), even if the orthonormalization effect is larger on the small windows case. Note that in this particular case, with diagonal matrix, the number of electrons before and after orthonormalization are simply linked by n_before/Norm=n_after, i.e. 1.81 ≈1.42/0.78 and 1.02≈0.66/0.66
At the end of the DFT+DMFT calculation, the occupation matrix is written and is
 polarization spin component 1 0.29450 0.00000 0.00000 0.00000 0.29450 0.00000 0.00000 0.00000 0.29450
Similarly to the previous calculation, the spectral function can be plotted using the Maximum Entropy code: we find a spectral function with an hybridation peak at 5 eV, as described in Fig.5 of [Amadon2008].
Resolving the lower Hubbard bands would require a more converged calculation.
As above, one can compute the renormalization weight and it gives 0.68. It shows that with the same value of U and J, interactions have a weaker effect for the large window Wannier functions. Indeed, the value of the screened interaction U should be larger because the Wannier functions are more localized (see discussion in [Amadon2008]).
5 Electronic Structure of SrVO3: The internal energy¶
The internal energy can be obtained with
grep e ITER e Internal log_3
and select the second occurrence for each iteration (the double counting expression) which should be accurate with iscf=17 (at convergence both expressions are equals also in DFT+DMFT). So after gathering the data:
Iteration  Internal Energy (Ha) 

1  1.51483736718814E+02 
2  1.51480860837124E+02 
3  1.51479980721122E+02 
4  1.51479456233951E+02 
5  1.51479511038784E+02 
6  1.51479570943715E+02 
7  1.51479487485907E+02 
8  1.51479539558451E+02 
9  1.51479457525225E+02 
10  1.51479582334490E+02 
You can plot the evolution of the internal energy as a function of the iteration.
You notice that the internal energy (in a DFT+DMFT calculations) does not converge as a function of iterations, because there is a finite statistical noise. So, as a function of iterations, first, the internal energy starts to converge, because the modification of the energy induced by the self consistency cycle is larger than the statistical noise, but then the internal energy fluctuates around a mean value. So if the statistical noise is larger than the tolerance, the calculation will never converge. So if a given precision on the total energy is expected, a practical solution is to increase the number of Quantum Monte Carlo steps (dmftqmc_n) in order to lower the statistical noise. Also another solution is to do an average over the last values of the internal energy. Note that in version 7.10.5, only the Internal energy has a physical meaning in DFT+DMFT and not Etotal or ETOT.
6 Electronic Structure of SrVO3 in DFT+DMFT: Equilibrium volume¶
We focus now on the total energy. Create a new input file, tdmft_4.in:
cp tdmft_3.in tdmft_4.in
And use acell = 7.1605 instead of 7.2605. Relaunch the calculation and note the Internal energy (grep Internal tdmft_4.out).
Redo another calculation with acell = 7.00. Then extract the LDA Internal energy and the DMFT Internal energy (grep Internal tdmft_5.out).
acell  Internal energy LDA  Internal energy DMFT 

7.0000  151.51517  151.4797 
7.1605  151.52399  151.4877 
7.2605  151.51515  151.4795 
and then plot DMFT and LDA energies as a function of acell. You will notice that the equilibrium volume is very weakly modified by the strong correlations is this case.
7 Electronic Structure of SrVO3: kresolved Spectral function¶
We are going to use OmegaMaxEnt to do the direct analytical continuation of the selfenergy in Matsubara frequencies to real frequencies. (A more precise way to do the analytical continuation uses an auxiliary Green’s function as mentionned in e.g. endnote 55 of Ref. [Sakuma2013a]). First of all, we are going to relaunch a more converged calculation using tdmft_5.in
# Testing CTQMC options # # == Convergency and starting # DATASET 1: LDA # DATASET 2: DMFT ndtset 2 jdtset 1 2 prtvol 4 pawprtvol 3 getwfk2 1 nline2 10 nnsclo2 10 getden3 1 ##### CONVERGENCE PARAMETERS nstep1 30 nstep2 1 nstep3 30 ecut 20 pawecutdg 60 tolvrs 1.0d10 nband 30 occopt 3 tsmear 1200 K ##### PHYSICAL PARAMETERS natom 5 ntypat 3 typat 1 2 3 3 3 znucl 23.0 38.0 8.0 # V Sr O*3 xred 0.00 0.00 0.00 #vectors (X) of atom positions in REDuced coordinates 0.50 0.50 0.50 0.50 0.00 0.00 0.00 0.50 0.00 0.00 0.00 0.50 acell 3*7.2605 rprim 1.0 0.0 0.0 #Real space PRIMitive translations 0.0 1.0 0.0 0.0 0.0 1.0 # == Points k and symetries kptopt 1 ngkpt 6 6 6 nshiftk 4 shiftk 1/2 1/2 1/2 1/2 0.0 0.0 0.0 1/2 0.0 0.0 0.0 1/2 istwfk *1 # == LDA+DMFT usedmft1 0 usedmft2 1 usedmft3 1 dmftbandi 21 dmftbandf 23 dmft_nwlo 1600 dmft_nwli 100000 dmft_iter 10 dmftcheck 0 dmft_rslf 0 dmft_mxsf 0.8 dmft_dc 1 dmft_t2g 1 # == CTQMC dmft_solv 5 # CTQMC dmftqmc_l 800 dmftqmc_n 1.d8 dmftqmc_therm 10000 # In general the correct value for dmftctqmc_basis is 1 (the default) dmftctqmc_basis 2 # to preserve the test: dmftctqmc_check 0 # check calculations dmftctqmc_correl 1 # correlations dmftctqmc_grnns 0 # green noise dmftctqmc_meas 1 # modulo de mesure E dmftctqmc_mrka 0 # markov analysis dmftctqmc_mov 0 # movie dmftctqmc_order 050 # perturbation # == DFT+U usepawu 1 # For density matrix printout. dmatpuopt 1 # The density matrix: the simplest expression. lpawu 2 1 1 f4of2_sla 0.0 0.0 0.0 upawu1 0.0 0.0 0.0 eV jpawu1 0.0 0.0 0.0 eV upawu2 3.1333333333333333 0.0 0.0 eV jpawu2 0.7583333333333333 0.0 0.0 eV upawu3 0.0000000000000000 0.0 0.0 eV jpawu3 0.0000000000000000 0.0 0.0 eV #upawu3 3.1333333333333333 0.0 0.0 eV #jpawu3 0.7583333333333333 0.0 0.0 eV ##jpawu 1.1666666666666663 0.0 0.0 eV ################################ #BANDSTRUCTURE ################################ dmft_rslf3 1 tolwfr3 1.0d12 nbandkss3 20 kssform3 3 pawfatbnd3 1 dmft_kspectralfunc3 1 #Parameters (to uncomment) for bands structure iscf3 2 kptopt3 4 #ndivk3 4 5 5 7 ndivk3 90 50 50 70 #ndivk3 9 5 5 7 kptbounds3 1/2 1/2 1/2 #R' 0.0 0.0 0.0 #Gamma 1/2 0.0 0.0 #X 1/2 1/2 0.0 #M 0.0 0.0 0.0 #Gamma
Modify tdmft_x.files and launch the calculation, it might take some time. The calculation takes in few minutes with 4 processors.
abinit < tdmft_x.files > log_5
We are going to create a new directory for the analytical continuation.
mkdir Spectral
We first extract the first Matsubara frequencies (which are not too noisy)
head n 26 tdmft_5o_DS2Selfrotformaxent0001_isppol1_iflavor0001 > Spectral/self.dat
In this directory, we launch OmegaMaxEnt just to generate the input template:
cd Spectral OmegaMaxEnt
Then, you have to edit the input file OmegaMaxEnt_input_params.dat of OmegaMaxent and specify that the data is contained in self.dat and that it contains a finite value a infinite frequency. So the first lines should look like this:
data file: self.dat OPTIONAL PREPROCESSING TIME PARAMETERS DATA PARAMETERS bosonic data (yes/[no]): imaginary time data (yes/[no]): temperature (in energy units, k_B=1): finite value at infinite frequency (yes/[no]): yes
Then relaunch OmegaMaxent
OmegaMaxEnt
You can now plot the imaginary part of the self energy in real frequencies with (be careful, this file contains in fact 2 Im\Sigma. If another analytical continuation tool is used, one needs to give to ABINIT 2 Im\Sigma and not \Sigma ):
xmgrace OmegaMaxEnt_final_result/optimal_spectral_function.dat
Then, we need to give to ABINIT this file in order for abinit to use it, to compute the Green’s function in real frequencies and to deduce the kresolved spectral function. First copy this self energy in the real axis in a Self energy file and a grid file for ABINIT.
cp OmegaMaxEnt_final_result/optimal_spectral_function.dat ../self_ra.dat cd ..
Create file containing the frequency grid with:
wc l self_ra.dat > tdmft_5o_DS3_spectralfunction_realfrequencygrid cat self_ra.dat >> tdmft_5o_DS3_spectralfunction_realfrequencygrid
As in this particular case, the three self energies for the three t2g orbitals are equal, we can do only one analytical continuation, and duplicate the results as in:
cp self_ra.dat tdmft_5i_DS3Self_raomega_iatom0001_isppol1 cat self_ra.dat >> tdmft_5i_DS3Self_raomega_iatom0001_isppol1 cat self_ra.dat >> tdmft_5i_DS3Self_raomega_iatom0001_isppol1
Now, tdmft_5i_DS3Self_raomega_iatom0001_isppol1 file, contains three times the self real axis selfenergy. If the three orbitals were not degenerated, one would have of course to use a different real axis selfenergy for each orbitals (and thus do an analytical continuation for each).
Copy the file containing the rotation of the self energy in the local basis (useful for non cubic cases, here this matrix is just useless):
cp tdmft_5o_DS2.UnitaryMatrix_for_DiagLevel_iatom0001 tdmft_5i_DS3.UnitaryMatrix_for_DiagLevel_iatom0001
Copy the Self energy in imaginary frequency for restart also (dmft_nwlo should be the same in the input file tdmft_5.in and tdmft_2.in)
cp tdmft_5o_DS2Selfomega_iatom0001_isppol1 tdmft_5o_DS3Selfomega_iatom0001_isppol1
Then modify tdmft_5.in with
ndtset 1 jdtset 3
and relaunch the calculation.
abinit < tdmft_x.files > log_5_dataset3
Then the spectral function is obtained in file tdmft_5o_DS3_DFTDMFT_SpectralFunction_kresolved_from_realaxisself. You can copy it in file bands.dat:
cp tdmft_5o_DS3_DFTDMFT_SpectralFunction_kresolved_from_realaxisself bands_dmft.dat
Extract DFT band structure from fatbands file in readable file for gnuplot (261 is the number of kpoint used to plot the band structure (it can be obtained by “grep nkpt log_5_dataset3”):
grep " BAND" A 261 tdmft_5o_DS3_FATBANDS_at0001_V_is1_l0001  grep v BAND > bands_dft.dat
And you can use a gnuplot script to plot it:
#Graph set nokey set tics font ", 30" set xzeroaxis lw 1 lt 3 lc rgb "white" set tics textcolor rgb "black" set xtics ("R'"1.000000,"{/Symbol G}" 90.00000000,"X"140.000000000,"M"190.00000000,"{/Symbol G}" 260.0000000) set ytics 1.0 set ylabel "Energy (eV)" set yrange[3.8:3.8] set zrange[0:100] #Colors set palette defined (0.0 "black", 0.2 "darkblue",2.0 "cyan", 5 "green", 7 "yellow") set mouse set pm3d map # PLOT splot "bands_dmft.dat" u 3:1:2 with pm3d,\ "bands_dft.dat" using ($1+1):2:(0.0) with points pt 3 ps 0.3 linecolor rgb "white" # OUPUT set term postscript colour eps enhanced set tics font ", 10" set output "bands.eps" replot
gnuplot G N U P L O T Version 5.2 patchlevel 7 last modified 20190529 Copyright (C) 19861993, 1998, 2004, 20072018 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h') Terminal type is now 'qt' gnuplot> load "../tdmft_gnuplot"
The spectral function should thus look like this.
The white curve is the LDA band structure, the colored plot is the DMFT spectral function. One notes the renormalization of the bandwith as well as Hubbard bands, mainly visible a high energy (arount 2 eV). A more precise description of the Hubbard band would require a more converged calculation.
8 Electronic Structure of SrVO3: Conclusion¶
To sum up, the important physical parameters for DFT+DMFT are the definition of correlated orbitals, the choice of U and J (and double counting). The important technical parameters are the frequency and time grids as well as the number of steps for Monte Carlo, the DMFT loop and the DFT loop.
We showed in this tutorial how to compute the correlated orbital spectral functions, quasiparticle renormalization weights, total internal energy and the kresolved spectral function.