File: bader.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 (20 lines) | stat: -rw-r--r-- 586 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
==============
Bader Analysis
==============

An example of Bader analysis: `The water molecule`_.

.. _The water molecule: https://gpaw.readthedocs.io/tutorialsexercises/
                        wavefunctions/charge/charge.html#bader

You can attach the output charges from the bader program to the atoms
for further processing::

    from ase.io.bader import attach_charges

    # the next two lines are equivalent (only one needed)
    attach_charges(atoms)
    attach_charges(atoms, 'ACF.dat')

    for atom in atoms:
        print('Atom', atom.symbol, 'Bader charge', atom.charge)