Modules to handle electron-phonon models
Project description
This is a collection of Python modules to handle electron-phonon models:
el
- tight-binding models from Wannier90ph
- mass-spring models from Quantum ESPRESSOelph
- electron-phonon coupling from EPWelel
- Coulomb interaction from VASPMPI
- 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 functionseliashberg
- parameters for McMillan's formulaplot
- BZ plots, color models, and fatbandsmisc
- status bars etc.
Installation
To install the latest version of elphmod in a virtual environment:
python3 -m venv elphmod.venv
source elphmod.venv/bin/activate
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install elphmod
Alternatively, to install the latest development version:
python3 -m pip install git+https://github.com/janberges/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
If you plan to work on elphmod itself, we recommend to download the complete repository and install all requirements (including those of documentation and examples) and a link to the repository in your home directory:
git clone https://github.com/janberges/elphmod
python3 -m pip install --user -r elphmod/requirements.txt
python3 -m pip install --user -e elphmod
Please note that scripts are still copied rather than linked. To circumvent
this, you can alternatively install elphmod by prepending the absolute paths to
elphmod/elphmod
and elphmod/bin
to the environment variables PYTHONPATH
and PATH
, respectively.
Documentation
All functions are documented directly in the source files using NumPy-style docstrings. You can generate an automatic documentation in HTML format using Sphinx:
cd doc
make html
firefox html/index.html
Please also have a look at the examples:
cd examples
mpirun python3 electrons.py
mpirun python3 phonons.py
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) 2021 elphmod Developers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file elphmod-0.2.tar.gz
.
File metadata
- Download URL: elphmod-0.2.tar.gz
- Upload date:
- Size: 74.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a62a5be477f14b18c32cb7e799f7feeebe209729cd8b540d3ad4e1d127564fef |
|
MD5 | e08c6bf5637963d773ad6191a6d6bd90 |
|
BLAKE2b-256 | c7b86e03de2b3875acd3e5379f81d879e5d214d874d56146de3b731c47e7b7e2 |
Provenance
File details
Details for the file elphmod-0.2-py3-none-any.whl
.
File metadata
- Download URL: elphmod-0.2-py3-none-any.whl
- Upload date:
- Size: 82.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a3e74990a1b7383d39229a39b17ddea6646f35223846b4912aca419c8c7342a |
|
MD5 | ed9e555aa4502f370a05b91ed1b34a9d |
|
BLAKE2b-256 | b1430493651125bf085b2311bd94e1b9afe35bd530812faef9c279155e6834eb |