A python package for computing symmetry adapted Wannier functions with irreducible BZ
Project description
symWannier
A collection of codes to construct Wannier functions using crystal symmetry. By using this package, users only need to calculate the wave functions, overlap matrices (Mmn), and projection matrices (Amn) in the irreducible Brillouin zone (IBZ). Mmn and Amn files for the full Brillouin zone, required by the wannier90 package, can be generated using the symmetry information. Users can also use the Python scripts included in this package to construct maximally-localized Wannier functions. There is an option to calculate symmetry-adapted Wannier functions.
Installation
First, please download the scripts:
git clone git@github.com:wannier-utils-dev/symWannier.git
Then, install the package using pyproject.toml. This can be done with pip inside the cloned directory:
pip install .
IBZ calculation using wannier90
Run SCF and NSCF calculations to obtain wave functions in the irreducible Brillouin zone (IBZ).
pw.x < scf.in
pw.x < nscf.in
In the NSCF calculation, k-points should be generated automatically as
K_POINTS {automatic}
8 8 8 0 0 0
Prepare prefix.win and generate prefix.nnkp. You can use the same prefix.win that is used in the original wannier90 calculation.
wannier90.x -pp prefix
Run pw2wannier90.x with irr_bz = .true. to compute prefix.immn, prefix.iamn, prefix.ieig. Symmetry infomation is stored in prefix.isym.
Note: Quantum ESPRESSO version 7.3 or later is required for this step.
pw2wannier90.x < pw2wan.in
Calculate Mmn, Amn and Eig in the full BZ using expand_wannier_inputs.py.
symwannier expand prefix
Run wannier90 as usual.
wannier90.x prefix
There are sample input and script files, in examples/Cu and examples/Fe.
Symmetry adapted Wannier functions
Once prefix.immn, prefix.iamn, prefix.ieig, and prefix.isym are obtained, you can construct Wannier functions as follows.
symwannier wannierize -s prefix
To construct symmetry-adapted Wannier functions, use the "-S" option instead of "-s".
symwannier wannierize -S prefix
Paper
For more information, please see T. Koretsune, Comp. Phys. Comm. 285 108645 (2023).
We hope that you cite this reference when you publish the results using this code.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file symwannier-1.1.0.tar.gz.
File metadata
- Download URL: symwannier-1.1.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6d32206c6f2de640ad7209fd909d9642785a15e264dba4461288d2dfd07cef
|
|
| MD5 |
b6e179f5504dc6d03f7e75428dca8767
|
|
| BLAKE2b-256 |
ac264a64d91297b3fdd33d7270d0ff7551bd2fc6ee9442331223279e6e1be895
|
File details
Details for the file symwannier-1.1.0-py3-none-any.whl.
File metadata
- Download URL: symwannier-1.1.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
359933895178c4fe377d06e4f6ad3582db666d547bbb04c56b969813b15b8d92
|
|
| MD5 |
a379ee89926be8c3b557ee24f2691242
|
|
| BLAKE2b-256 |
b5fb479da643dea5853cd403dfc9a03694926990f418b7a8acdc86a108eb5935
|