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.

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

cellpar [[a, b, c, alpha, beta, gamma]] Cell parameters with angles in degree. Is not used when cell<br />

is given.<br />

Aluminium (fcc)<br />

from ase.lattice.spacegroup import crystal<br />

a = 4.05<br />

al = crystal(’Al’, [(0,0,0)], spacegroup=225, cellpar=[a, a, a, 90, 90, 90])<br />

The spacegroup argument can also be entered with its Hermann-Mauguin symbol, e.g. spacegroup=225 is equivalent<br />

to spacegroup=’F m -3 m’.<br />

Iron (bcc)<br />

from ase.lattice.spacegroup import crystal<br />

a = 2.87<br />

fe = crystal(’Fe’, [(0,0,0)], spacegroup=229, cellpar=[a, a, a, 90, 90, 90])<br />

Magnesium (hcp)<br />

from ase.lattice.spacegroup import crystal<br />

a = 3.21<br />

c = 5.21<br />

mg = crystal(’Mg’, [(1./3., 2./3., 3./4.)], spacegroup=194,<br />

cellpar=[a, a, c, 90, 90, 120])<br />

24 Chapter 6. Tutorials

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

Saved successfully!

Ooh no, something went wrong!