Skip to content

stb-siesta2wtb

Wantibexos Interface · menu code 3.4 · guide: 3.4 Wantibexos Interface

usage: stb-siesta2wtb [-h] -i INPUT [-o OUTPUT] [-f FERMI_LEVEL] [--no-check]
                      [--dry-run] [-q] [-v] [--no-intro]

Convert a SIESTA Hamiltonian (<label>.HSX, written with SaveHS true) to the tight-binding
files of WanTiBEXOS: tb-<NP|SP|SOC>.ham (Fermi level, lattice, then every H and S element
between the orbitals of the cell and of each neighbouring cell) and basis_set-<..>.basis
(one line per orbital: species, position, l, m, spin). The report describes the system,
the basis, the Hamiltonian's range and the Fermi level, and checks the written .ham by
rebuilding H(k) and S(k) from it and comparing the eigenvalues with sisl's.

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input FDF file from SIESTA calculation
  -o OUTPUT, --output OUTPUT
                        SIESTA output file for Fermi energy extraction
  -f FERMI_LEVEL, --fermi-level FERMI_LEVEL
                        Manual Fermi energy setting (optional)
  --no-check            Skip the read-back check of the written tb-*.ham (rebuilding
                        H(k), S(k) from the file and comparing eigenvalues with sisl).
  --dry-run             Report only: read the Hamiltonian and say what would be
                        written; write nothing.
  -q, --quiet           Suppress terminal animations and colors
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb-siesta2wtb -i calc.fdf -o calc.out           # Fermi level from the SIESTA log
  stb-siesta2wtb -i calc.fdf -f -4.02              # Fermi level given by hand (eV)
  stb-siesta2wtb -i calc.fdf -o calc.out --dry-run # report only, write nothing