Get Ffield Opt Plots Workflow
Generate classified EOS, scan-curve, restraint, and HeatFO plot collections.
Command: get_ffield_opt_plots
Classify optimization ENERGY expressions using fort.99, trainset comments, fort.74 volumes, and geo BOND/ANGLE restraints. Write separate EOS, bond, angle, other-curve, energy-curve, energy-difference, reaction-energy, single-identifier ENERGY, restraint, Charge, Geometry, Cell Parameters, and HeatFO collections. Only collections with figures are written and reported. Every generated collection contains a CSV with ReaxFF, QM/literature, group-comment, and inline-comment data. When unassigned entries exist, the root not_plotted_entries.csv audits fort.99 entries not assigned to any plotted data type.
Examples
1. Analyze fort.99, fort.74, trainset.in, and geo in the current directory and save under
reaxkit get_ffield_opt_plots
2. Save the complete classified plot collection to an explicit folder:
reaxkit get_ffield_opt_plots --output ffield_opt_plots
3. Analyze a different optimization run with explicit input paths:
reaxkit get_ffield_opt_plots --run-dir run --fort99 run/fort.99 --fort74 run/fort.74 --trainset run/trainset.in --geo run/geo
4. Limit each grouped-bar figure to three entries (six paired bars):
reaxkit get_ffield_opt_plots --entry-per-figure 3
5. Flip the sign of EOS energies before exporting and plotting them:
reaxkit get_ffield_opt_plots --flip-sign-for-eos
6. Assemble a PowerPoint with a title slide and figures for each category:
reaxkit get_ffield_opt_plots --make-powerpoint --plot-style publication-bold
Arguments
Scientific choices
| Flag |
Required |
Default |
Help |
Choices |
--flip-sign-for-eos |
No |
False |
Flip the sign of EOS energy values before exporting and plotting; equivalent to get_ffield_opt_eos --flip-sign. Example: --flip-sign-for-eos, which negates equation-of-state energies before export and plotting. |
|
| Flag |
Required |
Default |
Help |
Choices |
--engine |
No |
|
Engine used to load simulation inputs. Example: --engine reaxff, which selects ReaxFF input readers. |
reaxff, ams, lammps |
--input |
No |
. |
Input path used for engine detection. Example: --input runs/heating, which detects the engine from that run. |
|
--run-dir, --dir |
No |
. |
Optimization run directory. Example: --run-dir runs/heating, which uses that directory for fallback discovery. |
|
--fort99 |
No |
fort.99 |
Path to fort.99. Example: --fort99 runs/heating/fort.99, which reads training-set comparison data from that file. |
|
--fort74 |
No |
fort.74 |
Path to fort.74. Example: --fort74 runs/heating/fort.74, which reads optimization data from that file. |
|
--trainset |
No |
trainset.in |
Path to trainset file. Example: --trainset runs/heating/trainset.in, which reads training targets from that file. |
|
--geo |
No |
geo |
Path to the multi-structure geo file containing scan restraints. Example: --geo geo, which reads the multi-structure geometry file. |
|
Outputs and plots
| Flag |
Required |
Default |
Help |
Choices |
--entry-per-figure |
No |
6 |
Maximum entries per grouped-bar figure; every entry contributes one ReaxFF and one QM/literature bar (default: 6). Example: --entry-per-figure 6, which places at most six comparison entries in each figure. |
|
--output, --outdir, --save |
No |
|
Optional output-folder override. By default, save under reaxkit_workspace/analysis/get_ffield_opt_plots//. Example: --output analysis/results, which writes generated artifacts under analysis/results. |
|
--make-powerpoint, --make-ppt |
No |
False |
Also write ffield_opt_plots.pptx in the results folder, with a category title slide followed by one figure per slide. Empty categories are skipped. Example: --make-powerpoint, which assembles this run's generated figures into a PowerPoint. |
|
--plot-style |
No |
default |
Plot appearance: default preserves existing styling; publication uses clear fonts and an accessible palette; publication-bold uses larger bold text and heavier lines. Example: --plot-style publication-bold, which improves readability when figures are reduced in a manuscript. |
default, publication, publication-bold |
--color-style |
No |
default |
Color treatment: default preserves existing colors; light-fill uses lighter bar and marker interiors with the original outlines and lines. Example: --color-style light-fill, which adds contrast between fills and borders. |
default, light-fill |
--detail-format |
No |
|
Optional detail format (default: Parquet; legacy: CSV). Example: --detail-format csv, which writes requested detail tables as CSV. |
parquet, csv |
Execution
| Flag |
Required |
Default |
Help |
Choices |
--execution |
No |
auto |
Execution backend; unsupported backends fall back to serial with a logged reason. Example: --execution serial, which processes work sequentially. |
auto, serial, threads, processes |
--workers |
No |
0 |
Frame workers: auto or N (default: auto). Example: --workers 4, which requests four frame workers. |
|
--chunk-size |
No |
0 |
Maximum in-flight frames: auto or N. Example: --chunk-size 8, which limits concurrent frame processing to eight frames. |
|
Storage and cache
| Flag |
Required |
Default |
Help |
Choices |
--run-id |
No |
|
Run identifier for run-scoped layout. Example: --run-id run_91ac0e, which reuses that run identifier. |
|
--project-root |
No |
reaxkit_workspace |
Project root that contains inputs/, data/, analysis/, etc. Example: --project-root ./workspace, which stores run artifacts there. |
|
--analysis-id |
No |
|
Optional analysis artifact id; defaults to run id. Example: --analysis-id comparison-a, which names the analysis artifact explicitly. |
|
--input-cache, --no-input-cache |
No |
True |
Reuse parsed input frames across commands (default: enabled; use --no-input-cache to force source reads for reproducibility checks or benchmarks). Example: --no-input-cache, which reloads frames from their source files. |
|
--frame-cache-max-gb |
No |
10.0 |
Maximum workspace frame-cache size in GiB (default: 10; use 0 for unlimited). Example: --frame-cache-max-gb 20, which caps cached frames at 20 GiB. |
|
--output-profile |
No |
standard |
Select the shared artifact policy. Standard writes declared default outputs; minimal keeps core tables; full and legacy include optional details. Default: standard. Example: --output-profile full, which includes declared optional detail tables. |
minimal, standard, full, legacy |
--profile |
No |
False |
Record deterministic function calls and timings for all Python threads (requires --diagnostics and reaxkit[profiling]). |
|
--profile-clock |
No |
wall |
Profiler timer: elapsed wall time (default) or thread CPU time. Requires --profile to record. |
wall, cpu |
--diagnostics, --no-diagnostics |
No |
False |
Enable a per-command report, console log, resource samples, and periodic Python stacks under logs/diagnostics (disabled by default). |
|
--diagnostic-interval-seconds |
No |
60.0 |
Python stack sampling interval (default: 60 seconds). Example: --diagnostic-interval-seconds 30. |
|
--checkpoint, --no-checkpoint |
No |
|
Enable durable result batches for audited commands. Example: --no-checkpoint, disables recovery storage. |
|
--resume |
No |
|
Resume a compatible result checkpoint; repeat the original scientific options. Example: --resume ./checkpoint, skips committed calculations. |
|
--checkpoint-buffer-mb |
No |
32 |
Result buffer in MiB, plus one oversized frame. Example: --checkpoint-buffer-mb 32, bounds pending result payloads to approximately 32 MiB. |
|
--checkpoint-interval-seconds |
No |
30 |
Flush at the next completed frame after this interval. Example: --checkpoint-interval-seconds 30, commits roughly every 30 seconds. |
|
Diagnostics and compatibility
| Flag |
Required |
Default |
Help |
Choices |
-h, --help |
No |
|
show this help message and exit |
|
--help-all, --all-flags |
No |
|
Show every option, grouped by purpose. Example: --help-all, which includes advanced flags in the help output. |
|
--log |
No |
|
Runtime logging verbosity. Example: --log verbose, which prints detailed execution messages. |
verbose, quiet |
Common Runtime and Presentation Arguments
These are shared workflow-level CLI flags added before command-specific options, covering runtime context (engine/input/storage) and output presentation/export behavior.
Each command table above includes its shared and inherited options.