stb-strainAnalysis¶
Stage 2 - Analysis of the 5.1 Stress-Strain workflow · menu code 5.1.2
usage: stb-strainAnalysis [-h] -f FILE [--dir DIR] [--dimensionality {auto,3d,2d,1d}]
[--vacuum-gap VACUUM_GAP] [--thickness THICKNESS]
[--cross-section CROSS_SECTION] [--yield] [-o OUTPUT_DIR]
[--save-gnuplot] [--view] [-v] [--no-intro]
Mechanical Properties from Stress-Strain Data (Stage 2 of stb-strain).
options:
-h, --help show this help message and exit
-f FILE, --file FILE Siesta output file (e.g., calc.out).
--dir DIR Directory to scan for 'strain_*' run folders (default: strain_runs). Accepts either stb-strain's own output layout -- point this at a single direction's own subfolder (e.g. strain_runs/x) for that direction alone, or at the top-level output directory itself to automatically compare every direction found under it -- or a flat directory of 'strain_*' folders.
--dimensionality {auto,3d,2d,1d}
Physical dimensionality, controlling report units (GPa/N/m/nN) and how the cross-section for 1D Force mode is computed. 'auto' (default) tries to read a real, parseable .fdf structure file from the first strain folder found and classify it via vacuum-axis detection (same convention as stb-strain/stb-mlelastic); if none is found (the common, expected case for hand-built/legacy folders holding only a bare SIESTA .out), falls back to 3d.
--vacuum-gap VACUUM_GAP
Vacuum-gap threshold in Ang, used only when --dimensionality auto finds a real .fdf structure file to classify (default: 10.0, matching stb-strain/stb-mlelastic).
--thickness THICKNESS
Vacuum height (Z) for 2D conversion (Angstrom).
--cross-section CROSS_SECTION
Physical cross-section area (Ang^2) of the wire/tube wall, only used when the run is 1D (--dimensionality 1d, or auto resolving to 1d), to additionally report a conventional Stress (GPa) -- there is no way to auto-derive this (unlike the 2D vacuum height), since a wire/tube wall thickness is a physical convention, not a cell property.
--yield Also report the 0.2% offset Yield -- a macroscopic-plasticity concept borrowed from metallurgy; off by default since a defect-free periodic crystal under affine DFT strain has no dislocation-nucleation mechanism to actually yield through.
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write <direction>_curve.dat/.gplot (single direction) or comparison_curve.dat/.gplot (multiple directions) 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 the curve data + a companion .gplot script (single direction: <direction>_curve.dat/.gplot; multiple directions: comparison_curve.dat/.gplot). Off by default.
--view Show an interactive matplotlib preview (the stress/force-strain curve, fit line, and peak) before finishing. Off by default.
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Example usage:
stb-strainAnalysis --file calc.out
stb-strainAnalysis --file calc.out --dir strain_runs --save-gnuplot --view
stb-strainAnalysis --file calc.out --dimensionality 1d --cross-section 45.2