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 />

As the last example, creation of alloy surfaces is also very easily carried out with this module. In this example,<br />

two Pt3Rh fcc(211) surfaces will be created:<br />

a = 4.0<br />

from ase import Atoms<br />

Pt3Rh = Atoms(’Pt3Rh’,<br />

scaled_positions=[(0, 0, 0),<br />

(0.5, 0.5, 0),<br />

(0.5, 0, 0.5),<br />

(0, 0.5, 0.5)],<br />

cell=[a, a, a],<br />

pbc=True)<br />

s3 = surface(Pt3Rh, (2, 1, 1), 9)<br />

s3.center(vacuum=10, axis=2)<br />

Pt3Rh.set_chemical_symbols(’PtRhPt2’)<br />

s4 = surface(Pt3Rh , (2, 1, 1), 9)<br />

s4.center(vacuum=10, axis=2)<br />

92 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!