18.11.2012 Views

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In Dacapo, the inialwannier keyword can be a list as described below:<br />

<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />

Setup an initial set of Wannier orbitals. initialwannier can set up a starting guess for the Wannier<br />

functions. This is important to speed up convergence in particular for large systems For transition<br />

elements with d electrons you will always find 5 highly localized d-orbitals centered at the atom.<br />

Placing 5 d-like orbitals with a radius of 0.4 Angstroms and center at atom no. 7, and 3 p-like orbitals<br />

with a radius of 0.4 Angstroms and center at atom no. 27 looks like this:<br />

initialwannier = [[[7],2,0.4],[[27],1,0.4]]<br />

Placing only the l=2, m=-2 and m=-1 orbitals at atom no. 7 looks like this:<br />

initialwannier = [[[7],2,-2,0.4],[[7],2,-1,0.4]]<br />

I.e. if you do not specify the m quantum number all allowed values are used. Instead of placing an<br />

orbital at an atom, you can place it at a specified position. For example the following:<br />

initialwannier = [[[0.5,0.5,0.5],0,0.5]]<br />

places an s orbital with radius 0.5 Angstroms at the position (0.5, 0.5, 0.5) in scaled coordinates of<br />

the unit cell.<br />

Note: For calculations using k-points, make sure that the Γ-point is included in the k-point grid. The Wannier<br />

module does not support k-point reduction by symmetry, so you must use the usesymm=False keyword in the<br />

calc, and shift all k-points by a small amount (but not less than 2e-5 in) in e.g. the x direction, before performing<br />

the calculation. If this is not done the symmetry program will still use time-reversal symmetry to reduce the<br />

number of k-points by a factor 2. The shift can be performed like this:<br />

from ase import *<br />

kpts = monkhorst_pack((15, 9, 9)) + [2e-5, 0, 0]<br />

7.22.3 Density of states<br />

Example:<br />

calc = ...<br />

dos = DOS(calc, width=0.2)<br />

d = dos.get_dos()<br />

e = dos.get_energies()<br />

You can plot the result like this:<br />

import pylab as plt<br />

plt.plot(e, d)<br />

plt.xlabel(’energy [eV]’)<br />

plt.ylabel(’DOS’)<br />

plt.show()<br />

7.22. Density Functional Theory 161

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!