Skip to content

stb-adsorbAnalysis

Stage 3 - Analysis of the 5.8 Adsorption workflow · menu code 5.8.3

usage: stb-adsorbAnalysis [-h] [--dir DIR] [--file FILE] [-o OUTPUT]
                          [--apply STRUCTURE_FDF] [--force-tolerance FORCE_TOLERANCE]
                          [--view] [--view-plots] [--compute-gibbs]
                          [--zpe-mode {local,full}] [--displacement DISPLACEMENT]
                          [--gibbs-supercell GIBBS_SUPERCELL GIBBS_SUPERCELL GIBBS_SUPERCELL]
                          [-v] [--no-intro]

Computes adsorption energies from an stb-adsorb sweep: E_ads = E_site - E_clean_slab - E_adsorbate.

options:
  -h, --help            show this help message and exit
  --dir DIR             Root directory containing 'clean_slab/', 'adsorbate*/' and 'sites/' (default: adsorption_run -- stb-adsorb's own default --output-dir, so this stage runs against that one's output with no extra flag in the common case).
  --file FILE           SIESTA output filename inside each folder (default: calc.out).
  -o OUTPUT, --output OUTPUT
                        Output data file name (default: <--dir>/adsorption_curve.dat). The gnuplot script, the height curves and adsorption_ranking.png go into the same folder.
  --apply STRUCTURE_FDF
                        Copy the most stable site's structure.fdf (BSSE-corrected ranking when available for every site, else the uncorrected ranking) to this path.
  --force-tolerance FORCE_TOLERANCE
                        Residual atomic force in eV/Ang (default: 0.05, same as stb-cohesiveAnalysis) above which a site's calc.out is flagged as possibly not relaxed -- E_ads would then reflect a strained/off-equilibrium geometry rather than the true adsorption minimum. Advisory only, never blocks the result.
  --view                Open clean_slab, every adsorbate reference and every site (preferring each folder's own <label>.XV -- the actual relaxed geometry, if SIESTA has been run there -- falling back to its input structure.fdf otherwise) in ASE's interactive 3D viewer as a multi-frame browser, after everything else has finished. Needs a display.
  --view-plots          Also show the matplotlib adsorption-ranking plot on screen (one blocking window), instead of only saving it as a PNG. Off by default.
  --compute-gibbs       Also write the vibrational-Hessian displacement folders (under '<dir>/gibbs/') stb-adsorbGibbs (Stage 4) needs to compute a Gibbs free energy of adsorption, for the winning site (BSSE-ranked if complete, else uncorrected) and its isolated-adsorbate reference. Off by default -- this is the one exception in this tool to 'analysis never generates new folders', by explicit design (see the manual): the alternative would be a whole extra prep-only stage duplicating everything [0]-[4] already do.
  --zpe-mode {local,full}
                        Vibrational Hessian mode for the SITE side, when --compute-gibbs (default: local). 'local': partial Hessian, only the adsorbate's own atoms displaced (substrate frozen) -- fast, a decoupled-oscillator approximation, no Phonopy involved. 'full': a real Phonopy phonon calculation of the ENTIRE site structure, minus the clean slab's own (also full-structure) phonon calculation -- rigorous, but far more SIESTA jobs. The isolated-adsorbate reference ALWAYS uses the 'local' (full-Hessian-of-the-whole-molecule) method regardless of this flag -- there's no periodic substrate phonon to subtract for an isolated molecule in a vacuum box, so Phonopy's supercell machinery buys nothing there.
  --displacement DISPLACEMENT
                        Finite-difference displacement in Ang for the Hessian/Phonopy displacements (default: 0.015, same as stb-herRefs/stb-oerRefs).
  --gibbs-supercell GIBBS_SUPERCELL GIBBS_SUPERCELL GIBBS_SUPERCELL
                        Supercell dimensions for --zpe-mode full's site+clean-slab phonon calculations (default: 1 1 1 -- appropriate when the slab's own in-plane supercell is already large enough).
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Usage examples:
  stb-adsorbAnalysis
  stb-adsorbAnalysis --dir adsorption_run --file calc.out
  stb-adsorbAnalysis --apply best_structure.fdf