The reaction network generator & event table exploration.
RxNetGen builds reaction networks and explores event tables for KMC
simulation. The chemical core (systems, graphs, geometry, dataclasses and
array-api helpers) is provided by the
graphatoms package; RxNetGen
depends on it and provides the application layer: configuration, reaction
network storage/commands, runners, parallel executors, reaction/event classes
and the CLI entry points.
pip install -e .Or with uv / pixi:
uv sync
pixi install| Command | Description |
|---|---|
rxnetgen-config |
Resolve and print the Hydra/OmegaConf run configuration |
rxnetgen-run |
Launch a run (run_type=otfkmc or run_type=rxngen) |
rxnetgen-network |
Inspect and visualize a stored reaction network |
src/rxnetgen/
├── config/ # Hydra/OmegaConf configuration (atoms, bonds, calculator)
├── network/ # Reaction network: scheduler, recorder, metadata, commands
├── parallel/ # Pluggable executors (serial, multiprocessing, joblib, ray, dask, executorlib)
├── reaction/ # Reaction classes and KMC events
├── runner/ # Runners (otfkmc, rxngen) and helpers
└── utils/ # Vendored copy of graphatoms.utils (app-level helpers)
Note:
rxnetgen.utilsis a vendored copy ofgraphatoms.utilskept so that the application layer can evolve independently. Changes made upstream ingraphatoms.utilsmust be synchronized here when they affect the migrated modules.
pytest src/tests -vThe tests use the datasets under src/tests-datasets/.