computations basics
Embed Size (px)
TRANSCRIPT
-
8/7/2019 computations basics
1/56
Computational Material Science
Part II-1: introduction
Horng-Tay Jeng
()
Institute of Physics, Academia Sinica
-
8/7/2019 computations basics
2/56
Outline Introduction of Computational Material Science(CMS)
Density Functional Theory (DFT) and local-density approximation (LDA)
Crystal structure, reciprocal lattice, andBrillouin Zone
Band theory, band structure, k-points sampling,and density of state
Plane wave, pseudopotential, LDA, and LSDA
Transition-metal oxides, strong correlations,and LDA+U method Structure optimization Surface and molecule
-
8/7/2019 computations basics
3/56
Hands-on during the lectures unix or linux: operating systems
VASP (Vienna Ab-initio Simulation
Package): perform first-principles
calculations Xmgrace (or gnuplot): plot the calculated
density of states and band structures
Vaspview: visualize the lattice structure,charge distribution, and spin density
-
8/7/2019 computations basics
4/56
References Local Density Theory of Polarizability, G. D.
Mahan and K. R. Subbaswamy (1990). Handbook of The Band Structure of
Elemental Solids, D. A.
Papaconstantopoulos (1986). Strong Coulomb Correlations in Electronic
Structure Calculations, V. I. Anisimov (2000)
http://cms.mpi.univie.ac.at/vasp/vasp/vasp.html
-
8/7/2019 computations basics
5/56
Review of CMS Theoretical considerations for
electronic structures of atomsand solids
Applications: First-principlesstudy on novel and nano
materials
limitations
-
8/7/2019 computations basics
6/56
Theoretical considerations
(no free parameter to adjust)
-
8/7/2019 computations basics
7/56
Real solids
-
8/7/2019 computations basics
8/56
Adiabatic approximation
-
8/7/2019 computations basics
9/56
Independent-particle approximation:
Hartree-Fock method
-
8/7/2019 computations basics
10/56
Key ideas (approximations) Periodic boundary condition:
# of atom: O(1023) -> O(10~1000)
Density functional theory:j(r) -> n(r)
Plane wave vs atomic orbital
All-electron vs pseudopotential:# of e in an atom:O(10~100) -> O(1~10)
Exchange-correlation (xc) energy:
mimic many-body effects
-
8/7/2019 computations basics
11/56
Applications to versatile materials
Band structure and density of state
-
8/7/2019 computations basics
12/56
Spectroscopy of Cd2Re2O7: Jeng et. al. JPCM 2009
-
8/7/2019 computations basics
13/56
-
8/7/2019 computations basics
14/56
Charge and spin density distribution
Jeng et al PRB (2003)
-
8/7/2019 computations basics
15/56
Magnetocrystalline anisotropyJeng et al PRB (2002)
-
8/7/2019 computations basics
16/56
Spin and orbital magnetic moment
Jeng et al JAP (2002)
-
8/7/2019 computations basics
17/56
Magnetic orbital distributionJeng et al PRL (2004)
-
8/7/2019 computations basics
18/56
Projected density of stateJeng et al PRB (2005)
-
8/7/2019 computations basics
19/56
-
8/7/2019 computations basics
20/56
Charge orbital ordering
Jeng et al PRL (2004) Jeng et al PRL (2006)
-
8/7/2019 computations basics
21/56
-
8/7/2019 computations basics
22/56
Magnetic graphene ribbon: Jeng et. al. PRB 2009
-
8/7/2019 computations basics
23/56
2d-like Fermi surface in Cd2Re2O7: Jeng et. al. JPCM 2009
-
8/7/2019 computations basics
24/56
KNbO3 Perovskite ferroelectric
Ferroelectricity: spatial inversionsymmetry breakingferroelectricity
Multiferroism: magnetisminduced spatial inversionsymmetry breaking
ferroelectricity
TbMn2O5
Electrical polarization: Berry phase
-
8/7/2019 computations basics
25/56
-
8/7/2019 computations basics
26/56
Ground state properties (LDA)
-
8/7/2019 computations basics
27/56
Beyond LDA
-
8/7/2019 computations basics
28/56
LDA+U for transition metal oxide NiO
-
8/7/2019 computations basics
29/56
Jeng et al, PRL (2004), PRB (2006)
LDA+U for low-T magnetite Fe3O4
-
8/7/2019 computations basics
30/56
Band gap problem in
semiconductors: GWA
-
8/7/2019 computations basics
31/56
CMS II-1 Hands-on: Unix, vi,VASP, total energy, and
convergence
Horng-Tay Jeng
(
)
Institute of Physics, Academia Sinica
-
8/7/2019 computations basics
32/56
Login:guest account name
Password:******(abcdef) password
Frequently used command
% pwd show the full path of the current directory
% cd ../Fe change directory
% ls *.flist all files with extension name of .f
% ls -l (long list)
Unix
Change password: %passwd
-
8/7/2019 computations basics
33/56
% ls -a (list hidden files, eg .csrch .login)
% ls - l
-rwxrwxrwx 1 users user 4564 Jun11 20:45 lovedr--r----- 2 users user 547 Jun11 22:50 sub/
-rw-rw-r-- 1 users user 4135 Jun21 11:20 t1
u g o owner group size date
% chmod u+x filename
% chmod 741 filename
rwx1117
rw-1106
r-x1015
r--1004
-wx0113
-w-0102--x0011
---0000
% ls -F (add * at the end of executable files,
add / at the end of directories)
-
8/7/2019 computations basics
34/56
% mkdir dname
% rmdir dname, rm rf dname
% rm filename (delete filename)
% mv filename1 filename2 (change name)
% cp [-i p r ] filename target (copy)i:to make sure
p:keep the original timer:copy directory
% cat filename (>test)
Show the content of filename and put into another file (test)
% more filename, less filename
Show the content of filename page by page
-
8/7/2019 computations basics
35/56
% tail n filename (>>test)
Show the last n lines of filename and put at the end of test
% grep i string filename
Find all lines of filename containing string ignoring upper or lower cases
% find directory name filename print
Find filename in directory and list the full path
% head n filename
Show the first n lines of filename
% grep total energy filename
-
8/7/2019 computations basics
36/56
ls hw? hw2,hw3,hw4
ls hw?? hw11,hw12
ls hw* hw2,hw3,hw4,hw11,hw12
ls hw[2-11] hw2,hw3,hw4,hw11
ls hw{2,12} hw2,hw12
ls test[a-c] testa,testb,testc
?,*,[ ],{ }
alias alias la ls-a ;
alias ch1 cd /usr/john ; ls-l
alias rm rm i;alias hm history | more
unalias Unalias ch1
alias: Show the available alias
-
8/7/2019 computations basics
37/56
x delete a character
-
8/7/2019 computations basics
38/56
x delete a character
dd delete a line
ndd delete n lines
u undo the last commend
p,P paste/string search for string
:q! Quit
:wq save and quit
:w filename save as filename
:set nu show line number:1,$ s/string1/string2/g replace string1 by string2
:n1,n2 w filename write line n1 to n2 into filename
:r filename read from filename
-
8/7/2019 computations basics
39/56
VASPVienna Ab-initioSimulation Package
VASP Home Pagehttp://cms.mpi.univie.ac.at/vasp/
Hands-on tutorial course on VASPhttp://cms.mpi.univie.ac.at/vasp-
workshop/
VASP Manualhttp://cms.mpi.univie.ac.at/vasp/vasp.ht
ml
T t l l l ti
-
8/7/2019 computations basics
40/56
Total energy calculation:
Si(Dia)
Many properties depend on the total energy ofthe system
Equilibrium Lattice constant
Bulk module, Elastic constant Phase transition, surface reconstruction
Bonding, Structure,
The most important point is to make sure yourcalculation is convergent (vs # of kpoints, cutoffenergy, )
-
8/7/2019 computations basics
41/56
Working list Setup bulk calculation for Si(Dia) using
experimental lattice structure as input
Increase the number of k-points (density
of k-mesh) from (4 4 4), (8 8 8), , till thecalculated total energy is convergent
increase the cutoff energy from default
value to 1.2, 1.4, times of default valueto see the convergence of the total energy
-
8/7/2019 computations basics
42/56
Setup bulk calculation for Si(Dia)
Make a working directory for Si%mkdir si
Goto the working directory si%cd si
Prepare the four input files
INCAR: control parametersKPOINTS: BZ integrationPOSCAR: lattice structurePOTCAR: pseudopotential
Run the VASP code%vasp4620s&
-
8/7/2019 computations basics
43/56
INCAR
SYSTEM = Si Diamond
DOS related valuesISMEAR = -5RWIGS = 1.1
KPOINTS
Si Diamond
0Mondhorst-Pack16 16 160 0 0
title
Automatic meshMondhorst-Pack type meshK-point density in BZShift of the mesh
Title
commentTetrahedron methodAtomic radius
-
8/7/2019 computations basics
44/56
POSCAR
Si Diamond
5.430.0 0.5 0.50.5 0.0 0.50.5 0.5 0.0
2Direct0.0 0.0 0.0 ! Si
0.25 0.25 0.25 ! Si
Title
Lattice constant in Aa1 a2 a3b1 b2 b3c1 c2 c3
# of atoms in unit cellUse a, b, c as the basis vectorsAtomic positions (in a,b,c)
Atomic positions (in a,b,c)
Diamond structure
-
8/7/2019 computations basics
45/56
-
8/7/2019 computations basics
46/56
POTCARCopy POTCAR from potpaw Si directory
Ex: POTCAR of W
-
8/7/2019 computations basics
47/56
-
8/7/2019 computations basics
48/56
-
8/7/2019 computations basics
49/56
-
8/7/2019 computations basics
50/56
E0: Total energyCohesive energy: Bulk total energyatomic total energy (spin-polarized)
-
8/7/2019 computations basics
51/56
-
8/7/2019 computations basics
52/56
-
8/7/2019 computations basics
53/56
-
8/7/2019 computations basics
54/56
K-point convergence test
Use (4 4 4) k-mesh density inKPOINTS to calculate the cohesive
energy
Redo (8 8 8) record the cohesive
energies
Redo (12 12 12) till a convergentcohesive energy is obtained
t ff t t
-
8/7/2019 computations basics
55/56
cutoff energy convergence test
Use sufficient k-points KPOINTS to dothe following calculations
Find out the default cutoff energy(ENCUT) in OUTCAR
Set a new line in INCAR to increasecutoff energy by 1.2 times larger andredo the calculation
ENCUT = ??? Set ENCUT 1.4 times larger till
convergent cohesive energy is obtained
-
8/7/2019 computations basics
56/56
Homeworkplease Email to [email protected]
K-point convergence test for Si(Dia)
and C(Dia) using experimental lattice
constant Cutoff energy convergence test for
Si(Dia) and C(Dia) using
experimental lattice constant