castep-dispersion

CASTEP post processing for plotting bandstructures and phonon dispersions

https://github.com/zachary-hawk/dispersion.py

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

CASTEP post processing for plotting bandstructures and phonon dispersions

Basic Info
  • Host: GitHub
  • Owner: zachary-hawk
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 39.1 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme License Citation

README.md

dispersion.py

CASTEP post processing for plotting bandstructures and phonon dispersions

Installation

This package is installable through pip via GitHub: pip install git+https://github.com/zachary-hawk/dispersion.py.git

General Usage

For basic usage, dispersion.py can be called from the commandline to plot bandstructures: dispersion.py <seed> where <seed> is the CASTEP seed. This will read the <seed>.cell and <seed>.bands files to plot a bandstructure.

If instead a phonon dispersion is required, use the --phonon flag dispersion.py <seed> --phonon Phonon dispersion and bandstructure figures can both be customised using the same flags, e.g.--multi and --fig for multicoloured lines and figure captions respectively.

dispersion.py can also be used to format a SPECTRAL_KPOINT_PATH to be included in your <seed>.cell file. If you do not know which path to use, one can be automatically generated using the crystal symmetry and Atomic Simulation Environment (ASE): dispersion.py <seed> --path or if you have a path in mind, you can specify it using the Brillouin zone labels, e.g.: dispersion.py <seed> --path W G X W L G

Advanced Bandstructure Plotting

Here are some other more advanced options for plotting bandstructures.

Spin Orbit Coupling

It is sometimes required that calculations are performed with and without SOC, and it is often useful to compare these bandstructures, using the --soc flag allows you to overlay another set of bands onto the original. You must have the bands file from a SOC calculation in the same directory, <soc-seed>.bands, and can be plotted by: dispersion.py <seed> --soc <soc-seed> It is important to note that the two calculations must have been performed on the same cell.

Density of States

It is possible to plot a DOS along the righthand side of a bandstructure using the output datafile of an OPTADOS calculation: dispersion.py <seed> --dos <optados file>.dat Multiple DOS can be plotted by providing multiple data files. As above, it is important the DOS and the bandstructure are from the same unit cell as there is no automatic way of checking.

Projected Density of States

dispersion.py is able to read CASTEP <seed>.pdos_bin files that contain the projections of the wavefunction onto the atomic orbitals. This can be used to colour the bands in the bandstructure by their orbital character: dispersion.py <seed> --pdos

Owner

  • Name: Zachary Hawkhead
  • Login: zachary-hawk
  • Kind: user

I am a PhD student at the University of Durham working in theoretical condensed matter physics.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Hawkhead
  given-names: Zachary
orcid: https://orcid.org/0000-0001-6263-5237
title: "dispersion.py: A CASTEP tool for plotting bands tructures and phonon dispersions"
version: 2.0.4
date-released: 2022-5-3
url: https://github.com/zachary-hawk/dispersion.py/

GitHub Events

Total
Last Year

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 10
  • Total Committers: 3
  • Avg Commits per committer: 3.333
  • Development Distribution Score (DDS): 0.4
Top Committers
Name Email Commits
Zachary Hawkhead 4****k@u****m 6
Zachary Hawkhead s****3@c****k 2
Zachary Hawkhead z****d@d****k 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 33 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 16
  • Total maintainers: 1
pypi.org: castep-dispersion

CASTEP utility for plotting band structures and phonon dispersions.

  • Versions: 16
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 33 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 29.8%
Stargazers count: 38.8%
Average: 39.9%
Downloads: 53.5%
Dependent repos count: 67.3%
Maintainers (1)
Last synced: 7 months ago

Dependencies

setup.py pypi
  • argparse *
  • ase >=3.18.1
  • matplotlib *
  • numpy *