Debian Codegraph @

doc/tutorialsexercises/opticalresponse/circular_dichroism/lcao/dzp/gs.py

raw
1 from ase.io import read
2 from gpaw import setup_paths
3 from gpaw import GPAW
4
5 # Insert the path to the created basis set
6 setup_paths.insert(0, '.')
7
8 atoms = read('r-methyloxirane.xyz')
9 atoms.center(vacuum=6.0)
10
11 calc = GPAW(mode='lcao',
12 basis='dzp',
13 h=0.3,
14 xc='PBE',
15 nbands=16,
16 poissonsolver={
17 'name': 'MomentCorrectionPoissonSolver',
18 'poissonsolver': 'fast',
19 'moment_corrections': 1 + 3 + 5},
20 convergence={'density': 1e-12},
21 txt='gs.out')
22 atoms.calc = calc
23 atoms.get_potential_energy()
24 calc.write('gs.gpw', mode='all')