stb-aimdAnalysis¶
AIMD Trajectory Analysis · menu code 2.18 · guide: 2.18 AIMD Trajectory Analysis
usage: stb-aimdAnalysis [-h] [-l LABEL] [--geometry-file PATH] [--trajectory PATH]
[--dt FS] [--stride STRIDE] [--skip SKIP] [--pair A-B]
[--r-max R_MAX] [--n-bins N_BINS] [--fit-start FS]
[--fit-end FS] [--track-atom N] [--track-pair I-J]
[--list-atoms] [-o OUTPUT_DIR] [--save-gnuplot] [--view]
[--no-intro] [-v]
Physical post-processing of an AIMD/MD trajectory -- a SIESTA AIMD run (<label>.ANI) or a generic ASE-readable trajectory (e.g. one written by stb-mlmd): radial distribution function g(r), mean-squared displacement (MSD) and diffusion coefficient, a VACF-derived vibrational density of state (VDOS), single-atom displacement tracking, and atom-pair relative distance tracking. Complements stb-ani2traj, which only converts a SIESTA trajectory's format for external viewers.
options:
-h, --help show this help message and exit
-l LABEL, --label LABEL
SIESTA SystemLabel -- reads '<label>.ANI'. Mutually exclusive with --trajectory.
--geometry-file PATH Explicit path to the real SIESTA .fdf input file (--label mode only). MD.InitialTimeStep/MD.LengthTimeStep (the real MD timestep) and, if '<label>.XV'/'<label>.out' aren't usable, the lattice itself are read from here. Auto-detecting '<label>.fdf' almost never works in practice -- the input file's own name is chosen by the user and is very often NOT <label>.fdf (e.g. SystemLabel 'siesta' with the real input called calc.fdf) -- pass this explicitly instead of relying on that guess.
--trajectory PATH Read a generic ASE-readable multi-frame trajectory instead of a SIESTA .ANI -- e.g. one written by stb-mlmd (xsf/pdb/xyz). Mutually exclusive with --label.
--dt FS Real time between saved frames in the --trajectory file, in fs (--trajectory mode only). Auto-detected if the file is an extended-xyz with per-frame 'Time' info (e.g. stb-mlmd --out-format xyz); required otherwise (xsf/pdb carry no such data).
--stride STRIDE Keep only every Nth frame (default: 1, every frame).
--skip SKIP Discard the first N frames (post-stride) as thermal equilibration, before any statistics are computed (default: 0).
--pair A-B Restrict the RDF to one species pair, e.g. 'O-H' (default: total RDF over all pairs).
--r-max R_MAX RDF cutoff in Angstrom (default: the minimum-image limit of the smallest cell found in the trajectory).
--n-bins N_BINS Number of RDF bins (default: 200).
--fit-start FS MSD linear-fit window start, in fs (default: half the trajectory length).
--fit-end FS MSD linear-fit window end, in fs (default: end of trajectory).
--track-atom N 0-based atom index whose own Cartesian displacement (from its initial position, PBC-unwrapped -- same convention as the MSD) is tracked and reported over time (optional).
--track-pair I-J Two 0-based atom indices, e.g. '0-5', whose relative distance (minimum-image convention, same as the RDF) is tracked and reported over time (optional).
--list-atoms Print a table of every atom's 0-based index, species, and Cartesian coordinates (Ang, from the first frame only) to help pick --track-atom/--track-pair indices, then exit immediately -- no RDF/MSD/VDOS/report is computed. Off by default (a large structure can have hundreds of atoms).
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write <stem>_*.dat/.gplot (with --save-gnuplot) and None into (default: current directory; the report always goes to the current folder). Created if it doesn't exist.
--save-gnuplot Also write a .dat + .gplot pair for every computed quantity (RDF, MSD, VACF, VDOS, and the atom-displacement/pair-distance series if --track-atom/--track-pair are used). Off by default -- this tool previously wrote matplotlib PNGs unconditionally on every run with no gnuplot output at all.
--view Show an interactive matplotlib preview before finishing. Off by default -- this tool previously always generated (and saved) the matplotlib plots, with no way to skip it.
--no-intro Do not show the introduction
-v, --version show program's version number and exit
Example usage:
stb-aimdAnalysis --label aimd
stb-aimdAnalysis -l aimd --pair O-H --skip 50
stb-aimdAnalysis -l aimd --fit-start 5000 --fit-end 15000
stb-aimdAnalysis -l aimd --track-atom 0 --track-pair 0-1
stb-aimdAnalysis -l aimd --save-gnuplot --view
stb-aimdAnalysis --trajectory si_bulk_md_traj.xyz --dt 10