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.

get_monkhorst_pack_size_and_offset([[0, 0, 0]])<br />

(array([1, 1, 1]), array([ 0., 0., 0.]))<br />

Chadi-Cohen<br />

Predefined sets of k-points:<br />

dft.kpoints.cc6_1x1<br />

dft.kpoints.cc12_2x3<br />

dft.kpoints.cc18_sq3xsq3<br />

dft.kpoints.cc18_1x1<br />

dft.kpoints.cc54_sq3xsq3<br />

dft.kpoints.cc54_1x1<br />

dft.kpoints.cc162_sq3xsq3<br />

dft.kpoints.cc162_1x1<br />

Naming convention: cc18_sq3xsq3 is 18 k-points for a sq(3)xsq(3) cell.<br />

Try this:<br />

>>> import numpy as np<br />

>>> import pylab as plt<br />

>>> from ase.dft.kpoints import cc162_1x1<br />

>>> B = [(1, 0, 0), (-0.5, 3**0.5 / 2, 0), (0, 0, 1)]<br />

>>> k = np.dot(cc162_1x1, B)<br />

>>> plt.plot(k[:, 0], k[:, 1], ’o’)<br />

[]<br />

>>> p.show()<br />

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

7.22. Density Functional Theory 157

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

Saved successfully!

Ooh no, something went wrong!