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

>>> from ase import Atoms<br />

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

>>> from ase.optimize import BFGS<br />

>>> from ase.vibrations import Vibrations<br />

>>> n2 = Atoms(’N2’, [(0, 0, 0), (0, 0, 1.1)],<br />

... calculator=EMT())<br />

>>> BFGS(n2).run(fmax=0.01)<br />

BFGS: 0 16:01:21 0.440339 3.2518<br />

BFGS: 1 16:01:21 0.271928 0.8211<br />

BFGS: 2 16:01:21 0.263278 0.1994<br />

BFGS: 3 16:01:21 0.262777 0.0088<br />

>>> vib = Vibrations(n2)<br />

>>> vib.run()<br />

Writing vib.eq.pckl<br />

Writing vib.0x-.pckl<br />

Writing vib.0x+.pckl<br />

Writing vib.0y-.pckl<br />

Writing vib.0y+.pckl<br />

Writing vib.0z-.pckl<br />

Writing vib.0z+.pckl<br />

Writing vib.1x-.pckl<br />

Writing vib.1x+.pckl<br />

Writing vib.1y-.pckl<br />

Writing vib.1y+.pckl<br />

Writing vib.1z-.pckl<br />

Writing vib.1z+.pckl<br />

>>> vib.summary()<br />

---------------------<br />

# meV cm^-1<br />

---------------------<br />

0 0.0 0.0<br />

1 0.0 0.0<br />

2 0.0 0.0<br />

3 2.5 20.4<br />

4 2.5 20.4<br />

5 152.6 1230.8<br />

---------------------<br />

Zero-point energy: 0.079 eV<br />

>>> vib.write_mode(-1) # write last mode to trajectory file<br />

get_energies(method=’standard’, direction=’central’)<br />

Get vibration energies in eV.<br />

get_frequencies(method=’standard’, direction=’central’)<br />

Get vibration frequencies in cm^-1.<br />

run()<br />

Run the vibration calculations.<br />

This will calculate the forces for 6 displacements per atom +/-x, +/-y, +/-z. Only those calculations<br />

that are not already done will be started. Be aware that an interrupted calculation may produce an<br />

empty file (ending with .pckl), which must be deleted before restarting the job. Otherwise the forces<br />

will not be calculated for that displacement.<br />

Note that the calculations for the different displacements can be done simultaneously by several independent<br />

processes. This feature relies on the existence of files and the subsequent creation of the file<br />

in case it is not found.<br />

summary(method=’standard’, direction=’central’, freq=None, log=)<br />

Print a summary of the vibrational frequencies.<br />

Parameters:<br />

method [string] Can be ‘standard’(default) or ‘Frederiksen’.<br />

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