stb-eosAnalysis¶
Stage 2 - Analysis of the 5.15 Equation of State workflow · menu code 5.15.2
usage: stb-eosAnalysis [-h] [--dir DIR] [--file FILE]
[--eos {birchmurnaghan,birch_murnaghan,vinet,murnaghan,sj,all}]
[--target-pressure GPA [GPA ...]] [-o OUTPUT] [--show] [--png]
[--save-gnuplot] [--save-data] [-v] [--no-intro]
Stage 2 of 2 (equation of state): aggregates the 'vol_*' folders written by stb-eosInputs and fits an equation of state (Birch-Murnaghan by default) to get V0/E0/B0 (bulk modulus)/B0'. Also reads each run's SIESTA pressure (stress tensor) and checks it against -dE/dV of the fit, gives a second B0 from the stress alone, the uncertainty of V0/B0 (leave-one-out), the residuals, the consistency of the level of theory across folders, and the suggested LatticeConstant; every warning is repeated in the last section. --show / --png draw a dashboard, --save-gnuplot writes the .dat/.gplot pair, --save-data a CSV + JSON.
options:
-h, --help show this help message and exit
--dir DIR Directory containing the 'vol_*' run folders (default: eos_runs).
--file FILE SIESTA output filename inside each run folder (default: calc.out).
--eos {birchmurnaghan,birch_murnaghan,vinet,murnaghan,sj,all}
Equation-of-state form to fit (default: birchmurnaghan). 'sj' = stabilized jellium (no B0' reported). 'all' fits every form on the same data and reports them side by side (the reference fit for everything else is then birchmurnaghan); mutually exclusive with --target-pressure.
--target-pressure GPA [GPA ...]
One or more target external pressures (GPa) -- inverts the fitted EOS (P = -dE/dV) to report the predicted equilibrium volume and linear lattice-parameter scale factor at each one. Not available with --eos all.
-o OUTPUT, --output OUTPUT
Base filename (no extension) of the output files (default: eos_curve).
--show Open the analysis dashboard (matplotlib, 6 panels) on screen. Needs a display.
--png Save the dashboard as <output>_summary.png.
--save-gnuplot Also write <output>.dat and <output>.gplot (E(V) and P(V), data + fit); 'gnuplot <output>.gplot' renders <output>.pdf. Off by default.
--save-data Also write <output>_table.csv (one row per volume) and <output>_results.json (every fit, check and number of the report). Off by default.
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Example usage:
stb-eosAnalysis --dir eos_runs --show
stb-eosAnalysis --dir eos_runs --eos all --png --save-gnuplot
stb-eosAnalysis --dir eos_runs --eos vinet --target-pressure 0 5 10