File: polarizability.py

package info (click to toggle)
python-ase 3.26.0-3
  • 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 (14 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from abc import ABC, abstractmethod


class StaticPolarizabilityCalculator(ABC):
    @abstractmethod
    def __call__(self, atoms, *args, **kwargs):
        """Calculate the polarizability tensor

        atoms: Atoms object

        Returns:
          Polarizabilty tensor (3x3 matrix) in units (e^2 Angstrom^2 / eV)
          Can be multiplied by Bohr * Ha to get (Angstrom^3)
        """