Package for spin-dependent d-band center app
Project description
Spin Dependent d-band Center
A simple Python/Tkinter GUI to compute spin-resolved and effective d-band centers directly from a VASP DOSCAR (ISPIN=2, LORBIT=11).
Features
- Load a
DOSCAR(ISPIN=2, LORBIT=11). - Select atom range (1-based, inclusive).
- Compute:
- Spin-up d-band center ($\varepsilon_{d\uparrow}$)
- Spin-down d-band center ($\varepsilon_{d\downarrow}$)
- Effective d-band center ($\varepsilon_{\mathrm{eff}}$)
- Hammer–Nørskov d-band center, $\varepsilon_{\mathrm{HN}}$
- Fractional occupations $f_\uparrow$, $f_\downarrow$
Equations
Let energies be aligned such that (E_F = 0), i.e., we use (E - E_F) internally.
- Spin-resolved d-band centers (integrated over the full energy grid):
$$ \varepsilon_{d\sigma} = \frac{\int_{-\infty}^{+\infty} E D_{d\sigma}(E - E_F) dE} {\int_{-\infty}^{+\infty} D_{d\sigma}(E - E_F) dE} $$
- Fractional occupations (integrated up to the Fermi level):
$$ f_\sigma = \frac{1}{N_{\text{atoms}}\times 5} \int_{-\infty}^{E_F} D_{d\sigma}(E) dE \quad (E_F = 0) $$
- Effective d-band center (Bhattacharjee, S., Waghmare, U. & Lee, SC. An improved d-band model of the catalytic activity of magnetic transition metal surfaces. Sci Rep 6, 35916 (2016). https://doi.org/10.1038/srep35916):
$$ \varepsilon_{\mathrm{eff}} = \frac{f_\uparrow\varepsilon_{d\uparrow} + f_\downarrow \varepsilon_{d\downarrow}} {f_\uparrow + f_\downarrow}-(\varepsilon_{d\downarrow} - \varepsilon_{d\uparrow}) \frac{f_\uparrow - f_\downarrow}{f_\uparrow + f_\downarrow} $$
- Hammer–Nørskov d-band center (spin-summed, full energy range):
$$ \varepsilon_{\mathrm{HN}} = \frac{\int E \big(D_{d\uparrow}(E)+D_{d\downarrow}(E)\big) dE} {\int \big(D_{d\uparrow}(E)+D_{d\downarrow}(E)\big) dE} $$
Optionally, the reduced fractional occupation is
$$ \mu = \frac{f_\uparrow - f_\downarrow}{f_\uparrow + f_\downarrow}. $$
Installation
- Python 3.8+ (standard library only).
- Tkinter must be available (usually bundled with Python). On Debian/Ubuntu:
sudo apt-get install python3-tk
Usage
python3 d-band.py
- Click “Browse…” and select your
DOSCAR(generated withISPIN=2,LORBIT=11). - Enter the atom range (e.g.,
17to24). - Click “Compute”.
- Once executed the window will look like the following:
Notes
- The app shifts energies so that (E_F=0). Integrals for (f_\sigma) run from the grid minimum to 0; centers use the full grid range.
- The code aggregates the five d-orbitals (dxy, dyz, dz2, dxz, dx2) for each spin channel.
- Results shown in eV.
Credits
Created by Satadeep Bhattacharjee, IKST, Bangalore
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 spin_dependent_d_band_center-1.0.3.tar.gz.
File metadata
- Download URL: spin_dependent_d_band_center-1.0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0020d593d2ce8ea293e3d3fa18cc1e135930c549cc3135bb0269893be12c726a
|
|
| MD5 |
f1f7e74c31f369606fc52b943d5112a7
|
|
| BLAKE2b-256 |
c56fea5f55584a2541143cdad709b05da4b8d94f7302aef97de2fd60d1d1e00c
|
Provenance
The following attestation bundles were made for spin_dependent_d_band_center-1.0.3.tar.gz:
Publisher:
publish.yml on sata-deep/Spin-dependent-d-band-center-App
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spin_dependent_d_band_center-1.0.3.tar.gz -
Subject digest:
0020d593d2ce8ea293e3d3fa18cc1e135930c549cc3135bb0269893be12c726a - Sigstore transparency entry: 412168362
- Sigstore integration time:
-
Permalink:
sata-deep/Spin-dependent-d-band-center-App@a9db85bef6ff07d107160cd1ab5654219a65160f -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/sata-deep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9db85bef6ff07d107160cd1ab5654219a65160f -
Trigger Event:
push
-
Statement type:
File details
Details for the file spin_dependent_d_band_center-1.0.3-py3-none-any.whl.
File metadata
- Download URL: spin_dependent_d_band_center-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f64eed64002dd141abc2637fee020a63a8077d1a302f2803d92aa3275033ef
|
|
| MD5 |
52a0ba5dc1931710fd24d860fcc3fbcb
|
|
| BLAKE2b-256 |
d473c50feee17749b4cb0f801be5da3b429f2e6eecd44c8b6dd580eeda435ebc
|
Provenance
The following attestation bundles were made for spin_dependent_d_band_center-1.0.3-py3-none-any.whl:
Publisher:
publish.yml on sata-deep/Spin-dependent-d-band-center-App
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spin_dependent_d_band_center-1.0.3-py3-none-any.whl -
Subject digest:
06f64eed64002dd141abc2637fee020a63a8077d1a302f2803d92aa3275033ef - Sigstore transparency entry: 412168368
- Sigstore integration time:
-
Permalink:
sata-deep/Spin-dependent-d-band-center-App@a9db85bef6ff07d107160cd1ab5654219a65160f -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/sata-deep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9db85bef6ff07d107160cd1ab5654219a65160f -
Trigger Event:
push
-
Statement type: