Skip to content
cccskills
FreePublished on GitHub

reacnetgenerator

Extract and visualize reaction networks from reactive MD trajectories using ReacNetGenerator. Use after ReaxFF or ab initio MD simulations to identify reaction pathways, species, and kinetics.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208 stars(GitHub 208 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

ReacNetGenerator — Reaction Network Analysis

When to Use

  • User has completed a reactive MD simulation (ReaxFF or AIMD) and wants to extract reactions
  • User wants to identify all chemical species formed during a simulation
  • User needs a reaction network diagram showing pathways and frequencies
  • User wants to track species concentrations over time
  • User is studying combustion, pyrolysis, or other reactive processes

Prerequisites

  1. ReacNetGenerator installed (reacnetgenerator --version or python -c "import reacnetgenerator")
  2. MD trajectory file (LAMMPS dump with bond info, or XYZ with bond detection)
  3. Bond order file from ReaxFF (bonds.reax from fix reaxff/bonds)

Workflow Steps

1. Run after ReaxFF MD

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "reacnet_analyze",
  "command": "reacnetgenerator -i traj.lammpstrj --type lammpsbondfile -b bonds.reax -a C H O",
  "depends_on": ["reaxff_md"],
  "system_name": "reaction_network"
})

CLI Usage

From LAMMPS dump + bond file

reacnetgenerator \
  -i traj.lammpstrj \
  --type lammpsbondfile \
  -b bonds.reax \
  -a C H O \
  --stepinterval 10 \
  --split 200

From XYZ trajectory (bond detection by distance)

reacnetgenerator \
  -i trajectory.xyz \
  --type xyz \
  -a C H O \
  --stepinterval 10

Python API

from reacnetgenerator import ReacNetGenerator

rng = ReacNetGenerator(
    inputfilename="traj.lammpstrj",
    inputfiletype="lammpsbondfile",
    bondfilename="bonds.reax",
    atomname=["C", "H", "O"],
    stepinterval=10,
    split=200,
)

rng.runanddraw()
# Outputs: reaction network SVG/HTML, species list, reaction matrix

Output Files

FileContent
*.svg / *.htmlReaction network visualization
species.csvAll detected species with SMILES and counts
reactionmatrix.csvReaction frequency matrix
*.pngSpecies concentration over time plots

Parameter Guidance

ParameterTypical valueNotes
-itrajectory fileLAMMPS dump or XYZ
--typelammpsbondfile / xyzInput type
-bbonds.reaxBond order file (ReaxFF only)
-aC H OElement names in order of LAMMPS type
--stepinterval10-100Analyze every Nth frame (speeds up)
--split100-500Split trajectory into N chunks for statistics
--cutoff0.3Bond order cutoff (default 0.3 for ReaxFF)
--nproc4Parallel workers

Interpreting Results

Reaction Network Graph

  • Nodes = chemical species (labeled with molecular formula or SMILES)
  • Edges = reactions (thickness proportional to frequency)
  • Hub species = key intermediates (many connections)
  • Isolated nodes = stable products or rare species

Species Time Evolution

  • Monotonically decreasing = reactant being consumed
  • Monotonically increasing = product being formed
  • Rise then fall = intermediate species
  • Oscillating = reversible reaction or equilibrium

Integration with CatGo Workflow

Typical reactive MD analysis pipeline:

1. Build mixture box        → data/packmol/SKILL.md
2. Run ReaxFF MD            → lammps/reaxff/SKILL.md
3. Extract reaction network → analysis/reacnetgen/SKILL.md (this skill)

Common Pitfalls

  1. Wrong atom order — -a C H O must match LAMMPS atom type indices (1=C, 2=H, 3=O). Check the data file.
  2. Bond file not generated — ensure fix reaxff/bonds was included in the LAMMPS input. Without it, no bond information exists.
  3. Too few frames — need at least 1000+ frames for statistically meaningful reaction counts.
  4. stepinterval too large — skipping too many frames misses short-lived intermediates. Start with 10.
  5. Cutoff too high/low — bond order cutoff of 0.3 works for most ReaxFF simulations. Adjust if species look wrong.
  6. Memory for large trajectories — very long MD trajectories can exhaust memory. Use --stepinterval to reduce.
  7. No reactions observed — temperature may be too low, or simulation too short. Check the ReaxFF MD conditions.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

abinit

Free

Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader charge analysis.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use AmberTools antechamber for molecular force field parameterization. Generates GAFF/GAFF2 parameters and AM1-BCC or RESP charges for use in AMBER or LAMMPS classical MD simulations.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

One-shot recipes for adding, deleting, moving, and replacing individual atoms in the active CatGo viewer structure. Use whenever the user asks to "add an atom", "delete atoms", "remove this atom", "move atom N", "replace H with Li", or any single-atom edit — including "add a hydrogen on top of atom 12" / "delete atoms 5–9" / "swap the oxygen at site 3 for fluorine". Skips the discovery loop (no need to list structure tools or check adsorption sites first); goes straight to the matching `catgo_structure` action. Triggers in Chinese on 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

See all skills by Hello-QM

Report a problem with this skill