In this tutorial, we will apply dynamical mean field theory (DMFT) on Sr2RuO4 on a QSGW stating point that you can find here
or on Scarf
Impurity solver
Questaal package does not supply an impurity solver. There are several choices of solvers on the market, in this tutorial, the CTQMC solver from the TRIQS package is used (see TRIQS package and its hybridization-expansion solver solver) TRIQS is already installed on the machine used for this workshop.
Prepare Input folder and files
Open dmft_sr2ruo4.tar.bz2
If you list your directory now, you should have :
Definition of the correlated subspace
At the end of ctrl file add the following lines:
Remark: Make sure you have the right indentation between the token DMFT and BLOCK.
Projection window
The first tokens are:
- BETA=30 : The DMFT loop is done at inverse temperature (ev^-1) 30.
- NOMEGA : Number of Matsubara frequencies for the impurity self energy.
NLOHI=16.42 : The projector are constructed with the bands from 16 to 42.
How to select NLOHIIn principle, the window is infinite and all the bands should be included. In practice, for numerical reasons, we choose a large finite windows around the d-state.plot the partial dos on Ru atom (see tutorial here
mpirun -np 12 lmf sr2ruo4 -vnkabc=8 --quit=rho --pdos~mode=2~sites=3~lcut=2lmdos sr2ruo4 -vnkabc=8 --quit=rho --pdos~mode=2~sites=3~lcut=2 --dos:npts=1001:window=-1,1echo 1.4 5 -20 20 | pldos -fplot~sh~long~open~tmy=.25~dmin=0.40~xl=E -esclxy=13.6 -ef=0 -lst="5;6;7;8;9" dos.sr2ruo4which prints a file fplot.ps that you can open with evince :
Panel 1,2,4 are t2g bands and 3,5 are eg.
In this tutorial, we will include the t2g bands so we want at least a windows at least of around -8 ev to 8 eV the following command :
mpirun -np 12 lmf ctrl.sr2ruo4 --minmax~ef0~ev --quit=rhoprints an array with the lower and higher energies of each bands over the Brillouin zone (in eV, relative to the Fermi level).
1 -44.3639-44.3497 | 65 24.6447 26.9751 | 129 63.4499 67.00302 -44.3621-44.3487 | 66 25.5025 27.5054 | 130 64.9246 68.36393 -43.9959-43.9922 | 67 25.9274 28.0126 | 131 65.8215 68.49354 -36.6674-36.5877 | 68 26.3476 28.4759 | 132 66.3480 69.26685 -36.6052-36.5623 | 69 27.0485 29.2219 | 133 67.0030 69.76706 -21.6012-20.4596 | 70 27.5175 30.5218 | 134 67.7296 71.14997 -20.5487-20.4463 | 71 27.9963 30.8646 | 135 68.1644 71.49008 -20.1141-19.6980 | 72 28.6419 31.2388 | 136 68.8294 72.43559 -19.9636-19.4625 | 73 28.6928 32.0471 | 137 68.9175 72.896110 -18.6634-18.1766 | 74 29.8014 32.4042 | 138 69.3634 73.086711 -18.5672-18.1023 | 75 30.2767 33.1881 | 139 69.6761 73.559012 -18.3387-18.0421 | 76 30.7850 34.2614 | 140 70.4414 74.092013 -18.2624-17.8759 | 77 31.2068 34.7062 | 141 71.9113 74.356914 -18.0055-17.3478 | 78 32.5198 35.1082 | 142 72.0429 75.002415 -17.7978-17.3328 | 79 33.1905 35.5611 | 143 73.3876 75.524716 -8.7415 -5.7184 | 80 34.2706 36.0721 | 144 73.7077 76.087317 -8.4662 -5.7184 | 81 34.5046 36.5411 | 145 74.6232 76.816618 -7.4729 -5.1152 | 82 34.6476 36.6204 | 146 75.4742 78.003619 -6.3248 -4.9609 | 83 35.0262 36.8990 | 147 76.2399 78.387720 -6.0095 -4.2071 | 84 35.3958 38.1754 | 148 76.5344 78.712521 -5.1659 -4.0326 | 85 35.4764 38.2633 | 149 76.9394 79.626722 -4.6066 -3.3940 | 86 35.6191 38.9050 | 150 77.7823 80.081123 -4.4619 -3.3072 | 87 35.9060 39.1817 | 151 78.4270 81.029824 -3.9376 -3.1200 | 88 36.5507 39.6747 | 152 78.6801 81.121625 -3.8228 -2.7379 | 89 37.3101 39.9634 | 153 78.8622 81.917326 -3.1909 -2.6617 | 90 37.3728 40.4092 | 154 79.5259 82.609627 -2.9680 -2.4403 | 91 37.9164 41.0772 | 155 80.1328 83.240828 -2.8285 0.3722 | 92 38.4716 41.4645 | 156 81.1495 83.698629 -0.8810 0.3963 | 93 38.9698 42.0651 | 157 81.9281 84.642930 -0.8806 0.5328 | 94 39.9048 42.5988 | 158 82.4948 85.175631 0.7721 3.7782 | 95 40.5127 43.0717 | 159 83.1580 87.076732 2.0161 5.7185 | 96 41.3112 43.7090 | 160 83.7712 87.507533 3.5324 6.1219 | 97 42.0524 44.4195 | 161 84.4264 88.020734 3.9819 6.9169 | 98 42.6085 46.2012 | 162 84.5085 88.914635 5.5211 7.7916 | 99 42.8757 47.3416 | 163 85.3575 89.840636 6.1828 8.3554 | 100 43.4706 47.3438 | 164 86.3552 90.205237 6.8933 8.9681 | 101 43.9656 47.8023 | 165 87.1299 90.552138 7.5018 9.2767 | 102 44.9182 49.1144 | 166 88.2587 91.802039 7.7328 10.0707 | 103 45.4036 49.3399 | 167 89.0026 92.500340 8.1388 10.5204 | 104 45.5959 50.2699 | 168 89.5906 93.314841 9.0049 10.8916 | 105 46.1506 51.3297 | 169 90.0144 94.434842 9.5772 11.1922 | 106 46.9452 51.6208 | 170 91.0070 94.733643 9.7116 11.6210 | 107 47.7742 51.8409 | 171 92.1758 95.8743For this tutorial NLOHI=16,42
Definition of the impurity
In our example, the correlated subspace is composed of Ru t2g-states. This information is given by:
The DMFT subspace can have several correlated atoms. each correlated atoms is defined with it index in the site file, the orbital caracters of the corraleted orbital (l=2 for d, l=3 for f).
- SITES : index of correlated site (Here Ru which is the atom 3 in site file
- L : orbital momentum of correlated subspace (L=2 for d)
SIDXD indicates which m =[-l .. +l] are taken into account in the impurity self energy. 0 means that the orbital is not selected. index higher than 1 means the orbital is selected. Putting the same index to several orbital means that they are concidered to be equivalent. Since L=2, we can select the d orbital of Ru (xy,yz,z2,xz,x2-y2). We want to select only t2g orbital (xy,yz,xz) and here yz,xz are equivelent.
To included off-diagonal term, SIDXD has to be replaced SIDXM and a (2L+1)x(2L+1) matrix has to be supplied. Here we take into accout xy, yz, xz where yz and xz are equivalent. The order in given by Questaal’s ordering
Double Counting
We will use a static double counting given by the fully localized limit (FLL), with U = 4.5 eV, J = 1 eV, n = 4
Edc = U(n-1/2)-J(n-1)/2 = 14.25 eV
Solver parameters
The CTQMC solver is a Monte Carlo solver. The parameters needed by the solver are given in para_triqs.txt. In this tutorial, we just need one params file. An example is given below :
- U : Effective interation
- J : Hund coupling
- n_warmup_cycles : number of warmup steps at the beginning of the Markov chain to reach an ergodic Markov chain.
- n_cycles : total number of measures
- length_cycle : number of steps between two measures. If this number is too small, the data will be noisy due to correlated sampling. If this number is too large, the calculation will be longer uselessly.
- n_l : number of Legendre coefficients (see [3])
Put the parameters above in a file called para_triqs.txt
Note: The total number of measures is n_cycles. The Monte carlo process is highly parallelazible, adding more cores will decrease the number of measure per core.
First iteration
In general, it is adviced to perform the first iteration and check the quality of the result in order to be sure that the number set in para_triqs.txt are ok.
Create a new folder for the first iteration
In it1, run lmfdmft to create a self energy file sig.inp
this command creates a file sig.inp
there is NOMEGA lines Then the structure of the collun is
where i is the index given in the token SIDXD or SIDXM
Once the file sig.inp is created, run again
It will create the file solver_input.h5 which is a hdf5 file format.
Let try to run the ctqmc solver now.
The calculation takes about 10 minutes. In the plot show below, we run the calculation on 12 cores.
The first thing to check is that the number of Legendre coefficient for the Green function is correct. it has to be high enough so the coefficient goes to zeros. If it is too high, the highest coefficients contain just Monte Carlo noise which pollutes the final result.
A python script to plot it could be :
put this script in a file plot_gl.py and run
You should obtain :
All the coefficients go to 0.
Then, the Green function on the Matsubara axis is deduced from G_l and the self energy is obtained from the Dyson equation.
The self energy is contained in the file sig.inp
A simple python script to plot sig.inp could be :
put this script in a file plot_giw.py and run
You should obtain :
The self energy of the second orbital is noiser than the first one because the second one is the average of yz and xz.
To complete the dmft loop, we need to run again lmfdmft to get a updated hybridisation function and energies of the impurities and then run again the impurity solver to get a new self energy. It has to be repeated until convergence.
DMFT loop
To perform the DMFT loop, we proposed a bash script which could be adapted for your machine. It’s assumed that you have set correctly the ctrl file and the params file
It is adviced to check the convergence by plotting the difference sig.inp in each itX folder. It is also adviced to perform the average over the last iteration.
You can find a converged result in
For the rest of the tutorial, replace your sig.inp by the converge one:
This has been converged using 30 iterations and average on the 10 last interation (with n_cycles=50000000) on a 12 cores machine.
Analyse of the result
Analytic continuation
In this tutorial we use lmfdmft’s built in Pade extrapolator to carry out the analytic continuation.
Note: analytic continuation is a tricky business. Pade works reliably only when the polynomial order is not too large, which means in can operate reliably only over a small energy window. Also the self-energy should be reasonably smooth.
it creates a file sig2.sr2ruo4 containing the self energy in the real axis which has the same format than sig.inp.
Spectral function
In this section, the spectral function
To do so, execute the following command.
Density of States
To obtain the density of states, you can run lmfdmft with the flags –gprt~rdsigr=sig2~mode=18
Note: you can speed up the calculation by using mpi for lmfdmft
It will dump the DOS in the file dos.h5 which can be read using a simple python script
A python script to plot it could be :
A similar script is available in extra/plot_dos.py and can be run using
The plot dos.png can be opened on your laptop. You should obtain something as
Spin susceptibility
The spin susceptibility is obtained from the local vertex :
The DMFT vertex is obtained from the local susceptibility :
impurity susceptibility
The local susceptibility is obtained from the two particle green function :
The two-particles Green function has 1 bosonic frequency, 2 fermionic frequencies and 2 orbital indicies (formally 4 but we do not take into account off-diagonal terms in this tutorial). This quantity is computed by the TRIQS cthyb solver.
The first step is to modify the line with DMFT token on the ctrl file by :
- NOMF=50 : Number of fermionic frequencies to included in the local susceptibility
- NOMB=1 : Number of bosinic frequencies to included in the local susceptibility
The computation of the two particle Green function severaly slows the solver. In this case, it is good to increase length_cycle in the para_triqs file and reduce n_cycles.
For the purpose of this tutorial, the local susceptibility has already be computed on a 240 cores machine with the following para_triqs.txt file :
and run
it takes around 9 hours.
In your folder, do :
The is computed by lmfdmft.
can be computed on the 1 Brillouin zone or in a given q mesh. This q mesh has be given as follow : the first term is the size of the k mesh (should be equal to nkabc in the ctrl file (this option works for nkabc(1)=nkabs(2)=nkabs(3)). then on each line, q is given by :
where Q_1, Q_2, Q_3 are the reciprocal lattice vector and .
In the case of Sr2RuO4 set up we have, Q1=(0.0, 1.0, 0.303848),Q2=(1.0,0.0, 0.303848),Q3=(1.0, 1.0,0.0). (It can be obtained at the beginning of the output of lmchk ctrl.sr2ruo4)
For instance, the following q list describes a q line along for to on 9x9x9 q-mesh.
put the q-list in a file called “qlist” and then run :
Remark: To make and the full BZ, just remove the –qlist flag.
Finally the Bethe Salpeter equation is done by running :
it stores the susceptibility in a h5 format and in a txt file called chi_spin.txt :
You can then plot it with your favorite program.
References
[1] K. Haule, C.H. Yee, and K. Kim. Dynamical mean field theory within the full-potential methods: Electronic structure of ceirin5, cecoin5, and cerhin5. Phys. Rev. B, 81:195107, 2010.
[2] Paolo Pisanti. A novel QSGW+DMFT method for the study of strongly correlated materials. PhD thesis, King’s College London, 2016.
[3] Lewin Boehnke et al. “Orthogonal polynomial representation of imaginary-time Green’s functions”. Physical Review B 84.7 (2011).