Quantum ESPRESSO course for
solid-state physics
6. Hands-on tutorials of QE IV: Input generator
Nguyen Tuan Hung
Department of Materials Science and Engineering
National Taiwan University
https://nguyen-group.github.io/
Contents
 Band structure and phonon for a new material
- How to make vc-relax from a CIF file
- Energy band structure
- Phonon calculation
Ref: GitHub for input files
2
https://github.com/nguyen-group/QE-SSP/
QE-SSP/cif2vc-relax cif_file
vc-relax
pseudo
SSSP_1.3.0_PBE_efficiency.json
3
cif2vc-relax-2D.ipynb
cif2vc-relax-2D.py
cif2vc-relax-3D.ipynb
cif2vc-relax-2D.py
README.tex
(1) Preparing files
4
Clone from GitHub:
$ git clone https://github.com/nguyen-group/QE-SSP.git
Download from: https://github.com/nguyen-group/QE-SSP/blob/master/cif2vc-relax.zip (only for this class)
For Python:
$ pip install ase
$ pip install cif2cell
(1) Find your cif file
5
Some database that you can file any materials
(1) https://www.materialscloud.org/discover/mc2d/
6
(1) https://www.materialscloud.org/discover/mc2d/
7
(1) Run for convert CIF to vc-relax.in
8
$ cd QE-SSP/cif2vc-relax
$ python3 cif2vc-relax-2D.py
$ vi vc-relax/vc-relax.in
???
???
(1) Rule to select ecutwfc and ecutrho
9
$ vi SSSP_1.3.0_PBE_efficiency.json
(1) Rule to select k-point
10
$ vi cif2vc-relax-2D.py
0.3 1/Å
(1) Make sure to have correct files on pseudo
11
https://www.materialscloud.org/discover/sssp/table/efficiency
(1) Run vc-relax.in
12
$ cd vc-relax
$ ./run.sh &
$ tail vc-relax.out
(2) Make input files for band structure
13
$ cd ../
$ mkdir bands
$ cd bands
$ cp ../../gr/bands/run.sh ./
We need to make scf.in, nscf.in and
bands.in based on vc-relax.out
(2) Making scf.in
14
vc-relax.in
‘scf’
Need to update from vc-relax.out
vc-relax.out
(2) Making scf.in
15
(2) Making nscf.in
16
nbnd = 20
‘bands’
vc-relax.out
nbnd should be >= Kohn-Sham states
How to find the k points for bands???
(2) Making nscf.in
17
nbnd = 20
‘bands’
vc-relax.out
nbnd should be >=
Kohn-Sham states
How to find the k points for bands???
(2) Making nscf.in
18
https://www.materialscloud.org/work/tools/seekpath
(2) Making nscf.in
19
https://www.materialscloud.org/work/tools/seekpath
(2) Making nscf.in
20
(2) Making bands.in
21
It needs to be the same with scf.in and nscf.in
$ ./run.sh &
(2) Plotting band structure
22
$ cp ../../gr/bands/plot-bands.ipynb
$ jupyter-lab plot-bands.ipynb
(2) Plotting band structure
23
https://www.materialscloud.org/discover/mc2d/details/VSe2
The band structure of WSe2 has a spin up and
spin down, but our calculation is without spin.
 Do you want to do this homework??
(3) Phonon dispersion
24
$ cd ../
$ mkdir phonon
$ cd phonon
$ cp ../../gr/phonon/run.sh ./
We need to make scf.in, ph.in,
q2r.in and matdyn.in
(3) Making scf.in
25
$ cp ../bands/scf.in ./
To avoid soft phonon in 2D materials
(3) Making ph.in, q2r.in, matdyn.in
26
same
with
scf.in
ph.in q2r.in
Correction for long-range
interaction (only QE >= v.7.2)
matdyn.in
Correction for long-
range interaction
same with nscf.in
$ ./run.sh &
$ tail ph.out
27
https://qeinputgenerator.materialscloud.io/
Take-home message
Create input files
using web-based tool!
QE-SSP - Lecture 6: Hands-on tutorials of QE IV: Input generator

QE-SSP - Lecture 6: Hands-on tutorials of QE IV: Input generator