stb-stm¶
STM Simulator · menu code 2.11 · guide: 2.11 STM Simulator
usage: stb-stm [-h] [--label LABEL] [--file LDOS_FILE] [--geometry-file GEOMETRY_FILE]
[--axis {0,1,2}] [--mode {height,current}] [--z Z] [--iso ISO]
[--z-max Z_MAX] [-o OUTPUT_DIR] [--save-gnuplot] [--view] [-v]
[--no-intro]
Simulate an STM image (Tersoff-Hamann approximation) from a SIESTA energy-integrated LDOS grid (<label>.LDOS).
options:
-h, --help show this help message and exit
--label LABEL SIESTA output label. Auto-detects <label>.LDOS (falling back to <label>.STM.LDOS with a note) and <label>.XV/<label>.fdf for the topmost-atom reference. Mutually exclusive with --file/--geometry-file.
--file LDOS_FILE Explicit path to the .LDOS/.STM.LDOS file (alternative to --label).
--geometry-file GEOMETRY_FILE
Explicit .XV/.fdf geometry path (alternative/override to --label's auto-detect). Required if --file is used instead of --label.
--axis {0,1,2} Surface-normal axis (0=X, 1=Y, 2=Z). Auto-detected from the geometry's vacuum padding if omitted and exactly one vacuum axis is found.
--mode {height,current}
'current' (default): classic constant-current STM image -- the topography a tip follows to hold the LDOS at --iso. 'height': constant-height LDOS map at --z above the surface.
--z Z Height (Ang) above the topmost surface atom for --mode height (default: 3.0, a commonly used representative constant-height tip-sample separation).
--iso ISO LDOS threshold (same units as the .LDOS file, e/Bohr^3) defining the constant-current contour for --mode current (default: 0.001 -- a relative threshold, not a calibrated absolute current; tune it for your own system's LDOS magnitude if the default leaves too many/few points reaching it, see [3] in the report).
--z-max Z_MAX Upper bound (Ang above the topmost atom) of the search/plot window along --axis. Default: distance to the cell boundary.
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write stm_<mode>.dat/.gplot into (with --save-gnuplot) (the report and its references file go to the current folder) (default: current directory). Created if it doesn't exist.
--save-gnuplot Also write stm_<mode>.dat + stm_<mode>.gplot together. Off by default -- this tool used to write both unconditionally on every run.
--view Show an interactive matplotlib preview of the STM image before finishing. Off by default.
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Example usage:
stb-stm --label siesta --mode current --iso 0.001
stb-stm --label siesta --mode height --z 3.0
stb-stm --label siesta --save-gnuplot --view