stb-coop¶
COOP/COHP Bonding Analysis · menu code 2.14 · guide: 2.14 COOP/COHP Bonding Analysis
usage: stb-coop [-h] [--label LABEL] [--wfsx WFSX] [--hsx-file HSX_FILE] --quantity
{coop,cohp} [--pair I J] [--image N1 N2 N3] [--pair-species A B]
--erange EMIN EMAX [--npoints NPOINTS] [--shift {none,fermi,manual}]
[--fermi FERMI] [--bands-file BANDS_FILE] [--fermi-file FERMI_FILE]
[--manual-value MANUAL_VALUE] (--sigma SIGMA | --fwhm FWHM)
[--atol ATOL] [--bond-order] [--dm-file DM_FILE] [-o OUTPUT_DIR]
[--save-gnuplot] [--view] [-v] [--no-intro]
Energy-resolved COOP/COHP bonding/antibonding curves for selected atom pairs, from a full-BZ SIESTA .WFSX + .HSX.
options:
-h, --help show this help message and exit
--label LABEL SIESTA output label. Auto-detects <label>.WFSX, falling back to <label>.selected.WFSX then <label>.bands.WFSX, and, unless --hsx-file overrides it, <label>.HSX (mandatory -- no approximate fallback). Mutually exclusive with --wfsx (not --hsx-file -- see its own help).
--wfsx WFSX Explicit path to the .WFSX file (alternative to --label).
--hsx-file HSX_FILE Explicit .HSX path. Required if --wfsx is used instead of --label; optional (and common) together WITH --label too, since the real file is often not literally named <label>.HSX -- --label still auto-detects the .WFSX in that case, only the Hamiltonian source changes.
--quantity {coop,cohp}
'coop': Crystal Orbital Overlap Population. 'cohp': Crystal Orbital Hamilton Population.
--pair I J 0-based atom-index pair (repeatable). Sums EVERY periodic image of J within the orbital range (the report lists each image with its distance); use --image for one bond. I == J is allowed (on-site term).
--image N1 N2 N3 With --pair: only the periodic image (N1, N2, N3) of J, i.e. the one bond between I in the unit cell and J in cell N1 a1 + N2 a2 + N3 a3 (e.g. --pair 4 5 --image 0 -1 0 for a bond across the cell edge). The report's image table gives the image of each neighbour.
--pair-species A B Species-pair (repeatable), e.g. --pair-species Sn O -- aggregates ALL atom-index pairs between the two species into one combined curve. If A == B (e.g. Sn Sn), the aggregate also includes each atom's own on-site term, mixed in with the inter-atomic Sn-Sn terms -- use --pair I J for a purely inter-atomic curve instead.
--erange EMIN EMAX Energy window (eV), relative to --shift's reference.
--npoints NPOINTS Number of energy samples (default: 300). sisl's COOP/COHP is memory-heavy for many points -- start modest.
--shift {none,fermi,manual}
Energy reference (default: none). No vbm/cbm option -- see the module docstring.
--fermi FERMI Fermi energy (eV) for --shift fermi. Highest-priority source if given.
--bands-file BANDS_FILE
Companion .bands file to read the Fermi energy from, for --shift fermi.
--fermi-file FERMI_FILE
Explicit SIESTA .out log to read the Fermi energy from, for --shift fermi -- an alternative to --bands-file for a run with no saved .bands file. Not assumed to be named after --label.
--manual-value MANUAL_VALUE
Custom shift value (eV), required if --shift manual.
--sigma SIGMA Gaussian broadening standard deviation, in meV.
--fwhm FWHM Gaussian broadening full width at half maximum, in meV.
--atol ATOL Per-state energy-window cutoff passed straight to sisl's COOP/COHP (default: 1e-10) -- a performance knob, not a physics tolerance.
--bond-order Also compute Hamiltonian.bond_order(method='mulliken', projection='atom') per pair from a REAL density matrix -- a cheap, energy-INTEGRATED complementary sanity check, not a substitute for the curve. Needs --dm-file or an auto-detected <label>.DM (see below).
--dm-file DM_FILE Explicit .DM density-matrix path, for --bond-order. Falls back to an auto-detected <label>.DM if omitted. SIESTA's .DM format doesn't store the overlap matrix -- it's spliced in from the already-loaded Hamiltonian, so the .DM must be from the same calculation as the .HSX/--hsx-file.
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write coop.dat/cohp.dat (and, with --save-gnuplot/the .gplot script) into (the report and its references file go to the current folder) (default: current directory). Created if it doesn't exist.
--save-gnuplot Also write a real .gplot script alongside coop.dat/cohp.dat. Off by default -- this tool used to write the .dat file unconditionally but never wrote a .gplot script at all.
--view Show an interactive matplotlib preview before finishing. Off by default (replaces the old --no-plot, which was on by default).
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Example usage:
stb-coop --label siesta --quantity coop --pair 0 1 --erange -10 5 --sigma 200
stb-coop --label siesta --quantity cohp --pair-species Sn O --erange -10 5 --fwhm 300
stb-coop --label siesta --quantity coop --pair 0 1 --erange -10 5 --sigma 200 \
--bond-order --save-gnuplot --view