Introduction
There is a jungle of DFT tutorials all over the web, and only some of them are good. Only few of them are oriented at DMFT calculations, and even less use w2dynamics. This tutorial is written in the hope of filling this gap, combining a little bit of theory with practical how-tos and input files.
In this tutorial we will compute the DMFT spectral function of NiO, which is a charge transfer insulator. There is a similar tutorial on the triqs documentation which uses VASP + TRIQS. Instead, we will use Quantum ESPRESSO + w2dynamics. Compared to other DFT codes Quantum ESPRESSO has the advantage of being free and open source. Other than that, all DFT codes are essentially equivalent.
The amount of theoretical and practical knowledge needed for this tutorial is large, hence the decision to split it into modules which can be skipped by the uninterested user.
Structure of the tutorial
- Installation (not in detail)
- Density Functional Theory
- Setting up a basic DFT calculation
- Create and visualize the crystal structure using VESTA
- Choose a pseudopotential
- Set up of the input file to compute the ground-state charge density
- Convergence criteria to watch out for: plane wave expansion and Brillouin zone integration
- Structural relaxation using DFT
- Set up of the input file for a DFT structural relaxation
- DFT band structure (with atom projection)
- DFT density of states (with atom projection)
- Wannierization
- Set up of the calculation
- Tips and tricks
- Setting up a basic DFT calculation
- Interfacing
- Fourier transform of the Wannier hamiltonian
- Dynamical Mean Field Theory
- Set up of the input file for w2dynamics
- Analytic continuation of the green's function and self-energy
- Plotting tools
Installation
Quantum ESPRESSO can be installed in two ways, assuming you have superuser privileges. If you don't, it likely means you're using a supercluster, then you'd better bow to the cluster service and ask that they install it for you.
Easy way:
sudo apt-get install quantum-espressoGeneral installation:
- Install the minimum needed libraries:
sudo apt-get install libopenmpi-dev -y
sudo apt-get install libopenblas-dev -y
sudo apt-get install libfftw3-dev -y
sudo apt-get install liblapack-dev -y
sudo apt-get install libscalapack-openmpi-dev -y
sudo apt-get install g++ -y - Download from the download page (7.1 version)
- Unpack with
tar -xvf qe\-ReleasePack.tar
- cd to
qe-7.1
- Run the
./configure
script - Run
sudo make all
- Run
sudo make install
- If problems arise you have to go through the complaints of make to figure out what's wrong. Fortunately Quantum ESPRESSO has many users so you often find someone else who had the same problem.
Density Functional Theory
Setting up a basic DFT calculation
Table of contents