Attachment 'N2Ru.py'

Download

   1 from ASE import Atom, Slab, Molecule
   2 from ASE.Calculators.PairPotential import PairPotential
   3 from ASE.Filters.Subset import Subset
   4 from ASE.Dynamics.MDMin import MDMin
   5 from ASE.Visualization.RasMol import RasMol
   6 
   7 
   8 a = 2.70
   9 c = 1.59 * a
  10 h = 1.85
  11 d = 1.10
  12 slab = Slab([Atom('Ru', (0, 0, 0)),
  13              Atom('Ru', (1/3., 1/3., -0.5*c), tag=1)])
  14 slab.SetUnitCell([(a, 0, 0),
  15                   (a / 2, 3**0.5 * a / 2, 0),
  16                   (0, 0, 1)])
  17 slab = slab.Repeat((4, 4, 1))
  18 slab.SetCalculator(PairPotential())
  19 e_slab = slab.GetPotentialEnergy()
  20 
  21 molecule = Molecule([Atom('N', (0, 0, h)),
  22                      Atom('N', (0, 0, h + d))])
  23 molecule.SetCalculator(PairPotential())
  24 e_N2 = molecule.GetPotentialEnergy()
  25 
  26 slab.extend(molecule)
  27 
  28 subset = Subset(slab, mask=[a.GetChemicalSymbol() == 'N' for a in slab])
  29 dyn = MDMin(subset, dt=0.08, fmax=0.05)
  30 dyn.Converge()
  31 
  32 print 'Adsorption energy:', e_slab + e_N2 - slab.GetPotentialEnergy()
  33 
  34 from ASE.Filters.Filter import Filter
  35 f = Filter(slab)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-11-17 10:40:35, 14.4 KB) [[attachment:2N.gif]]
  • [get | view] (2005-11-17 10:38:37, 14.6 KB) [[attachment:N2.gif]]
  • [get | view] (2005-11-17 10:37:12, 0.5 KB) [[attachment:N2.py]]
  • [get | view] (2005-11-17 10:41:12, 1.5 KB) [[attachment:N2Ru-Dissociation1.py]]
  • [get | view] (2006-09-27 15:11:52, 1.0 KB) [[attachment:N2Ru-Dissociation2-ANEB.py]]
  • [get | view] (2005-11-17 10:41:40, 0.9 KB) [[attachment:N2Ru-Dissociation2.py]]
  • [get | view] (2005-11-17 10:42:05, 1.0 KB) [[attachment:N2Ru-association.py]]
  • [get | view] (2005-11-17 10:38:04, 1.1 KB) [[attachment:N2Ru-relax.py]]
  • [get | view] (2005-11-17 10:37:43, 1.0 KB) [[attachment:N2Ru.py]]
  • [get | view] (2006-09-05 08:56:57, 30.4 KB) [[attachment:aneb.jpeg]]
  • [get | view] (2006-09-05 08:47:05, 23.2 KB) [[attachment:neb.jpeg]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.