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.1.tar.gz (71.8 kB view details)

Uploaded Source

Built Distribution

elphmod-0.1-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

Details for the file elphmod-0.1.tar.gz.

File metadata

  • Download URL: elphmod-0.1.tar.gz
  • Upload date:
  • Size: 71.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f26f1898eaa148f21c71afd11c608626eada904673d2dab6ba427edf5c446e35
MD5 69848a9fe317823c0f40a8c5de032362
BLAKE2b-256 d341bdd8f8182a0a2242831c0d9df7f4ac2dee34e5960027326c9e9e68e46069

See more details on using hashes here.

Provenance

File details

Details for the file elphmod-0.1-py3-none-any.whl.

File metadata

  • Download URL: elphmod-0.1-py3-none-any.whl
  • Upload date:
  • Size: 77.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dedc42d4b77a154e403d5606416ab66e09c677de3b617ba3dcf752324803c32
MD5 55e49ff06a4aba5e732664da840ff5b3
BLAKE2b-256 8d4e8c6ae9289db8f3ab3ae081083c8509d4ec2ac13362010bd50e6afcfd4483

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