File: H2_optical.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 (26 lines) | stat: -rw-r--r-- 632 bytes parent folder | download
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
from gpaw import GPAW, FermiDirac
from gpaw.cluster import Cluster
from gpaw.lrtddft import LrTDDFT

from ase.vibrations.resonant_raman import ResonantRamanCalculator

h = 0.25
atoms = Cluster('relaxed.traj')
atoms.minimal_box(3.5, h=h)

# relax the molecule
calc = GPAW(
    h=h,
    occupations=FermiDirac(width=0.1),
    eigensolver='cg',
    symmetry={'point_group': False},
    nbands=10,
    convergence={'eigenstates': 1.0e-5, 'bands': 4},
)
atoms.calc = calc

# use only the 4 converged states for linear response calculation
rmc = ResonantRamanCalculator(
    atoms, LrTDDFT, exkwargs={'restrict': {'jend': 3}}
)
rmc.run()