Skip to main content

BoltzTraP2

BoltzTraP2 logo TU Wien logo

BoltzTraP2 is a modern implementation of the smoothed Fourier interpolation algorithm for electronic bands that formed the base of the original and widely used BoltzTraP code. One of the most typical uses of BoltzTraP is the calculation of thermoelectric transport coefficients as functions of temperature and chemical potential in the rigid-band picture. However, many other features are available, including 3D plots of Fermi surfaces based on the reconstructed bands. For more information, check out the BoltzTraP2 article.

Prerequisites

BoltzTraP2 is a Python module, with a small performance-critical portion written in C++ and Cython. BoltzTraP2's runtime requirements are Python version 3.5 or higher, and the Python libraries NumPy, SciPy, matplotlib, spglib, NetCDF4 and ASE. All of them can be easily obtained from the Python Package Index (PyPI), using tools such as pip. They may also be bundled with Python distributions aimed at scientists, like Anaconda, and with a number of Linux distributions. If pip is used to install BoltzTraP2, dependencies should be resolved automatically.

If available, BoltzTraP2 will also make use of pyFFTW (for faster Fourier transforms), colorama (to colorize some console output) and VTK (to generate 3D representations). Those packages are not required, but they are recommended to be able to access the full functionality of BoltzTraP2.

Furthermore, compiling BoltzTraP2 from its sources requires a C++ compiler, and the development headers and libraries for Python. Cython is not required for a regular compilation.

Compiling and install BoltzTraP2

The easiest way to get BoltzTraP2 is to run:

$ pip install BoltzTraP2

This should take care of downloading and installing the dependencies as well.

Users installing from source must install the dependencies first and then run:

$ python setup.py install

from the source directory. For finer-grained control, please see the output of these commands:

$ python setup.py --help
$ python setup.py --help-commands
$ python setup.py install --help

The BoltzTraP2 installer supports

$ python setup.py develop

which install the module through a set of symbolic links to the source directory, allowing users to immediately tests the effects of their changes to the code.

Running the tests

BoltzTraP2 comes with a comprehensive set of unit and integration tests of its core functionality. To run those, install pytest (also available through pip), change to the source directory and use the command

$ pytest -v tests

Release files for BoltzTraP2 26.3.1

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

Source distribution (sdist)

Source distribution for BoltzTraP2 26.3.1
File Size Uploaded
boltztrap2-26.3.1.tar.gz 5.0 MB Details

Release files / boltztrap2-26.3.1.tar.gz

Download URL boltztrap2-26.3.1.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
5c41b9b03aced3199bd0d51a8fbcbd73e23661c849cdf022a377df317d16db1d
BLAKE2b-256 checksum
How to use checksums
c44ac488bce34a8486645405c114a1884d9bbb6563f56ff7eed7eee099977ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

26.3.1 This release

1 release file

25.11.1

1 release file

25.3.1

1 release file

25.2.1

1 release file

24.9.4

1 release file

24.9.3

1 release file

24.9.2

1 release file

24.9.1

1 release file

24.7.2

1 release file

24.7.1

1 release file

24.1.1

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