anaddb_irreps: use phonopy to find the irreducible representations of the phonon modes from anaddb output. It is a simple wrapper of the Phonopy irreps module.
Project description
anaddb_irreps
A simple wrapper of the phonopy irreps module for finding irreduciple representations of the phonon modes in anaddb output.
Installation
Install from PyPI:
pip install anaddb_irreps
Or from source:
pip install .
Usage (Python API):
-
Step 1:
Run anaddb to get the phbst file with phonon frequencies and eigen vectors inside. See for example in the examples/MoS2_1T/anaddb_input directory.
-
Step 2:
Make a python script with the content similar to below and run it.
from anaddb_irreps import IrRepsAnaddb
def show_phbst_irreps():
irr = IrRepsAnaddb(
phbst_fname="run_PHBST.nc",
ind_q=0,
symprec=1e-5,
degeneracy_tolerance=1e-4)
irr.run()
irr._show(True)
show_phbst_irreps()
The parameters in the functions:
-
phbst_fname: name of phbst file. -
ind_q: index of the q point in the phbst. -
is_little_cogroup: -
symprec: precision for deciding the symmetry of the atomic structure. -
degeneracy_tolenrance: the tolerance of frequency difference in deciding the degeneracy. -
log_level: how much information is in the output.
Usage (CLI):
You can use the anaddb-irreps command-line tool as a lightweight
alternative to writing a Python script.
Basic example (equivalent to the Python example above):
anaddb-irreps \
--phbst run_PHBST.nc \
--q-index 0 \
--symprec 1e-5 \
--degeneracy-tolerance 1e-4
Options:
-p,--phbst(required): Path to PHBST NetCDF file (e.g.run_PHBST.nc).-q,--q-index(required): Index of the q-point in the PHBST file (0-based).-s,--symprec: Symmetry precision passed to phonopy (default:1e-5).-d,--degeneracy-tolerance: Frequency tolerance for degeneracy detection (default:1e-4).-l,--is-little-cogroup: Use little co-group setting.-v,--log-level: Verbosity level passed through toIrRepsAnaddb(default:0).
The CLI prints the same irreps information as the Python API example.
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
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 anaddb_irreps-0.1.2.tar.gz.
File metadata
- Download URL: anaddb_irreps-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1308c00c72b59e6bcb7b4db30beb84a51a248b0150a50e49eeaa6461bb0e9e7
|
|
| MD5 |
599fb71ed0e3d4f038388be3fe66ca01
|
|
| BLAKE2b-256 |
3aec36cf5195d11b5cf5fb60069740abdb2f5c7dbe45b164d5c39f29e9791311
|
File details
Details for the file anaddb_irreps-0.1.2-py3-none-any.whl.
File metadata
- Download URL: anaddb_irreps-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2bd36a2046ea2b8a76fc8f7a812f09fd0331a8986a851bfef7573c82258434a
|
|
| MD5 |
6f88cf3b4feabcd3dfb22cc46560c4a5
|
|
| BLAKE2b-256 |
43a0df3c67125daa83b2dab9cb0e1b42e0be20648e8458533e9058cfc775212f
|