Attachment 'H2O_freeze1.py'

Download

   1 from math import cos, sin, pi
   2 
   3 from ASE import ListOfAtoms, Atom
   4 from Dacapo import Dacapo
   5 
   6 atoms = Dacapo.ReadAtoms('2H2O.nc') # Restart from the old calculation
   7 del atoms[0:3]                      # Delete the first three atoms
   8 calc = atoms.GetCalculator()        # Get a hold on the calculator
   9 calc.SetNumberOfBands(6)            # Reduce the number of bands
  10 calc.SetNetCDFFile('H2Oa.nc')       # Write output to 'H2Oa.nc'
  11 print atoms.GetPotentialEnergy()    # Go!

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-07 13:04:54, 1.0 KB) [[attachment:2H2O.py]]
  • [get | view] (2006-02-07 13:03:11, 1.2 KB) [[attachment:H2O_density_plot.py]]
  • [get | view] (2006-02-07 13:03:40, 23.6 KB) [[attachment:H2O_densplot.jpg]]
  • [get | view] (2006-02-07 13:02:12, 0.5 KB) [[attachment:H2O_freeze1.py]]
  • [get | view] (2006-02-07 13:02:29, 0.5 KB) [[attachment:H2O_freeze2.py]]
  • [get | view] (2006-02-03 14:11:18, 76.6 KB) [[attachment:NMA_densplot.jpg]]
  • [get | view] (2006-02-03 14:10:55, 1.3 KB) [[attachment:diff_density_plot.py]]
  • [get | view] (2006-02-03 14:10:22, 27.3 KB) [[attachment:nma_model.jpg]]
  • [get | view] (2006-02-03 14:09:54, 44.1 KB) [[attachment:peptidechain.jpg]]
  • [get | view] (2006-02-07 12:59:18, 88.2 KB) [[attachment:scheme_anti.jpg]]
  • [get | view] (2006-02-07 12:59:38, 86.6 KB) [[attachment:scheme_par.jpg]]
  • [get | view] (2006-02-07 13:00:02, 28.6 KB) [[attachment:termination.jpg]]
 All files | Selected Files: delete move to page copy to page

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