tutorial-Basic-exercises
tutorial-Basic-exercises
In the following you find some suggestions for exercises, which teach you
various tasks one may perform with WIEN2k.
New WIEN2k users should start with the first basic exercises (1-5),
covering: structure generation, initialization, scf-cycle, bandstructure, DOS,
electron density, structure optimization, supercell generation, spin
polarization
Later on, choose examples of your interest as there are probably more
exercises than you can do here.
Please note, that often “calculational parameters” are set to “minimal cpu-
time” instead of “fully converged calculations”.
Do not use such small values for final results and publications without
convergence checks !!
Exercise 1: Getting started:
i) Open a terminal window (skip points i-iii if done before)
ii) Start w2web
iii) Connect with firefox to w2web as indicated on the screen of ii)
iv) Try the "quick-start" example for TiN (similar to TiC in the UG)
create new session named “TiN”, “create” and “select” the suggested directory.
Generate structure (a=4.235 Ang; reduce RMT by 1%)
view structure with Xcrysden (switch primitive / conventional cell)
utilities: analyse
(:ENE, :DIS, :CTO) graphically
electron density (use xcrysden to select the (100) plane), view it in xcrysden and rhoplot to
“understand contour and 3D-plots”)
valence density (without semicore, check TiN.scf1 to find a EMIN which truncates the Ti-
3s,3p states); compare the density around Ti with TiC (UG)
difference density (observe “charge transfer” and “t2g-anisotropy” around Ti)
densities of the “N-p” and “occupied Ti-d-band” (get the corresponding E-intervals
from DOS-plots (in Ry!) and use these energies in the “x lapw2” step; observe the eg and t2g
asymmetry around Ti and the different N-p “weights”, explain the chemical bonding
Fermi surfaces
open a terminal, change into the TiN directory and issue:
xcrysden --wien_fermisurface .
choose a good k-mesh (eg. 10000 points);
plot the FS for all bands (9, 10,11) which cross EF and compare to band structure
Exercises 2: lattice parameter of TiC
Testing accuracy: RKmax and k-points
Find out how RKmax and k-points lead to smooth/non-smooth curves. Estimate good values and compare
in particular B and BP (Bulkmodulus and its volume derivative). Fully converged results would require
RKmax=8 - 9 , 10000 k and 10 volumes with V=1%.
You may also do this with another XC-potential (eg. PBEsol) and will see a very large effect …
Remember: Depending on the specific property you want to calculate (just a DOS, or Energy-Volume
curves, or EFG, or structure optimization with forces,..) and the desired accuracy, the types of atoms,
insulator/metal and system size you may need different RKmax and k-point samplings:
H: RKmax > 2.5; sp-elements: RKmax > 5; d-elements: RKmax > 6; f-elements: RKmax > 7; (see our faq-page)
1 atom/cell, metal: 1000-10000 k-points or more
1 atom/cell, insulator: 100-1000 k-points or more
For N atoms/cell you can reduce the k-mesh by a factor N
exp.
Exercise 3: optimization of positions in Mg(OH)2
analyze case.scf_mini
16-atom supercell
x supercell (use super.struct, select 2x2x2 and F-cell):
cp super_super.struct super.struct
edit super.struct and mark first Mg atom as “Mg1”
x nn and if :WARNINGs appear do the next line:
cp super.struct_nn super.struct; and repeat the “x nn“ step above
x sgroup and view super.outputsgroup (no errors, but gives you a spacegroup)
how many non-equivalent atoms do you have now ? view the structure with xcrysden. Now you would
be ready to run init_lapw -b …., but we just save it using cp super.struct super_16.struct
Exercise 4: Creation of supercells (cont.)
32, 64 and 128-atom supercells (as above, but with B, P cell or 4x4x4-F)
cp init.struct super.struct
x supercell (use super.struct, …):
cp super_super.struct super.struct
edit super.struct and mark first Mg atom as “Mg1”
x nn and if :WARNINGs appear do the next line:
cp super.struct_nn super.struct; and repeat the “x nn“ step above
x sgroup and view super.outputsgroup (no errors, but gives you a spacegroup)
how many non-equivalent atoms do you have now ? view the structure with xcrysden. Now you would
be ready to run init_lapw -b …., (see eg. lecture on XANES spectroscopy)
save the structures using cp super.struct super_32.struct
compare bandstructure and DOS for large/small volumes (restore_lapw for desired volume; x lapw0
“recreates” potentials, adjust EF in case.insp)
V=-6% V=+6%