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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Calculations involving moments of a DOS distribution may be facilitated by the use of<br />

get_distribution_moment() method, as in the following example:<br />

from ase.dft import get_distribution_moment<br />

volume = get_distribution_moment(e,d)<br />

center, width = get_distribution_moment(e,d,(1,2))<br />

More details<br />

class ase.dft.dos.DOS(calc, width=0.1, window=None, npts=201)<br />

Electronic Density Of States object.<br />

calc: calculator object Any <strong>ASE</strong> compliant calculator object.<br />

width: float Width of guassian smearing.<br />

window: tuple of two float Use window=(emin, emax). If not specified, a window big enough to<br />

hold all the eigenvalues will be used.<br />

npts: int Number of points.<br />

get_energies()<br />

Return the array of energies used to sample the DOS. The energies are reported relative to the Fermi<br />

level.<br />

get_dos(spin=None)<br />

Get array of DOS values.<br />

The spin argument can be 0 or 1 (spin up or down) - if not specified, the total DOS is returned.<br />

ase.dft.get_distribution_moment(x, y, order=0)<br />

Return the moment of nth order of distribution.<br />

1st and 2nd order moments of a band correspond to the band’s center and width respectively.<br />

For integration, the trapezoid rule is used.<br />

XXX This page needs more work!<br />

162 Chapter 7. Documentation for modules in <strong>ASE</strong>

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

Saved successfully!

Ooh no, something went wrong!