Collection of code for band unfolding
Project description
easyunfold
Documentation: https://smtg-ucl.github.io/easyunfold/
This package is intended for obtaining the effective band structure of a supercell for a certain path of the primitive cell. It was originally based on PyVaspwfc for reading wavefunction output of VASP, and contains some code of the latter. An notable improvement is that breaking symmetry is taken accounted of by sampling additional kpoints and taking average accordingly, which was previously missing. Our goal is to make the unfolding process easier to carry out and less likely to go wrong.
For the methodology, see: https://link.aps.org/doi/10.1103/PhysRevB.85.085201
Installation
Install from pip
The package can be installed from pip
pip install easyunfold
This will also install the dependencies, if they are missing.
After installation, run easyunfold
should give the following output:
Usage: easyunfold [OPTIONS] COMMAND [ARGS]...
Tool for performing band unfolding
Options:
--help Show this message and exit.
Commands:
generate Generate the kpoints for sampling the supercell
unfold Perform unfolding and plotting
Install from source
A recently version of pip
is needed to do this, due to the use of new style pyproject.toml
configuration file.
To upgrade your pip
, do:
pip install -U pip
Assuming the package is in the easyunfold
folder, use the following command to install:
pip install ./easyunfold
Usage
Main goal of this tool is to make the unfolding process easier. To generate a unfolded band structure, one typically needs to perform the following step:
- Create a primitive cell, and generate a k point path for this primitive cell.
- Create a supercell, and obtain its optimised structure.
- Generate a series of kpoints in the supercell to be calculated.
- Perform a band structure calculation using the supercell, and save its wave function.
- Run post-processing to obtain the unfolded band structure.
The supercell usually contains certain defects, or a special quasi random structure. In both cases, its symmetry is lowered when compared to the perfect primitive cell. Hence, for a given kpoint path in the primitive cell, additional kpoints may need to be sampled, and the extracted spectral weights need to be averaged in the end to obtained the effective band structure (EBS).
At the moment, only VASP calculations are supported, although in principle other PW code can be supported easily if the wavefunction can be read in.
Please see the documentation for guide and examples.
Contributors
Code Contributors: Bonan Zhu Sean kavanagh
And those who helped in the development:
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
Hashes for easyunfold-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a35ec8f6d1da5264dcda9e2d4ff5116532a55fc1bc4d5f8e2225bdacb1aefcba |
|
MD5 | 74aa29ec60ec5fcf5d3dcf9445506b00 |
|
BLAKE2b-256 | 07cc63a79856348cdb8d7132dc190da3609d2590122d766c144a3c0c51f2fc3b |