Python modules for electron-phonon models
elphmod is a collection of Python modules to handle coupled tight-binding and mass-spring models derived from first principles. It provides interfaces with popular simulation software such as Quantum ESPRESSO, Wannier90, EPW, RESPACK, and i-PI. It helps calculate dispersions, spectra, and response functions and can be used to build and study distorted structures on supercells.
el- tight-binding models from Wannier90ph- mass-spring models from Quantum ESPRESSOelph- electron-phonon coupling from EPWelel- Coulomb interaction from RESPACKMPI- work distribution and shared memorybravais- lattices, symmetries, and interpolationdispersion- diagonalization on paths and meshesdos- 2D tetrahedron methodsdiagrams- susceptibilities, self-energies, etc.occupations- step and delta smearing functionsmd- charge-density-wave dynamics using i-PIeliashberg- parameters for McMillan's formulaplot- BZ plots, fatbands, etc.misc- constants, status bars, parsing, etc.models- nearest-neighbor models for testing
Installation
You can install the latest version of elphmod from PyPI:
python3 -m pip install --upgrade elphmod
Or from the conda-forge channel on Anaconda Cloud:
conda install conda-forge::elphmod
elphmod can optionally be run in parallel via MPI (with shared-memory support). Using APT and pip, you can install the corresponding dependencies as follows:
sudo apt install libopenmpi-dev
python3 -m pip install mpi4py --no-binary=mpi4py
You can also download the complete repository, perform an editable installation, and install the requirements of examples and documentation:
git clone https://codeberg.org/janberges/elphmod
python3 -m pip install -e elphmod
python3 -m pip install -r elphmod/examples/requirements.txt
python3 -m pip install -r elphmod/doc/requirements.txt
Documentation
The documentation can be found at https://io.janberges.de/elphmod.
Please also have a look at the examples directory.
Reference
elphmod is stored on Zenodo: https://doi.org/10.5281/zenodo.5919991.
Licence
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Copyright (C) 2017-2026 elphmod Developers
Release files for elphmod 0.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elphmod-0.36.tar.gz | 134.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elphmod-0.36-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 280.7 kB
Release files / elphmod-0.36.tar.gz
| Download URL | elphmod-0.36.tar.gz |
|---|---|
| Size | 134.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8a29c6378e681449d88839b6d8b41f7b67e661c2e09dd2660a6f2560b68958e
|
|
BLAKE2b-256 checksum How to use checksums |
31101632c51a1b98cf50349f663854e9f7b29ad3e230684239e799d5370470e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / elphmod-0.36-py3-none-any.whl
| Download URL | elphmod-0.36-py3-none-any.whl |
|---|---|
| Size | 146.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc6ef334941f46c6f3b88e773880079cd4d760673158ed91805a272867a481d
|
|
BLAKE2b-256 checksum How to use checksums |
075e3a3d7ef7ff77589de1233d86576c0965989b1423d2b9ff058f0c063a9920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|