how to do simple calculations with quantum espressoti 47.867 ti.pbe-sp-van_ak.upf o 15.999...
TRANSCRIPT
![Page 1: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/1.jpg)
How To Do Simple Calculations
With
Quantum ESPRESSO
Shobhana Narasimhan
Theoretical Sciences Unit
JNCASR, Bangalore
![Page 2: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/2.jpg)
Shobhana Narasimhan, JNCASR
2
I. About The Quantum ESPRESSO Distribution
![Page 3: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/3.jpg)
Quantum ESPRESSO
• www.quantum-espresso.org
Shobhana Narasimhan, JNCASR
3
![Page 4: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/4.jpg)
The Quantum ESPRESSO Software Distribution
Shobhana Narasimhan, JNCASR
4
P. Giannozzi
![Page 5: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/5.jpg)
Why “Quantum ESPRESSO”?!
Shobhana Narasimhan, JNCASR
5
![Page 6: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/6.jpg)
Licence for Quantum ESPRESSO
Shobhana Narasimhan, JNCASR
6
P. Giannozzi
![Page 7: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/7.jpg)
Quantum ESPRESSO: Organization
Shobhana Narasimhan, JNCASR
7
P. Giannozzi
![Page 8: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/8.jpg)
Quantum ESPRESSO as a distribution
Shobhana Narasimhan, JNCASR
8
P. Giannozzi
![Page 9: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/9.jpg)
Quantum ESPRESSO as a distribution
Shobhana Narasimhan, JNCASR
9
OTHER PACKAGES
WANNIER90: Maximally localized Wannier functions
Pwcond: Ballistic conductance
WanT: Coherent Transport from Maximally Localized Wannier Functions
Xspectra: Calculation of x-ray near edge absorption spectra
GIPAW: EPR and NMR Chemical Shifts
Coming Soon:
GWW: GW Band Structure with Ultralocalized Wannier Fns.
TD-DFT: Time-Dependent Density Functional Pert. Theory
![Page 10: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/10.jpg)
What Can Quantum ESPRESSO Do?
Shobhana Narasimhan, JNCASR
10
• Both point and k-point calculations.
• Both insulators and metals, with smearing.
• Any crystal structure or supercell form.
• Norm conserving pseudopotentials, ultrasoft PPs, PAW.
• LDA, GGA, DFT+U, hybrid functionals, exact exchange, meta GGA, van der Waals corrected functionals.
• Spin polarized calculations, non-collinear magnetism, spin-orbit interactions.
• Nudged elastic band to find saddle points.
![Page 11: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/11.jpg)
Shobhana Narasimhan, JNCASR
11
II. Doing a
“Total Energy” Calculation
with the
PWscf Package of QE:
The SCF Loop
![Page 12: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/12.jpg)
Shobhana Narasimhan, JNCASR
12
The Kohn-Sham problem
Want to solve the Kohn-Sham equations:
Note that self-consistent solution necessary, as Hdepends on solution:
Convention:
)()()]([)]([)(2
1 2 rrrrr iiiXCHnuc nVnVV
H
Hrni )(}{
1eme
![Page 13: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/13.jpg)
Shobhana Narasimhan, JNCASR
13
Self-consistent Iterative Solution
Vnuc known/constructed
Initial guess n(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vnuc(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
How to solve the
Kohn-Sham eqns.
for a set of fixed
nuclear (ionic)
positions.
![Page 14: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/14.jpg)
Shobhana Narasimhan, JNCASR
14
Plane Waves & Periodic Systems
• For a periodic system:
• The plane waves that appear in this expansion can
be represented as a grid in k-space:
rGk
G
Gkk r)(
,
1)( iec
where G = reciprocal
lattice vector
kx
ky • Only true for periodic
systems that grid is
discrete.
• In principle, still need
infinite number of
plane waves.
![Page 15: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/15.jpg)
Shobhana Narasimhan, JNCASR
15
Truncating the Plane Wave Expansion
• In practice, the contribution from higher Fourier
components (large |k+G|) is small.
• So truncate the expansion at some value of |k+G|.
• Traditional to express this cut-off in energy units:
cutEm2
|| 22 Gk
kx
E=Ecut
ky
Input parameter ecutwfc
![Page 16: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/16.jpg)
Shobhana Narasimhan, JNCASR
16
Checking Convergence wrt ecutwfc
• Must always check.
• Monotonic (variational).
![Page 17: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/17.jpg)
Step 0:
Defining the (periodic) system
Namelist ‘SYSTEM’
Shobhana Narasimhan, JNCASR
![Page 18: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/18.jpg)
Shobhana Narasimhan, JNCASR
18
How to Specify the System
• All periodic systems can be specified by a Bravais
Lattice and an atomic basis.
+ =
![Page 19: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/19.jpg)
Shobhana Narasimhan, JNCASR
19
How to Specify the Bravais Lattice / Unit Cell
- Gives the type of Bravais
lattice (SC, BCC, Hex, etc.)
Input parameter ibrav
Input parameters {celldm(i)}
- Give the lengths [&
directions, if necessary] of
the lattice vectors a1, a2, a3
• Note that one can choose a non-primitive unit cell
(e.g., 4 atom SC cell for FCC structure).
a1
a2
![Page 20: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/20.jpg)
Shobhana Narasimhan, JNCASR
20
Atoms Within Unit Cell – How many, where?
Input parameter nat
- Initial positions of atoms (may vary when “relax” done).
-Can choose to give in units of lattice vectors (“crystal”)
or in Cartesian units (“alat” or “bohr” or “angstrom”)
- Number of atoms in the unit cell
Input parameter ntyp
- Number of types of atoms
FIELD ATOMIC_POSITIONS
![Page 21: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/21.jpg)
Shobhana Narasimhan, JNCASR
21
What if the system is not periodic?
• Example 1: Want to study
properties of a system with a
surface.
• Presence of surface No
periodicity along z.
x
z
Surface atom
Bulk atom
![Page 22: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/22.jpg)
Shobhana Narasimhan, JNCASR
22
What if the system is not periodic?
• Example 1: Want to study
properties of a system with a
surface.
• Presence of surface No
periodicity along z.
• Use a supercell: artificial
periodicity along z by
repeating slabs separated by
vacuum.
• Have to check convergence
w.r.t. slab thickness & vacuum
thickness. x
z
![Page 23: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/23.jpg)
Shobhana Narasimhan, JNCASR
23
What if the system is not periodic?
• Example 2: Want to study
properties of a nanowire.
• Example 3: Want to study
properties of a cluster
y
z
![Page 24: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/24.jpg)
Shobhana Narasimhan, JNCASR
24
What if the system is not periodic?
• Example 2: Want to study
properties of a nanowire
introduce artificial periodicity
along y & z.
• Example 3: Want to study
properties of a cluster
introduce artificial periodicity
along x, y & z.
y
z
![Page 25: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/25.jpg)
Shobhana Narasimhan, JNCASR
25
What if the system is not periodic?
• Example 4: Want to study a system with a defect,
e.g., a vacancy or impurity:
![Page 26: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/26.jpg)
Shobhana Narasimhan, JNCASR
26
What if the system is not periodic?
• Example 4: Want to study a system with a defect,
e.g., a vacancy or impurity:
![Page 27: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/27.jpg)
Shobhana Narasimhan, JNCASR
27
What if the system is not periodic?
• Example 5: Want to study an amorphous or
quasicrystalline system.
![Page 28: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/28.jpg)
Shobhana Narasimhan, JNCASR
28
What if the system is not periodic?
• Example 5: Want to study an amorphous or
quasicrystalline system: approximate by a periodic
system (with large unit cell).
![Page 29: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/29.jpg)
Shobhana Narasimhan, JNCASR
29
Artificially Periodic Systems Large Unit Cells
• Note: In all these cases, to minimize the effects of
the artificially introduced periodicity, need a large
unit cell.
• Long a1, a2, a3 (primitive lattice vectors)
• Short b1, b2, b3 (primitive reciprocal lattice vectors)
• Many G‟s will fall within Ecut sphere!
![Page 30: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/30.jpg)
Shobhana Narasimhan, JNCASR
30
Step 1: Obtaining Vnuc
Vnuc known/constructed
Initial guess n(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vnuc(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
![Page 31: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/31.jpg)
Shobhana Narasimhan, JNCASR
31
Nuclear Potential
• Electrons experience a Coulomb potential due to the nuclei.
• This has a known and simple form:
• But this leads to computational problems!
r
ZVnuc
![Page 32: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/32.jpg)
Shobhana Narasimhan, JNCASR
32
Problem for Plane-Wave Basis
Core wavefunctions:sharply peaked near nucleus.
High Fourier components present
i.e., need large Ecut
Valence wavefunctions:lots of wiggles near nucleus.
![Page 33: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/33.jpg)
Shobhana Narasimhan, JNCASR
33
Solutions for Plane-Wave Basis
Core wavefunctions:sharply peaked near nucleus.
High Fourier components present
i.e., need large Ecut
Valence wavefunctions:lots of wiggles near nucleus.
Don‟t solve for the core electrons!
Remove wiggles from valence electrons.
![Page 34: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/34.jpg)
Shobhana Narasimhan, JNCASR
34
Pseudopotentials
• Replace nuclear potential by pseudopotential
• This is a numerical trick that solves these problems
• There are different kinds of pseudopotentials
(Norm conserving pseudopotentials, ultrasoft
pseudopotentials, etc.)
• Which kind you use depends on the element.
![Page 35: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/35.jpg)
Shobhana Narasimhan, JNCASR
35
Pseudopotentials for Quantum Espresso - 1
• Go to http://www.quantum-espresso.org; Click on “PSEUDO”
![Page 36: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/36.jpg)
Shobhana Narasimhan, JNCASR
36
Pseudopotentials for Quantum Espresso - 2
• Click on element for which pseudopotential wanted.
![Page 37: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/37.jpg)
Shobhana Narasimhan, JNCASR
37
Pseudopotentials for Quantum-ESPRESSO
Pseudopotential‟s name
gives information about :
• type of exchange-
correlation functional
• type of pseudopotential
• e.g.:
![Page 38: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/38.jpg)
Shobhana Narasimhan, JNCASR
38
Element & Vion for Quantum-ESPRESSO
ATOMIC_SPECIES
Ba 137.327 Ba.pbe-nsp-van.UPF
Ti 47.867 Ti.pbe-sp-van_ak.UPF
O 15.999 O.pbe-van_ak.UPF
• ecutwfc, ecutrho depend on type of pseudopotentials used (should test).
• When using ultrasoft pseudopotentials, set
ecutrho = 8-12 ecutwfc !!
e.g, for calculation on BaTiO3:
![Page 39: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/39.jpg)
Shobhana Narasimhan, JNCASR
39
Element & Vion for Quantum-ESPRESSO
• Should have same exchange-correlation functional for
all pseudopotentials.
input
output
oops!
![Page 40: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/40.jpg)
Shobhana Narasimhan, JNCASR
40
Step 2: Initial Guess for n(r)
Vion known/constructed
Initial guess n(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vion(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
![Page 41: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/41.jpg)
Shobhana Narasimhan, JNCASR
41
Starting Wavefunctions
startingwfc ‘atomic’
‘random’
‘file’
Superposition of atomic orbitals
The closer your starting wavefunction is to the true
wavefunction (which, of course, is something you don‟t
necessarily know to start with!), the fewer the scf iterations
needed.
“The beginning is the most important part of the work” - Plato
![Page 42: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/42.jpg)
Shobhana Narasimhan, JNCASR
42
Steps 3 & 4: Effective Potential
Vion known/constructed
Initial guess n(r) or i(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vnuc(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
Note that type
of exchange-
correlation chosen
while specifying
pseudopotential
![Page 43: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/43.jpg)
Shobhana Narasimhan, JNCASR
43
Exchange-Correlation Potential
• VXC EXC/ n contains all the many-body information.
• Known [numerically, from Quantum Monte Carlo ; various analytical approximations] for homogeneous electron gas.
• Local Density Approximation:
Exc[n] = n(r) VxcHOM[n(r)] dr
-surprisingly successful!
• Generalized Gradient Approximation(s): Include terms involving gradients of n(r)
Replace
pz
pw91, pbe
(in name of pseudopotential)
(in name of pseudopotential)
![Page 44: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/44.jpg)
Shobhana Narasimhan, JNCASR
44
Step 5: Diagonalization
Vion known/constructed
Initial guess n(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vion(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
Expensive!
![Page 45: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/45.jpg)
Shobhana Narasimhan, JNCASR
45
Diagonalization
• Need to diagonalize a matrix of size NPW NPW
• NPW >> Nb = number of bands required = Ne/2 or a little more (for metals).
• OK to obtain lowest few eigenvalues.
• Exact diagonalization is expensive!
• Use iterative diagonalizers that recast diagonalization as a minimization problem.
Input parameter diagonalization
Input parameter nbnd
-which algorithm used for iterative diagonalization
-how many eigenvalues computedfor metals, choose depending on value of degauss
![Page 46: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/46.jpg)
Shobhana Narasimhan, JNCASR
46
Step 6: New Charge Density
Vion known/constructed
Initial guess n(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vion(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
![Page 47: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/47.jpg)
Shobhana Narasimhan, JNCASR
47
0Brillouin Zone Sums
Many quantities (e.g., n, Etot) involve sums over k.
In principle, need infinite number of k‟s.
In practice, sum over a finite number: BZ “Sampling”. Number needed depends on band structure. Typically need more k‟s for metals.
Need to test convergence wrt k-point sampling.
k
F
BZ
wPN
Pk
k
k
k)(1
![Page 48: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/48.jpg)
Shobhana Narasimhan, JNCASR
48
0
nk1, nk2, nk3, k1, k2, k3
K_POINTS { tpiba | automatic | crystal | gamma }
Types of k-point meshes
Special Points: [Chadi & Cohen]Points designed to give quick convergence for particular crystal structures.
Monkhorst-Pack:Equally spaced mesh in reciprocal space.May be centred on origin [„non-shifted‟] or not [„shifted‟]
b1
1st BZb2
If „automatic‟, use M-P mesh:
nk1=nk2=4
shift
![Page 49: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/49.jpg)
Shobhana Narasimhan, JNCASR
49
0
Input parameter nosym
Irreducible Brillouin Zone
IBZ depends on symmetries of system. Can save computational time by using appropriately
weighted k-points from IBZ alone. For „automatic‟ k-points, code will „reduce‟ to IBZ.
May not want to maintain symmetries in relaxation/MD.
b1
b21st BZ
b1
![Page 50: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/50.jpg)
50
Convergence wrt BZ sampling
Note: Differences in energy usually converge faster than
absolute value of total energy because of error cancellation
(if supercells & k-points are identical or commensurate).
Madhura Marathe
Shobhana Narasimhan, JNCASR
![Page 51: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/51.jpg)
51
Problems with Metals
• Recall:
• For metals, at T=0, this corresponds to (for
highest band) an integral over all wave-vectors
contained within the Fermi surface, i.e., for
highest band, sharp discontinuity in k-space
between occupied and unoccupied
states…need many k-points to reproduce this
accurately.
• Also can lead to scf convergence problems
because of band-crossings above/below Fermi
level.
• Solve by “smearing”.
occn BZ
n kdPP 3
3)(
)2(k
Fermi Surface of Cuiramis.cea.fr
Shobhana Narasimhan, JNCASR
![Page 52: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/52.jpg)
52
Smearing in Quantum-ESPRESSO
occupations ‘smearing’
smearing ‘gaussian’
‘methfessel-paxton’
‘marzari-vanderbilt’
‘fermi-dirac’
Instruction: use smearing
Type of
smearing
degauss Smearing width
Methfessel & Paxton, Phys. Rev. B 40, 3616 (1989).
Marzari & Vanderbilt, Phys Rev. Lett. 82, 3296 (1999).
Shobhana Narasimhan, JNCASR
![Page 53: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/53.jpg)
Shobhana Narasimhan, JNCASR
53
Step 7: Check if Convergence Achieved
Vion known/constructed
Initial guess n(r) or i(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vnuc(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
![Page 54: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/54.jpg)
Shobhana Narasimhan, JNCASR
54
Testing for scf convergence
• Compare nth and (n-1)th approximations for density, and see if they are close enough that self-consistency has been achieved.
• Examine squared norm of difference between the charge density in two successive iterations…should be close to zero.
Input parameter conv_thr
![Page 55: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/55.jpg)
Shobhana Narasimhan, JNCASR
55
Step 8: Mixing
Vion known/constructed
Initial guess n(r) or i(r)
Calculate VH[n] & VXC[n]
Veff(r)= Vnuc(r) + VH (r) + VXC (r)
H i(r) = [-1/2 2 + Veff(r)] i(r) = i i(r)
Calculate new n(r) = i| i(r)|2
Self-consistent?
Problem solved! Can now calculate energy, forces, etc.
Generate
new
n(r)
Yes
No
Can take a long
time to reach
self-consistency!
![Page 56: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/56.jpg)
Shobhana Narasimhan, JNCASR
56
Mixing
Iterations n of self-consistent cycle:
Successive approximations to density:
nin(n) nout(n) nin(n+1).
nout(n) fed directly as nin(n+1) ?? No, usually doesn‟t
converge.
Need to mix, take some combination of input and output
densities (may include information from several previous
iterations).
Goal is to achieve self consistency (nout = nin ) in as few
iterations as possible.
![Page 57: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/57.jpg)
Shobhana Narasimhan, JNCASR
57
Mixing in Quantum-ESPRESSO
Input parameter mixing_mode
Input parameter mixing_beta
-How much of new density is used at each step
-Typically use value between 0.1 & 0.7
-Prescription used for mixing.
![Page 58: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/58.jpg)
Shobhana Narasimhan, JNCASR
58
Output Quantities: Total Energy
Perhaps the most
important output
quantity is the TOTAL
ENERGY
Can use, e.g., to
optimize structure
e.g., for a cubic
crystal, where the
structure can be
specified by a single
parameter (side of
cube):
![Page 59: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/59.jpg)
Shobhana Narasimhan, JNCASR
59
III. Forces
&
Geometry
Optimization
![Page 60: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/60.jpg)
Shobhana Narasimhan, JNCASR
60
Forces
Need for geometry optimization and molecular dynamics.
Could get as finite differences of total energy - too
expensive!
Use force (Hellmann-Feynman) theorem:
- Want to calculate the force on ion I:
- Get three terms:
When is an eigenstate,
-Substitute this...
![Page 61: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/61.jpg)
Shobhana Narasimhan, JNCASR
61
Forces (contd.)
• The force is now given by
• Note that we can now calculate the force from a
calculation at ONE configuration alone – huge savings in
time.
• If the basis depends upon ionic positions (not true for
plane waves), would have extra terms = Pulay forces.
• should be exact eigenstate, i.e., scf well-converged!
0
0
Input parameter tprnfor
![Page 62: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/62.jpg)
Shobhana Narasimhan, JNCASR
62
An Outer Loop: Ionic Relaxation
Forces =0?
Move
ions
Structure Optimized!
Inner SCF loop
for electronic
iterations
Outer loop
for ionic
iterations
![Page 63: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/63.jpg)
Shobhana Narasimhan, JNCASR
63
Geometry Optimization With Forces
• Especially useful for optimizing internal degrees of
freedom, surface relaxation, etc.
• Choice of algorithms for ionic relaxation, e.g., steepest
descent, BFGS.
0
calculation = ‘relax’
NAMELIST &IONS
Input parameter ion_dynamics
![Page 64: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/64.jpg)
Shobhana Narasimhan, JNCASR
64
IV. Structure of
PWscf Input Files
![Page 65: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/65.jpg)
Shobhana Narasimhan, JNCASR
65
PWscf input file
For documentation about input parameters for PWscf, read INPUT_PW.html in the Doc subdirectory.
The PWscf input file is structured into NAMELISTS and INPUT_CARDS.
![Page 66: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/66.jpg)
Shobhana Narasimhan, JNCASR
66
PWscf NAMELISTS in Input File
There are three mandatory NAMELISTS:
&CONTROL input variables that control the type of calculation performed and the amount of I/O.
&SYSTEM input variables that specify the system.
&ELECTRONS input variables that control the algorithms used to reach a self-consistent solution of the Kohn-Sham equations.
There are other (optional) namelists...
![Page 67: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/67.jpg)
Shobhana Narasimhan, JNCASR
67
PWscf INPUT_CARDS in Input File
There are three mandatory INPUT_CARDS:
ATOMIC_SPECIES name, mass and pseudopotentialused for each species in system.
ATOMIC_POSITIONS coordinates of each atom in unit cell.
K_POINTS coordinates and weights of the k-points used for BZ sums..
There are other (optional) INPUT_CARDS...
![Page 68: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/68.jpg)
Shobhana Narasimhan, JNCASR
68
0Other Features / Types of Calculations
Spin Polarized Calculations (Magnetism) Density Functional Perturbation Theory (Phonons) Nudged Elastic Band (Barriers) Molecular Dynamics …and much, much more!
It’s not a bird…
It’s not Superman…
It’s a Plane Wave !
![Page 69: How To Do Simple Calculations With Quantum ESPRESSOTi 47.867 Ti.pbe-sp-van_ak.UPF O 15.999 O.pbe-van_ak.UPF •ecutwfc, ecutrhodepend on type of pseudopotentials used (should test)](https://reader033.vdocuments.net/reader033/viewer/2022060917/60aa3d6aa5c7b134543be9f9/html5/thumbnails/69.jpg)
69
The End!
Have fun with Quantum-ESPRESSO!
Shobhana Narasimhan, JNCASR