Skip to main content

Modules to handle electron-phonon models

Project description

elphmod logo

This is a collection of Python modules to handle electron-phonon models:

  • el - tight-binding models from Wannier90
  • ph - mass-spring models from Quantum ESPRESSO
  • elph - electron-phonon coupling from EPW
  • elel - Coulomb interaction from VASP
  • MPI - work distribution and shared memory
  • bravais - lattices, symmetries, and interpolation
  • dispersion - diagonalization on paths and meshes
  • dos - 2D tetrahedron methods
  • diagrams - susceptibilities, self-energies, etc.
  • occupations - step and delta smearing functions
  • eliashberg - parameters for McMillan's formula
  • plot - BZ plots, color models, and fatbands
  • misc - 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


Download files

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

Source Distribution

elphmod-0.2.tar.gz (74.9 kB view details)

Uploaded Source

Built Distribution

elphmod-0.2-py3-none-any.whl (82.9 kB view details)

Uploaded Python 3

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

Hashes for elphmod-0.2.tar.gz
Algorithm Hash digest
SHA256 a62a5be477f14b18c32cb7e799f7feeebe209729cd8b540d3ad4e1d127564fef
MD5 e08c6bf5637963d773ad6191a6d6bd90
BLAKE2b-256 c7b86e03de2b3875acd3e5379f81d879e5d214d874d56146de3b731c47e7b7e2

See more details on using hashes here.

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

Hashes for elphmod-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3e74990a1b7383d39229a39b17ddea6646f35223846b4912aca419c8c7342a
MD5 ed9e555aa4502f370a05b91ed1b34a9d
BLAKE2b-256 b1430493651125bf085b2311bd94e1b9afe35bd530812faef9c279155e6834eb

See more details on using hashes here.

Provenance

Supported by

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