Attachment 'Al111.py'

Download

   1 from Dacapo import Dacapo
   2 from Build import FCC111
   3 
   4 a = 4.05
   5 def Energy(N):
   6     fcc = FCC111('Al', a, N, 20.0)
   7     calc = Dacapo(nbands=N * 5,
   8                   kpts=(6, 6, 1),
   9                   planewavecutoff=150,
  10                   densitycutoff=400)
  11     fcc.SetCalculator(calc)
  12     return fcc.GetPotentialEnergy()
  13 
  14 f = file('e6x6.dat', 'w')
  15 for N in range(3, 7):
  16     e = Energy(N)
  17     print >> f, N, e

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] (2006-02-02 11:56:04, 0.4 KB) [[attachment:Al111.py]]
  • [get | view] (2006-02-02 11:49:39, 1.2 KB) [[attachment:Build.py]]
  • [get | view] (2006-02-02 11:56:26, 1.0 KB) [[attachment:Relax.py]]
  • [get | view] (2006-02-13 15:20:54, 0.4 KB) [[attachment:atomplot.py]]
  • [get | view] (2006-02-13 15:23:50, 1.0 KB) [[attachment:densitydiff.py]]
  • [get | view] (2006-02-01 14:17:35, 5.5 KB) [[attachment:fcc.gif]]
  • [get | view] (2006-02-01 14:17:56, 5.7 KB) [[attachment:fcc111.gif]]
  • [get | view] (2006-02-21 14:56:31, 0.3 KB) [[attachment:vmd_input.py]]
 All files | Selected Files: delete move to page copy to page

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