科研 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.
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:
- Workflow 1: LAMMPS ReaxFF input anatomy — combustion simulation (C/H/O) —
references/key-workflows/01-workflow-1-lammps-reaxff-input-anatomy-combustio.md: A complete annotated LAMMPS input for NVT reactive MD of a hydrocarbon/oxygen mixture at 2500 K using the Chenoweth 2008 CHO parameter set. - Workflow 2: Charge equilibration diagnostics and QEq parameter selection —
references/key-workflows/02-workflow-2-charge-equilibration-diagnostics-and.md: QEq convergence is the most common silent failure mode in ReaxFF simulations. These diagnostics detect and fix QEq problems before they corrupt a production run. - Workflow 3: Thermal protocol for reactive simulations —
references/key-workflows/03-workflow-3-thermal-protocol-for-reactive-simulat.md: Reactive MD requires a staged thermal protocol that is more conservative than classical MD: reactions occurring during heating are physically real but may obscure the equilibrium chemistry at the target temperature. - Workflow 4: Reaction event detection and species postprocessing —
references/key-workflows/04-workflow-4-reaction-event-detection-and-species.md:fix reaxff/speciesprovides a time-resolved species inventory. Post-processing extracts reaction events, rates, and the reaction network from this inventory. - Workflow 5: NVE drift check and thermostat masking detection for reactive MD —
references/key-workflows/05-workflow-5-nve-drift-check-and-thermostat-maskin.md: Energy conservation in NVE is the definitive test that the timestep is appropriate and QEq is converging. In reactive MD, this check is more complex than for classical MD because reactions are exothermic or endothermic events that naturall… - Workflow 6: Validating reactive trajectories against DFT and coupling to active-learning MLP —
references/key-workflows/06-workflow-6-validating-reactive-trajectories-agai.md: ReaxFF trajectories must be validated before any chemical conclusion is drawn. The primary validation targets are reaction barriers, species heats of formation, and structural properties of products.
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/speciesmay 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 qeqcommands, but they use differentpair_stylecommands, different parameter file formats, and differentfix qeqvariants (fix qeq/reaxffvs.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 maceorpair_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 substitutepair_style maceforpair_style reaxffwith 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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中模拟这个燃烧体系的反应事件检测。
所属插件
安装该插件会一并获得同领域的 35 个 Skill / MCP。
同插件的其他科研 Skill
- 主动学习构建机器学习势训练集Runs active-learning workflows for ML interatomic potentials: uncertainty-guided MD exploration, DFT oracle labeling, query strategy. Use when expanding an MLP training set.
- AiiDA计算工作流管理Covers AiiDA, a provenance-first Python workflow engine for computational materials science: calculation input generation, remote submission. Use when orchestrating reproducible DFT/MD campaigns.
- ASE原子模拟环境Covers the Atomic Simulation Environment (ASE) as an atomistic workflow hub: Atoms objects, calculators, optimizers, trajectories. Use when scripting or converting structures across DFT/MD codes.
- 粗粒化分子动力学模拟Covers coarse-grained molecular dynamics: mapping atomistic structures to CG beads, parameterizing Martini/IBI/force-matching force fields. Use when atomistic timescales are too short.
- CP2K第一性原理分子动力学Covers end-to-end DFT, AIMD, and atomistic workflows with CP2K using the Gaussian-and-plane-waves method: input construction, convergence testing. Use for CP2K-based simulations.
- 扩散模型生成晶体结构Covers de novo crystal structure generation with score-based diffusion and flow-matching models (MatterGen, DiffCSP, CDVAE). Use when generating candidate structures, not analyzing existing ones.
- 晶体图神经网络性质预测Covers graph neural networks for crystal and periodic-material property prediction: crystal graph construction, periodic neighbor finding. Use when building GNN property predictors for crystals.
- 平面波DFT收敛性测试Covers systematic convergence testing for plane-wave DFT: cutoff energy, k-point mesh density, smearing. Use before trusting DFT energies, forces, or derived properties as converged.
- 机器学习势DFT数据集生成Covers generating DFT-labeled datasets for training ML interatomic potentials: configuration-space coverage. Use when building an MLP training dataset from scratch.
- 点缺陷第一性原理计算Covers first-principles point-defect modeling: vacancy/interstitial/antisite/substitutional construction, charge-state calculations. Use for defect thermodynamics studies.
- 第一性原理声子谱计算Covers lattice dynamics from first principles: phonon dispersion, phonon DOS. Use when computing vibrational or thermodynamic properties from DFT.
- 表面模型DFT计算Covers surface slab model construction and DFT calculation: Miller-index generation, termination selection, slab/vacuum convergence. Use for surface science and catalysis DFT studies.
- 弹性常数计算工作流Computes single-crystal and polycrystalline elastic constants from DFT or MD stress-strain data and checks mechanical stability. Use when deriving stiffness tensors or bulk/shear modulus.
- 增强采样自由能计算Covers enhanced sampling methods for atomistic MD (metadynamics, umbrella sampling. Use for rare-event or slow-transition sampling.
- 状态方程拟合Covers equation-of-state fitting from DFT/ML-potential energy-volume data: Birch-Murnaghan, Vinet, and Murnaghan forms. Use when fitting an EOS to compression data.
- 机器学习势微调迁移训练Covers fine-tuning pretrained universal ML interatomic potentials on system-specific DFT data. Use when adapting a universal MLP to a new system.
- 分子动力学自由能计算Covers quantitative free-energy calculations from MD: alchemical FEP/TI/BAR/MBAR, umbrella-sampling PMF. Use when computing thermodynamic free energies from simulation.
- GROMACS分子动力学工作流Covers end-to-end MD simulations with GROMACS: topology/.mdp construction, energy minimization, NVT/NPT equilibration. Use for GROMACS-based biomolecular or materials MD.
- 高通量DFT自动化筛选Covers automated large-scale DFT screening: workflow graphs with atomate2/jobflow/AiiDA, input-set standardization, custodian error handling. Use for high-throughput DFT screening campaigns.
- LAMMPS分子动力学工作流Covers end-to-end MD simulations with LAMMPS: input script anatomy, force-field deployment, ensemble control, equilibration. Use for LAMMPS-based classical molecular dynamics.
- MACE机器学习势训练Covers training MACE machine-learned interatomic potentials: extxyz dataset preparation, isolated-atom energies, train/val/test splitting. Use for MACE-specific MLP training workflows.
- MatGL图神经网络框架Covers building, applying, validating, and fine-tuning MatGL graph-neural-network models for property prediction and interatomic potentials. Use for pretrained GNN workflows via MatGL.
- 分子动力学轨迹后处理分析Covers quantitative post-processing of atomistic MD trajectories: loading LAMMPS/GROMACS/ASE trajectories and computing RDF, coordination numbers. Use for structural MD trajectory analysis.
- 分子动力学平衡过程设计Covers bringing an atomistic simulation from its initial configuration to a representative equilibrium state before production statistics: ensemble. Use before collecting production MD data.
常见问题
反应性分子动力学模拟能做什么?
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 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。