科研 Skill

反应性分子动力学模拟

reactive-md

Covers reactive molecular dynamics with LAMMPS using ReaxFF and COMB force fields: force-field selection, charge equilibration setup. Use for bond-breaking MD simulations.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Reactive Molecular Dynamics

Description

This skill covers reactive molecular dynamics (reactive MD) using LAMMPS with the ReaxFF and COMB force fields: force-field selection and parameter provenance, charge equilibration (QEq) setup and diagnostics, timestep and thermostat selection for reactive systems, thermal protocols for reaction sampling, reaction event detection and postprocessing, validation of reactive trajectories against DFT, and coupling reactive MD to active-learning ML potential workflows. Invoke this skill when bond-breaking or bond-forming chemistry must be modeled explicitly — combustion, oxidation, pyrolysis, stress corrosion cracking, catalyst surface chemistry, or shock-induced reactions — and a fixed-topology force field is physically inappropriate.

Domain Context

Reactive MD differs from classical fixed-topology MD in one fundamental respect: the connectivity of the bonding network is not fixed at the start of the simulation but emerges from the interatomic potential as atoms approach or recede. This requires a potential energy function that varies continuously from a bonded to a non-bonded description as a function of local geometry.

ReaxFF (reactive force field) achieves this through a bond-order formalism. The key physical approximations are:

  • Bond order: Each pair interaction carries a continuous bond order that depends on the interatomic distance and the local coordination environment. The bond order BO_ij decays smoothly from 1 (full bond) to 0 (no bond) as the interatomic distance increases. Bond order is not a quantum-mechanical quantity — it is a scalar empirical function parameterized to reproduce DFT bond-dissociation curves and reaction barriers.
  • Charge equilibration (QEq): At each timestep, atomic partial charges are self-consistently minimized by the electronegativity equalization principle (Rappé & Goddard, 1991). Every atom's charge responds to its instantaneous bonding environment. QEq adds a per-timestep iterative solver that dominates the computational cost of ReaxFF and can fail to converge for systems with large charge separation.
  • Coupled energy terms: Bond energy, overcoordination penalty, undercoordination energy, valence angle energy, torsion energy, and van der Waals and Coulomb interactions are all functions of bond order. These terms are globally coupled through a single parameter file (ffield.reax). Partial substitution of parameters from different publications into one parameter file is physically invalid — all ReaxFF parameters for all elements in the system must come from the same source and fitting procedure.
  • Transferability limits: A ReaxFF parameterization is fitted to a specific set of elements and a specific set of reference reactions, geometries, and bond energies. The parameterization domain is not universal. Using ReaxFF outside the element set or chemistry it was fitted for — even for elements present in the parameter file — is extrapolation with unbounded errors.

COMB (Charge-Optimized Many-Body) is a related but distinct reactive potential. COMB3 is specifically designed for metal/oxide interfaces (Cu/ZnO, Pt/TiO₂, Ni/Al₂O₃) and uses a modified charge equilibration scheme with environment-dependent electronegativity. COMB3 covers different chemistry than ReaxFF and the two should not be conflated.

ML interatomic potentials (MACE, NequIP, DeePMD) can also model bond breaking and forming if the training data covers reactive events, but they are not reactive force fields in the ReaxFF sense — they are universal function approximators trained on DFT data. Their advantages over ReaxFF are higher accuracy and broader compositional flexibility; their disadvantage is the need for an explicit DFT dataset that covers reactive configurations.

The central challenge of reactive MD is not setting up the simulation but validating that the observed chemistry is physical and not an artifact of the parameterization. ReaxFF trajectories can produce spurious reactions at unrealistically low temperatures, miss important reaction pathways, or generate transition states at wrong barriers, all without any runtime error or warning.

When to Use This Skill

  • Modeling combustion, pyrolysis, or thermal decomposition where C-H, C-C, O-H, or N-O bonds must break and form, and a validated ReaxFF parameter set (e.g., Chenoweth 2008 for CHO, Liu 2018 for CHON) exists for the system.
  • Studying oxidation kinetics of metals and alloys (Fe, Ni, Al) where O₂ dissociation and oxide film formation must be captured dynamically.
  • Stress corrosion cracking and hydrogen embrittlement where bond breaking is mechanically induced and must be coupled to chemistry.
  • Catalyst surface reactions (C-H activation, ammonia synthesis intermediates, CO₂ reduction) on metal surfaces for which ReaxFF has been validated.
  • Generating reactive configurations (bond-breaking snapshots, transition-state-adjacent structures) for active-learning DFT labeling when a quick exploration of chemical space is needed before investing in an MLP.
  • Mechanochemistry: reactions induced by mechanical stress (shear, compression) in solid-state materials where fixed-topology force fields cannot describe the bond rupture.

When Not to Use This Skill

  • When a validated ReaxFF parameter set does not exist for the exact element set and chemistry of interest. An unvalidated reactive potential is more dangerous than no reactive potential — it will produce reactions, but they will be wrong. Use DFT-MD (VASP AIMD) or a trained ML potential instead.
  • When only non-reactive processes are of interest — diffusion, thermal expansion, phonon spectra, elastic properties. Use EAM, MEAM, Tersoff, or an MLP with lower computational cost and better-validated physical properties.
  • For quantitative reaction barriers, rate constants, or free energy profiles. ReaxFF can identify that a reaction occurs, but the barriers are typically 20–50% off from CCSD(T) or even PBE-DFT benchmarks. For kinetics, use climbing-image NEB with DFT or DFT-MD with metadynamics.
  • When nuclear quantum effects govern the reaction — H-atom tunneling at low temperature, proton transfer in hydrogen-bonded systems below 200 K. Classical ReaxFF dynamics neglects zero-point energy and tunneling entirely.
  • For large periodic systems (> 10,000 atoms at long timescales) where the per-timestep QEq cost makes ReaxFF prohibitive. An ML potential trained on reactive DFT data scales better and will be more accurate. [EXPERT REVIEW NEEDED for exact system-size crossover]
  • When using GROMACS. ReaxFF is only implemented in LAMMPS (and AMBER's REAX module for a limited element set). GROMACS does not support reactive force fields.

Core Concepts

Moved to references/core-concepts.md to keep this file short; read it when this part is needed.

Key Workflows

Full steps for each part are in references/key-workflows/; open the one you need:

Common Failure Modes

Moved to references/common-failure-modes.md to keep this file short; read it when this part is needed.

Best Practices

  • Validate every ffield.reax parameter file before production. At minimum, compute the heat of formation or bond dissociation energy for one or two key molecules in your system (e.g., for CHO: the C-H bond in methane, the O-H bond in water, the C=O bond in CO₂) and compare to the values quoted in the original publication. A > 10 kcal/mol discrepancy indicates a file version mismatch.
  • Always record the SHA-256 hash and primary DOI for every ffield.reax file used. sha256sum ffield.reax > ffield.reax.sha256. These files are not versioned by filename; the hash is the only reliable identifier.
  • Run NVE energy conservation before every production run. This is the only reliable test for timestep adequacy and QEq convergence in reactive MD. A drift > 1 kcal/mol/atom/ns in 5000 steps × 0.25 fs = 1.25 ps is a contraindication for production.
  • Use a bond-order threshold that matches the chemistry being tracked. The default 0.3 threshold in fix reaxff/species may be too low for high-temperature simulations. Test threshold sensitivity: compare species inventories at 0.3, 0.4, and 0.5, and choose the value that gives chemically sensible starting-material identification at t=0. Report this threshold in all publications.
  • Apply a persistence filter to reaction events. Species appearing for only 1–2 output frames at the bond-order detection threshold are thermal fluctuations, not reactions. Require ≥ 3 consecutive appearances before counting a species as formed.
  • Never use NPT during a rapidly reacting system. Exothermic reactions locally increase temperature and density; the barostat responds by expanding the box, which can couple mechanically to subsequent reactions in physically unrealistic ways. Use NVT for equilibration and NVE or NVT for production of reactive trajectories.
  • Use Langevin thermostat for reactive production when local heat dissipation matters. Langevin applies per-atom damping, which dissipates local reaction heat more physically than the global Nosé-Hoover thermostat. For combustion and oxidation simulations where exothermic events are localized, Langevin better approximates heat conduction to a thermal reservoir. [EXPERT REVIEW NEEDED]
  • Validate against DFT before interpreting any chemistry. Compare ReaxFF energies and forces on 10–20 reactive configurations to DFT single-points (see Workflow 6). A force MAE > 500 meV/Å between ReaxFF and DFT at the reactive geometries indicates the force field is wrong for this chemistry, regardless of how plausible the trajectory looks.
  • Do not use ReaxFF rates for quantitative kinetics without additional validation. ReaxFF reaction barriers are typically 20–50% in error relative to high-level quantum chemistry. Use DFT NEB or DFT-MD metadynamics for quantitative barriers. ReaxFF can correctly identify which reactions occur and their relative rates at a given temperature, but not their absolute magnitudes.
  • For active learning: use ReaxFF as a cheap explorer, not a source of truth. Run ReaxFF MD to identify structurally diverse reactive configurations, then label those configurations with DFT and train a MACE or NequIP model. The MLP will be more accurate than ReaxFF while also being transferable. This workflow costs far less DFT time than blind DFT-MD.
  • Check that COMB and ReaxFF are not confused. Both use charge equilibration and are deployed in LAMMPS with separate fix qeq commands, but they use different pair_style commands, different parameter file formats, and different fix qeq variants (fix qeq/reaxff vs. fix qeq/comb). Mixing them produces LAMMPS errors or, worse, silently wrong simulations.

Integration with Other Skills

  • lammps-workflow: The LAMMPS input script mechanics — units, atom_style, pair_style, neighbor lists, fix nvt/nve, dump, restart, and parallel execution — are covered in depth in that skill. This skill covers only the reactive-specific commands (pair_style reaxff, fix qeq/reaxff, fix reaxff/species) and the reactive-specific validation protocol. Use both skills together for a production-ready reactive MD setup.
  • md-force-fields: That skill covers the physical basis and selection logic for all major force-field functional forms including ReaxFF and COMB. This skill provides the reactive-specific deployment and validation details. The force-field selection decision (whether to use ReaxFF, COMB, or an ML potential for a given system) is made in that skill; the reactive MD protocol once that decision is made is this skill.
  • md-equilibration: Equilibration for reactive MD requires the same NVE stability test, thermostat selection, and convergence criteria as classical MD, plus the additional reactive-specific checks on bond-order distribution and species inventory. That skill's NVE energy drift check is the primary diagnostic for reactive MD stability; the reactive-specific interpretation of drift (reaction heat vs. force-field error) is covered here.
  • md-analysis: RDF, coordination numbers, MSD, and temperature/pressure time-series analysis from that skill apply to the non-reactive epochs of a reactive trajectory. Bond-order and species-count analysis covered here is the additional reactive-specific layer. That skill's MDAnalysis and OVITO workflows apply to reactive MD trajectories after species identification.
  • gromacs-workflow: GROMACS does not support ReaxFF or any reactive force field. Reactive MD must be performed in LAMMPS. If the broader simulation project uses GROMACS for non-reactive subsystems (e.g., a protein solvated in water with a reactive metal cofactor), the reactive region must be handled in LAMMPS with a separate simulation or via a QM/MM interface. This skill does not cover QM/MM coupling.
  • active-learning-mlp: The primary downstream use of reactive MD in modern computational chemistry is as a cheap explorer for active-learning MLP training. Workflow 4 and 6 here implement the coupling: ReaxFF identifies reactive configurations; DFT labels them; the active-learning loop trains an MLP. That skill covers the full active-learning protocol from uncertainty estimation to DFT query strategy to training iteration.
  • mlp-validation: When a reactive MLP is trained on DFT data from reactive configurations identified by ReaxFF, its validation must include the NVE stability test at the target temperature, RDF comparison to DFT-MD, and force MAE decomposed by config_type (reactant, product, transition region). That skill's validation protocols apply directly; this skill's reactive-specific trajectory contexts define which config_types are most important.
  • mlp-to-lammps: A reactive MLP trained via active learning can replace ReaxFF in LAMMPS using pair_style mace or pair_style nequip. The element ordering, no_domain_decomposition, and unit conventions for MLP deployment in LAMMPS are covered in that skill. The transition from ReaxFF to MLP production runs follows directly: validate ASE vs. LAMMPS consistency, then substitute pair_style mace for pair_style reaxff with appropriate timestep (typically 2 fs for MLP vs. 0.25 fs for ReaxFF).
  • vasp-workflow: DFT single-point calculations for ReaxFF-vs-DFT validation (Workflow 6) and for active-learning labeling are run with VASP. The INCAR settings for single-point force calculations (ISTART=0, NSW=0, IBRION=-1, ISIF=2, LWAVE=.FALSE.) and the stress sign convention (VASP outputs compression-positive; ASE expects tensile-positive) from that skill must be applied correctly when building the validation dataset.
  • dft-convergence: DFT single-points used for ReaxFF validation or MLP training on reactive structures must be computed at converged settings (ENCUT, k-points, PREC). Unconverged DFT produces noisy energies and forces that inflate apparent ReaxFF errors and degrade MLP training. That skill provides the convergence protocol; this skill provides the structures to be evaluated.
  • dft-dataset-generation: When reactive MD configurations are identified for DFT labeling, the DFT dataset construction workflow from that skill (extxyz format, config_type tagging, energy/force/stress consistency checks, and handling of spin-polarized reactive systems) applies directly. The structures extracted in Workflow 4 and 6 here feed into that skill's pipeline.
  • reproducibility-workflow: Reactive MD trajectories require careful provenance tracking: ffield.reax SHA-256, LAMMPS version, QEq settings, bond-order threshold used for species analysis, and NVE drift measured before production. That skill's DVC-based data versioning and provenance record protocol should be applied to every reactive MD project. Trajectories from different ffield.reax versions are not reproducibly comparable without this record.

Key References

  1. van Duin, A. C. T., et al. (2001). ReaxFF: A reactive force field for hydrocarbons. Journal of Physical Chemistry A, 105(41), 9396–9409. https://doi.org/10.1021/jp004368u
  2. Chenoweth, K., van Duin, A. C. T., & Goddard, W. A. (2008). ReaxFF reactive force field for molecular dynamics simulations of hydrocarbon oxidation. Journal of Physical Chemistry A, 112(5), 1040–1053. https://doi.org/10.1021/jp709896w
  3. Senftle, T. P., et al. (2016). The ReaxFF reactive force-field: Development, applications and future directions. npj Computational Materials, 2, 15011. https://doi.org/10.1038/npjcompumats.2015.11
  4. Aktulga, H. M., et al. (2012). Parallel reactive molecular dynamics: Numerical methods and algorithmic techniques. Parallel Computing, 38(4–5), 245–259. https://doi.org/10.1016/j.parco.2011.08.005
  5. Rappé, A. K., & Goddard, W. A. (1991). Charge equilibration for molecular dynamics simulations. Journal of Physical Chemistry, 95(8), 3358–3363. https://doi.org/10.1021/j100161a070
  6. Liang, T., et al. (2012). Classical atomistic simulations of surfaces and heterogeneous interfaces with the charge-optimized many body (COMB) potentials. Materials Science and Engineering: R: Reports, 74(9), 255–279. https://doi.org/10.1016/j.mser.2013.07.001
  7. Aryanpour, M., van Duin, A. C. T., & Kubicki, J. D. (2010). Development of a reactive force field for iron–oxyhydroxide systems. Journal of Physical Chemistry A, 114(21), 6298–6307. https://doi.org/10.1021/jp101332k
  8. Rahaman, O., et al. (2011). Development of a ReaxFF reactive force field for glycine and application to solvent effect and tautomerization. Journal of Physical Chemistry B, 115(2), 249–261. https://doi.org/10.1021/jp108642r
  9. Islam, M. M., et al. (2015). ReaxFF molecular dynamics simulations on lithiated sulfur cathode materials. Physical Chemistry Chemical Physics, 17(5), 3383–3393. https://doi.org/10.1039/C4CP04532G
  10. Thompson, A. P., et al. (2022). LAMMPS — A flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Computer Physics Communications, 271, 108171. https://doi.org/10.1016/j.cpc.2021.108171

示例提示词

我想用ReaxFF力场在LAMMPS中模拟这个燃烧体系的反应事件检测。

所属插件

计算材料学:第一性原理与原子模拟面向计算材料研究:DFT 与第一性原理(VASP、Quantum ESPRESSO、CP2K、AiiDA)、缺陷/表面/声子/弹性常数、机器学习势函数训练与验证、分子动力学与增强采样、晶体性质图神经网络与生成模型。

安装该插件会一并获得同领域的 35 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

反应性分子动力学模拟能做什么?

Covers reactive molecular dynamics with LAMMPS using ReaxFF and COMB force fields: force-field selection, charge equilibration setup. Use for bond-breaking MD simulations。

如何安装反应性分子动力学模拟?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「反应性分子动力学模拟」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

反应性分子动力学模拟需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

反应性分子动力学模拟经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。