Rohit Vasav , Thomas Jourdan , Gilles Adjanor , Achraf Badahmane , Jérôme Creuze , Manuel Athènes
{"title":"Cluster dynamics simulations using stochastic algorithms with logarithmic complexity in number of reactions","authors":"Rohit Vasav , Thomas Jourdan , Gilles Adjanor , Achraf Badahmane , Jérôme Creuze , Manuel Athènes","doi":"10.1016/j.jcp.2025.114318","DOIUrl":null,"url":null,"abstract":"<div><div>We show how to adapt and modify the Stochastic Simulation Algorithm (also sometimes referred to as the Gillespie algorithm or the kinetic Monte Carlo algorithm for rate equations) to efficiently simulate cluster dynamics equations for large systems, bypassing the linear complexity of the SSA by associating an internal time scale and priority queues with binary heaps for each mobile species. The internal time of a binary heap renormalises the physical time thus making it independent of the number of clusters of the mobile species concerned, while the binary heaps allow efficient sorting advances. The resulting algorithm has an algorithmic complexity that is linear with respect to the number of mobile cluster types, but logarithmic with respect to the number of immobile cluster species, thus being extremely effective when the number of mobile species is small, a situation satisfied in most models of cluster dynamics. As a physical application, we simulate the time evolution of defect clusters in a FeCu<span><math><msub><mrow></mrow><mrow><mn>0.1</mn><mspace></mspace><mo>%</mo></mrow></msub></math></span> system under irradiation, by integrating the associated cluster dynamics equations using the stochastic algorithm. The speed-up of the algorithm, compared to the direct method is substantial, about several orders of magnitude, while consuming much less memory than deterministic simulations.</div></div>","PeriodicalId":352,"journal":{"name":"Journal of Computational Physics","volume":"541 ","pages":"Article 114318"},"PeriodicalIF":3.8000,"publicationDate":"2025-08-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Computational Physics","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0021999125006011","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
We show how to adapt and modify the Stochastic Simulation Algorithm (also sometimes referred to as the Gillespie algorithm or the kinetic Monte Carlo algorithm for rate equations) to efficiently simulate cluster dynamics equations for large systems, bypassing the linear complexity of the SSA by associating an internal time scale and priority queues with binary heaps for each mobile species. The internal time of a binary heap renormalises the physical time thus making it independent of the number of clusters of the mobile species concerned, while the binary heaps allow efficient sorting advances. The resulting algorithm has an algorithmic complexity that is linear with respect to the number of mobile cluster types, but logarithmic with respect to the number of immobile cluster species, thus being extremely effective when the number of mobile species is small, a situation satisfied in most models of cluster dynamics. As a physical application, we simulate the time evolution of defect clusters in a FeCu system under irradiation, by integrating the associated cluster dynamics equations using the stochastic algorithm. The speed-up of the algorithm, compared to the direct method is substantial, about several orders of magnitude, while consuming much less memory than deterministic simulations.
期刊介绍:
Journal of Computational Physics thoroughly treats the computational aspects of physical problems, presenting techniques for the numerical solution of mathematical equations arising in all areas of physics. The journal seeks to emphasize methods that cross disciplinary boundaries.
The Journal of Computational Physics also publishes short notes of 4 pages or less (including figures, tables, and references but excluding title pages). Letters to the Editor commenting on articles already published in this Journal will also be considered. Neither notes nor letters should have an abstract.