Debian Codegraph @

doc/tutorialsexercises/opticalresponse/circular_dichroism/lcao/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='aug.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 symmetry={'point_group': False})
23 atoms.calc = calc
24 atoms.get_potential_energy()
25 calc.write('gs.gpw', mode='all')