Skip to content

stb-cohesiveAnalysis

Stage 2 - Analysis of the 5.3 Cohesive Energy workflow · menu code 5.3.2

usage: stb-cohesiveAnalysis [-h] -o OUT_FILE [-d DIR_PATH]
                            [--force-tolerance FORCE_TOLERANCE]
                            [--energy {ks,free,zero}] [--view] [-v] [--no-intro]

Process cohesive energy results from SIESTA calculations.

options:
  -h, --help            show this help message and exit
  -o OUT_FILE, --out OUT_FILE
                        Name of the SIESTA output file (e.g., calc.out)
  -d DIR_PATH, --dir DIR_PATH
                        Path to the folder containing 'structure' and 'atoms' directories (default: cohesive_runs, matching stb-cohesive's own --output-dir default -- no --dir needed in the common case, even run from the parent directory).
  --force-tolerance FORCE_TOLERANCE
                        Residual atomic force in eV/Ang (default: 0.05) above which the full structure's calc.out is flagged as possibly not relaxed -- the cohesive energy would then reflect a strained/off-equilibrium geometry rather than the true minimum. Advisory only, never blocks the result.
  --energy {ks,free,zero}
                        Which energy of each run enters the cohesive energy (default: ks).
                        'ks': the Kohn-Sham total energy (siesta: Etot).
                        'free': SIESTA's FreeEng = E_KS - T*S of the electronic smearing -- what
                        versions up to 2.0.0 used. An open-shell atom with degenerate orbitals has
                        fractional occupations and -T*S != 0 at ElectronicTemperature 300 K (Si, Ga:
                        -49 meV; As, Ag: 0), so the cohesive energy then depends on a smearing
                        temperature that is not physical.
                        'zero': (E_KS + FreeEng)/2, the T -> 0 extrapolation used for smeared metals.
                        Section [2b] lists E_KS, FreeEng and -T*S of every run in any case.
  --view                Show an interactive matplotlib preview of the BSSE-correction figure (see [4] of the report) before finishing. The figure itself is always saved when BSSE data is available, regardless of this flag. Off by default.
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb_cohesive_analysis -o calc.out
  stb_cohesive_analysis -o calc.out -d /path/to/results