Konrad, JulianJulianKonradMeißner, RobertRobertMeißner2025-06-272025-06-272025-06-23Journal of Chemical Information and Modeling 65 (12): 6038-6047 (2025)https://hdl.handle.net/11420/55967Accurately modeling chemical reactions in molecular dynamics simulations requires detailed pre- and postreaction templates, often created through labor-intensive manual workflows. This work introduces a Python-based algorithm that automates the generation of reaction templates for the LAMMPS REACTION package, leveraging graph-theoretical principles and subgraph isomorphism techniques. By representing molecular systems as mathematical graphs, the method enables the automated identification of conserved molecular domains, reaction sites, and atom mappings, significantly reducing manual effort. The algorithm was validated on three case studies: poly addition, poly condensation, and chain polymerization, demonstrating its ability to map conserved domains, identify reaction-initiating atoms, and resolve challenges such as symmetric reactants and indistinguishable atoms. Additionally, the generated templates were optimized for computational efficiency by retaining only essential reactive domains, ensuring scalability and consistency in high-throughput workflows for computational chemistry, materials science, and machine learning applications. Future work will focus on extending the method to mixed organic-inorganic systems, incorporating adaptive scoring mechanisms, and integrating quantum mechanical calculations to enhance its applicability.en1549-960XJournal of chemical information and modeling2025126038American Chemical Societyhttps://creativecommons.org/licenses/by/4.0/Technology::660: Chemistry; Chemical EngineeringNatural Sciences and Mathematics::541: Physical; TheoreticalComputer Science, Information and General Works::004: Computer SciencesSmart reaction templating: a graph-based method for automated molecular dynamics input generationJournal Articlehttps://doi.org/10.15480/882.1530310.1021/acs.jcim.5c0044510.15480/882.15303Journal Article