Skip to main content
https://badge.fury.io/py/gpaw.svg https://gpaw.gitlab.io/gpaw/coverage.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.

Metadata

Release files for gpaw 26.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpaw 26.7.0
File Size Uploaded
gpaw-26.7.0.tar.gz 2.7 MB Details

Release files / gpaw-26.7.0.tar.gz

Download URL gpaw-26.7.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
1509af00cfcd032bbbce197a5b3e37edb82bf458db5e200f6a105ec74efbca15
BLAKE2b-256 checksum
How to use checksums
30f5f2e3edb90e0d09b2f8d3da77eb356994ed9ef217903de368697c34048ec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

26.7.0 This release

1 release file

25.7.0

1 release file

25.1.0

1 release file

24.6.0

1 release file

24.1.0

1 release file

23.9.1

1 release file

23.9.0

1 release file

23.6.1

1 release file

23.6.0

1 release file

22.8.0

1 release file

22.1.0

1 release file

21.6.0

1 release file

21.1.0

1 release file

20.10.0

1 release file

20.1.0

1 release file

19.8.1

1 release file

19.8.0

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page