Tutorial PWSCF Ex
Tutorial PWSCF Ex
prompt> cd examples_pwscf_ex
prompt> ls
al.g.12 al.m-p.12 al.m-v.12 al.scf.in run_si_eos si.pp_rho.
al.g.16 al.m-p.16 al.m-v.16 bands.in si.etot_vs_ecut si.scf.in
al.g.6 al.m-p.6 al.m-v.6 k-point-path si.etot_vs_nks
al.g.8 al.m-p.8 al.m-v.8 ni.scf.in si.plotrho.in
Self-consistent calculation for Silicon in the diamond structure
Check that these directories exist, have read/write permission and that
pseudo dir contains pseudopotential file Si.vbc.UPF for Silicon
How the crystal structure is defined ?
verify the content of file bands.out and bands.dat, notice the value of
the valence band maximum at Γ and then run plotband.x interactively
prompt> espresso_dir/bin/plotband.x
Band structure calculation for silicon:
prompt> espresso_dir/bin/plotband.x
input file > bands.dat
Reading 8 bands at 36 k-points
Range: -5.6680 16.4950eV Emin, Emax > -6.0 10.0
high-symmetry point: 0.5000 0.5000 0.5000
high-symmetry point: 0.0000 0.0000 0.0000
high-symmetry point: 0.0000 0.0000 1.0000
high-symmetry point: 0.0000 1.0000 1.0000
high-symmetry point: 0.0000 0.0000 0.0000
output file (xmgr) > si.bands.xmgr
bands in xmgr format written to file si.bands.xmgr
output file (ps) > si.bands.ps
Efermi > 6.337
deltaE, reference E (for tics) 1.0, 6.337
bands in PostScript format written to file si.bands.ps
Band structure calculation for silicon:
Edit file si.pp rho.in to properly define outdir and then run the
postprocessing code (pp.x) to extract the charge density (plotnum=0)
Clean outdir;
Run pw.x again and again and complete the data in si etot vs ecut ;
Plot the data in si etot vs ecut and notice the monotonic convergence.
-15.7
-15.72
-15.74
-15.76
-15.78
-15.8
-15.82
-15.84
-15.86
5 10 15 20 25 30 35 40
Convergence w.r.t. k-points:
Clean outdir;
-15.796
-15.798
-15.8
-15.802
-15.804
-15.806
-15.808
2 3 4 5 6 7 8
A metallic example: Aluminum
Clean outdir;
Run pw.x
prompt> espresso_dir/bin/pw.x < al.scf.in > al.scf.out
Plot the content of al.g.6, al.g.8, al.g.12, al.g.16, and similarly for m-v
and m-p
-4.185
-4.186
-4.187
-4.188
-4.189
-4.19
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16
-4.182
"al.g.16"
"al.g.12"
-4.183 "al.g.8"
"al.g.6"
"al.m-v.16"
-4.184 "al.m-v.12"
"al.m-v.8"
-4.185 "al.m-v.6"
-4.186
-4.187
-4.188
-4.189
-4.19
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16
-4.182
"al.g.16"
"al.g.12"
-4.183 "al.g.8"
"al.g.6"
"al.m-v.16"
-4.184 "al.m-v.12"
"al.m-v.8"
-4.185 "al.m-v.6"
"al.m-p.16"
"al.m-p.12"
-4.186 "al.m-p.8"
"al.m-p.6"
-4.187
-4.188
-4.189
-4.19
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16
A magnetic example: Nickel
Clean outdir;
Run pw.x
prompt> espresso_dir/bin/pw.x < ni.scf.in > ni.scf.out
Notice different number of calls and timing of cft3 and cft3s routines.
Why it is convenient to introduce a different cutoff for wfcs and rho ?
Equation of State: Silicon
edit run si eos and define variables espresso dir, pseudo dir and outdir.
prompt> sh run_si_eos
Notice how file si.etot vs alat is created at the end of script file
-15.836
-15.838
-15.84
-15.842
-15.844
-15.846
-15.848
9.8 9.9 10 10.1 10.2 10.3 10.4 10.5 10.6 10.7
HOMEWORK
Verify that Energy vs alat curves are shifted down rather uniformly with
increasing cutoff and are not strongly dependend on k-points.