Analysis
This section documents the analysis layer in ReaxKit: functions that transform parsed ReaxFF data into metrics, summaries, plots, and exportable tables.
How this docs folder is organized
This folder is split into two documentation groups:
-
Per-file analyses β analyses tied to a single ReaxFF output file
(for example: βwhat can I compute fromxmoloutalone?β) -
Composed analyses β higher-level routines that combine multiple files/handlers
(for example: βusexmolout+fort.7connectivity to compute local dipoles / cluster propertiesβ)
What youβll find on each analysis page
Most pages follow the same structure so they are easy to scan:
- What it computes (metric/summary/plot)
- Inputs (which file(s), which handler(s), required columns/metadata)
- Outputs (DataFrame schema, plots, exported CSV structure)
- Python example (direct API usage)
- CLI example (the equivalent
reaxkit <file> <task> ...usage) - Notes / gotchas (units, frame/iteration mapping, alias resolution)
Quick usage patterns
Python
Typical usage is:
from reaxkit.io.xmolout_handler import XmoloutHandler
from reaxkit.analysis.xmolout_analyzer import get_xmolout_data # example
xh = XmoloutHandler("xmolout")
df = get_xmolout_data(xh)
print(df.head())
CLI
Most analyses are also available as CLI workflows:
reaxkit <file-kind> <task> [--file ...] [--xaxis ...] [--yaxis ...] [--plot] [--save ...] [--export ...]
Exact subcommands/options are documented on the corresponding page under per_file/ or composed/.
Conventions used across analyses
-
Frames vs iterations
ReaxFF often reports iterations while plotting is often easier in time or frame index. Many workflows support--xaxis iter|frame|timeand convert using the runcontrolfile. -
Column aliases
Many files use different headers for the same concept (e.g.,DensityvsDens(kg/dm3)). Workflows typically resolve these via the alias utilities so users can pass canonical names.