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.

CHAPTER<br />

SEVEN<br />

DOCUMENTATION FOR MODULES IN<br />

<strong>ASE</strong><br />

Quick links:<br />

atom atoms calculators constraints dft<br />

data gui infrared io lattice<br />

md neb optimize parallel phonons<br />

spacegroup structure surface transport thermochemistry<br />

units utils vibrations visualize vtk<br />

See Also:<br />

• Tutorials<br />

• Automatically generated documentation (API)<br />

• Source code<br />

List of all modules:<br />

7.1 The Atoms object<br />

The Atoms object is a collection of atoms. Here is how to define a CO molecule:<br />

from ase import Atoms<br />

d = 1.1<br />

co = Atoms(’CO’, positions=[(0, 0, 0), (0, 0, d)])<br />

Here, the first argument specifies the type of the atoms and we used the positions keywords to specify their<br />

positions. Other possible keywords are: numbers, tags, momenta, masses, magmoms and charges.<br />

Here is how you could make an infinite gold wire with a bond length of 2.9 Å:<br />

from ase import Atoms<br />

d = 2.9<br />

L = 10.0<br />

wire = Atoms(’Au’,<br />

positions=[(0, L / 2, L / 2)],<br />

cell=(d, L, L),<br />

pbc=(1, 0, 0))<br />

53

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

Saved successfully!

Ooh no, something went wrong!