Skip to main content

GPAW: DFT and beyond within the projector-augmented wave method

Project description

https://badge.fury.io/py/gpaw.svg

GPAW

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE). It uses plane-waves, atom-centered basis-functions or real-space uniform grids combined with multigrid methods.

Webpage: https://gpaw.readthedocs.io/

Requirements

Optional (highly recommended for increased performance):

See Release notes for version requirements.

Installation

Create a virtual environment, activate it, install:

$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install gpaw

For more details, please see:

https://gpaw.readthedocs.io/install.html

Test your installation

You can do a test calculation with:

$ gpaw test

Contact

Please send us bug-reports, patches, code, ideas and questions.

Example

Geometry optimization of hydrogen molecule:

>>> from ase import Atoms
>>> from ase.optimize import BFGS
>>> from ase.io import write
>>> from gpaw import GPAW, PW
>>> h2 = Atoms('H2',
...            positions=[[0, 0, 0],
...                       [0, 0, 0.7]])
>>> h2.center(vacuum=2.5)
>>> h2.calc = GPAW(xc='PBE',
...                mode=PW(300),
...                txt='h2.txt')
>>> opt = BFGS(h2, trajectory='h2.traj')
>>> opt.run(fmax=0.02)
BFGS:   0  09:08:09       -6.566505       2.2970
BFGS:   1  09:08:11       -6.629859       0.1871
BFGS:   2  09:08:12       -6.630410       0.0350
BFGS:   3  09:08:13       -6.630429       0.0003
>>> write('H2.xyz', h2)
>>> h2.get_potential_energy()  # ASE's units are eV and Å
-6.6304292169392784

Getting started

Once you have familiarized yourself with ASE and NumPy, you should take a look at the GPAW exercises and tutorials.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpaw-25.1.0.tar.gz (2.0 MB view details)

Uploaded Source

File details

Details for the file gpaw-25.1.0.tar.gz.

File metadata

  • Download URL: gpaw-25.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for gpaw-25.1.0.tar.gz
Algorithm Hash digest
SHA256 80236e779784df3317e7da395dc59ea403bc0213bb3a68d02c17957162e972ea
MD5 4d64a69090d1f2b83685d084c3a061ed
BLAKE2b-256 2fd8b93adc173514823d4c2c4756eb4be77bcd009604dfbbabc8b7d0ce420f55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page