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.

print B / kJ * 1.0e24, ’GPa’<br />

eos.plot(’Ag-eos.png’)<br />

A quicker way to do this analysis, is to use the gui tool:<br />

$ ag Ag.traj<br />

And then choose Tools → Bulk modulus.<br />

6.2.7 Dissociation<br />

from ase import Atoms<br />

from ase.calculators.emt import EMT<br />

from ase.constraints import FixAtoms<br />

from ase.optimize import QuasiNewton<br />

from ase.io import write<br />

# Find the initial and final states for the reaction.<br />

# Set up a (3 x 3) two layer slab of Ru:<br />

a = 2.70<br />

c = 1.59 * a<br />

sqrt3 = 3. ** .5<br />

bulk = Atoms(’2Cu’, [(0., 0., 0.), (1./3, 1./3, -0.5*c)],<br />

tags=(1, 1),<br />

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

bulk.set_cell([(a, 0, 0),<br />

(a / 2, sqrt3 * a / 2, 0),<br />

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

slab = bulk.repeat((4, 4, 1))<br />

# Initial state.<br />

# Add the molecule:<br />

x = a / 2.<br />

y = a * 3. ** .5 / 6.<br />

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

6.2. <strong>ASE</strong> 31

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

Saved successfully!

Ooh no, something went wrong!