Skip to content

stb-stackingfaultAnalysis

Stage 2 - Analysis of the 5.10 2D Stacking Fault (Gamma-Surface) workflow · menu code 5.10.2

usage: stb-stackingfaultAnalysis [-h] [--dir DIR] [--file FILE] [-o OUTPUT]
                                 [--apply STRUCTURE_FDF]
                                 [--force-tolerance FORCE_TOLERANCE] [--save-gnuplot]
                                 [--view] [--view-animation] [-v] [--no-intro]

Computes a stacking-fault (gamma-surface) energy landscape from an stb-stackingfault grid: reads each positions/shift_II_JJ/'s SIESTA energy and reports the equilibrium stacking, the highest-energy registry, and the corrugation energy.

options:
  -h, --help            show this help message and exit
  --dir DIR             Root directory containing 'positions/shift_II_JJ/' (default: 'sf_run', the self-contained run folder stb-stackingfault Stage 1 always writes its output into -- auto-detected as '.' instead when the current directory already has its own sf_manifest.json).
  --file FILE           SIESTA output filename inside each folder (default: calc.out).
  -o OUTPUT, --output OUTPUT
                        Base filename for the gnuplot data file (default: stackingfault_surface.dat), written under '<dir>/plot/' -- only relevant with --save-gnuplot.
  --apply STRUCTURE_FDF
                        Copy the equilibrium (lowest-energy) grid point's structure.fdf to this path.
  --force-tolerance FORCE_TOLERANCE
                        Residual atomic force in eV/Ang (default: 0.05, same as stb-adsorbAnalysis/stb-nebAnalysis) above which a grid point's calc.out is flagged as possibly not single-point-converged. Advisory only, never blocks the result.
  --save-gnuplot        Also save the gamma-surface (or line-scan) data as gnuplot .dat + .gplot scripts, under '<dir>/plot/'. Off by default.
  --view                View the gamma-surface heatmap (or 1D line, for --scan x/y/xy) interactively via matplotlib now. Off by default. Needs a display. Independent of --save-gnuplot -- matplotlib here is only an on-screen preview, never written to disk.
  --view-animation      Open every analyzed grid point's structure (same order as the always-saved animation XYZ) in ASE's interactive multi-frame 3D viewer. Off by default. Needs a display. Independent of --view (which shows the energy plot, not structures).
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Usage examples:
  stb-stackingfaultAnalysis --dir . --file calc.out
  stb-stackingfaultAnalysis --dir . --apply equilibrium.fdf
  stb-stackingfaultAnalysis --save-gnuplot --view
  stb-stackingfaultAnalysis --view-animation