File: modes.rst

package info (click to toggle)
python-ase 3.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,484 kB
  • sloc: python: 148,112; xml: 2,728; makefile: 110; javascript: 47
file content (55 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.. module:: ase.vibrations

Vibrational modes
=================

You can calculate the vibrational modes of an
:class:`~ase.Atoms` object in the harmonic approximation using
the :class:`Vibrations`.

.. autoclass:: Vibrations
   :members:

Example
-------

The example of a water molecule in the EAM potential

.. literalinclude:: H2O_EMT.py

where the output

.. include:: H2O_EMT_summary.txt
   :literal:

shows 3 meaningful vibrations (the last 3
with highest energies.)

These vibrations can be viewed in ``ase gui``
either by writing them out as a "movie"::

  vib.write_mode(-1)

which writes out the file ``vib.8.traj``
The vibrations can also be encoded as forces::

  vib.show_as_force(8)

which opens ``ase gui`` automatically and the forces point
into directions of the movement of the atoms. 


Old calculations
----------------

The output format of vibrational calculations was changed from ``pickle``
to ``json``. There is a tool to convert old ``pickle``-files::

  > python3 -m ase.vibrations.pickle2json mydirectory/vib.*.pckl

Vibrational Data
----------------
Vibrational data is stored inside the :class:`~ase.vibrations.data.VibrationsData` class.

.. autoclass:: VibrationsData
   :members: