File: bulk_part1_groundstate.py

package info (click to toggle)
python-ase 3.26.0-2
  • 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 (11 lines) | stat: -rw-r--r-- 240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from gpaw import GPAW, PW

from ase.build import bulk

atoms = bulk('Ag')
calc = GPAW(
    mode=PW(350), kpts=[8, 8, 8], txt='gpaw.bulk.Ag.txt', setups={'Ag': '11'}
)
atoms.calc = calc
atoms.get_potential_energy()
calc.write('bulk.Ag.gpw')