Generators
Generators are responsible for creating ReaxFF input files programmatically.
They are the inverse of handlers:
- Handlers β read existing files
- Generators β write new files
Generators enable:
- Reproducible simulation setup
- Scripted workflows
- Parameter sweeps and automation
Generator Philosophy
Each generator:
- Produces one specific ReaxFF file
- Accepts structured Python inputs (dicts, arrays, settings objects)
- Writes formatted, human-readable files
- Avoids embedding simulation logic or execution
Typical Usage Pattern
from reaxkit.io.generators import SomeGenerator
gen = SomeGenerator(settings)
gen.write("output_file")
What Generators Do (and Donβt)
β Write valid ReaxFF input files
β Enforce formatting and ordering rules
β Make implicit defaults explicit
β No parsing of simulation output
β No job submission
β No result analysis