Professional Documents
Culture Documents
PW Tutorial PDF
PW Tutorial PDF
PWscf/FPMD/CP PACKAGE
ecutwfc =15.0,
…
ibrav structure celldm(2)-celldm(6)
0 "free", see above not used
1 cubic P (sc) not used
2 cubic F (fcc) not used
3 cubic I (bcc) not used
4 Hexagonal and Trigonal P celldm(3)=c/a
5 Trigonal R celldm(4)=cos(aalpha)
6 Tetragonal P (st) celldm(3)=c/a
7 Tetragonal I (bct) celldm(3)=c/a
… (see file INPUT_PW in O-sesame/pwdocs/)
Exercise 1: cubic supercell
• Run a self-consistent calculation for bulk Al (al.fcc.in)
run-al.fcc
run-al.fcc is a script containing the input file al.fcc.in
and producing the output file al.fcc.out
• Write down the total energy: it will be used in the following as
reference
• Compare the total energy (file al.sc.out) with the reference one in
file al.fcc.out: do they differ? Why?
ATOMIC_POSITIONS
c’
a’
a
Exercise 2: tetragonal supercell
• Have a look at the script file run-al.tet
• Modify the variables IBRAV and NAT so that to obtain a
tetragonal supercell with 2 atoms
IBRAV=??, celldm(1) =5.3033,
celldm(3) = ??, NAT=??
• Specify the (alat) instruction
ATOMIC_POSITIONS (alat)
• Add the coordinates of the second atom in units of alat
Al ?? ?? ??
ATOMIC_POSITIONS (alat)
c’ Al2
a’
Al1 a
celldm(3)= 1.41421356237 a’=sqrt(2)/2 * a
c’= a
Al 0.0 0.0 0.0 c’/a’= sqrt(2)
Al 0.5 0.5 0.707107
Exercise 2: tetragonal supercell
• Run the self consistent calculation (input= al.tet.in)
run-al.tet
c’ Al2
a’
Al1 a
a’=sqrt(2)/2 * a
Al 0.0 0.0 0.0 c’= a
Al 0.5 0.5 0.5 c’/a’= sqrt(2)
Exercise 3: tetragonal supercells
• Run the self consistent calculation (input= al.tet.in)
run-al.tet2
SOLUTION:
WF and H are sampled on a suitable set of representable k points
in the BZ
K-POINT SAMPLING
The choice of the k-point mesh is system dependent.
Examples:
1. Non-cubic supercells
2. Surfaces
3. Molecules isloated in vacuum
Exercise 4: elongated supercell
• Have a look at the script file
run-al.tet3
• Modify the variables IBRAV, NAT, celldm(3), so that to
double the size of the tetragonal supercell in the z direction (double
the c/a ratio and double the number of atoms).
Exercise 4: elongated supercell
• Run the scf calculation (input=al.tet3.in) and check the total energy
run-al.tet3
WHICH RESULTS?
• Total energy?
• Structural parameters?
• …
Exercise 7: energy-volume
Exercise 7: energy-volume
Calculation of an energy-volume curve for bulk Si
Pseudopotentials
• Where to get the psudopotential files?
• Cc BAD CHOICE
• Linear mixing
&inputpp
outdir=‘$TMP_DIR/'
prefix='ni'
io_choice='both'
Emax=25.0, DeltaE=0.1, smoothing=0.3
/
filplot = 'AlAs-1.0'
sample_bias=-0.0735d0,
stm_wfc_matching=.false.,
plot_num= 5
/
… see O-sesame/pwdocs/INPUT_PP
3D plot
weight(1)=1.0
iflag=3
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
gradient versor
Ionic relaxation
discretization
• How are the atoms relaxing? How much does the interlayer
distances change with respect to the bulk value?
• Modify the input file, relax the structure and find the equilibrium
C-O bond length.
Exercise 14: molecular dinamics
Molecular dynamics for bulk Si