doc/tutorialsexercises/opticalresponse/circular_dichroism/fd/gs.py
raw| 1 | from ase.io import read |
| 2 | from gpaw import GPAW |
| 3 | |
| 4 | atoms = read('r-methyloxirane.xyz') |
| 5 | atoms.center(vacuum=8.0) |
| 6 | |
| 7 | calc = GPAW(mode='fd', |
| 8 | h=0.2, |
| 9 | xc='PBE', |
| 10 | nbands=16, |
| 11 | poissonsolver={ |
| 12 | 'name': 'MomentCorrectionPoissonSolver', |
| 13 | 'poissonsolver': 'fast', |
| 14 | 'moment_corrections': 1 + 3 + 5}, |
| 15 | convergence={'density': 1e-12}, |
| 16 | txt='gs.out', |
| 17 | symmetry={'point_group': False}) |
| 18 | atoms.calc = calc |
| 19 | atoms.get_potential_energy() |
| 20 | calc.write('gs.gpw', mode='all') |