Benjamin L. Hanson , Carlos Rubio , Adrián García-Gutiérrez , Thomas Bewley
{"title":"GBEES-GPU: An efficient parallel GPU algorithm for high-dimensional nonlinear uncertainty propagation","authors":"Benjamin L. Hanson , Carlos Rubio , Adrián García-Gutiérrez , Thomas Bewley","doi":"10.1016/j.cpc.2025.109819","DOIUrl":"10.1016/j.cpc.2025.109819","url":null,"abstract":"<div><div>Eulerian nonlinear uncertainty propagation methods often suffer from finite domain limitations and computational inefficiencies. A recent approach to this class of algorithm, Grid-based Bayesian Estimation Exploiting Sparsity, addresses the first challenge by dynamically allocating a discretized grid in regions of phase space where probability is non-negligible. However, the design of the original algorithm causes the second challenge to persist in high-dimensional systems. This paper presents an architectural optimization of the algorithm for CPU implementation, followed by its adaptation to the CUDA framework for single GPU execution. The algorithm is validated for accuracy and convergence, with performance evaluated across distinct GPUs. Tests include propagating a three-dimensional probability distribution subject to the Lorenz '63 model and a six-dimensional probability distribution subject to the Lorenz '96 model. The results imply that the improvements made result in a speedup of over 1000 times compared to the original implementation.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109819"},"PeriodicalIF":3.4,"publicationDate":"2025-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144912844","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Vincenzo Di Florio , Patrizio Ansalone , Sergii V. Siryk , Sergio Decherchi , Carlo de Falco , Walter Rocchia
{"title":"NextGenPB: An analytically-enabled super resolution tool for solving the Poisson-Boltzmann equation featuring local (de)refinement","authors":"Vincenzo Di Florio , Patrizio Ansalone , Sergii V. Siryk , Sergio Decherchi , Carlo de Falco , Walter Rocchia","doi":"10.1016/j.cpc.2025.109816","DOIUrl":"10.1016/j.cpc.2025.109816","url":null,"abstract":"<div><div>The Poisson-Boltzmann equation (PBE) is a relevant partial differential equation commonly used in biophysical applications to estimate the electrostatic energy of biomolecular systems immersed in electrolytic solutions. A conventional mean to improve the accuracy of its solution, when grid-based numerical techniques are used, consists in increasing the resolution, locally or globally. This, however, usually entails higher complexity, memory demand and computational cost. Here, we introduce NextGenPB, a linear PBE, adaptive-grid, FEM-based solution tool that leverages analytical calculations to maximize the accuracy-to-computational-cost ratio. Indeed, in NextGenPB (aka NGPB), analytical corrections at the surface of the solute enhance the solution's accuracy without requiring grid adaptation. This leads to more precise estimates of the electrostatic potential, fields, and energy at no perceptible additional cost. Also, we apply computationally efficient yet accurate boundary conditions by taking advantage of local grid de-refinement. To assess the accuracy of our methods directly, we expand the traditionally available analytical case set to many non-overlapping dielectric spheres. Then, we use an existing benchmark set of real biomolecular systems to evaluate the energy convergence concerning grid resolution. Thanks to these advances, we have improved state-of-the-art results and shown that the approach is accurate and largely scalable for modern high-performance computing architectures. Lastly, we suggest that the presented core ideas could be instrumental in improving the solution of other partial differential equations with discontinuous coefficients.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109816"},"PeriodicalIF":3.4,"publicationDate":"2025-08-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144989275","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
I. Lopez, J. Alguacil, J.P. Catalan, P. Sauvan, J. Sanz
{"title":"Implicit stochastic uncertainty propagation scheme for two-step Monte Carlo simulations applied to R2S-UNED","authors":"I. Lopez, J. Alguacil, J.P. Catalan, P. Sauvan, J. Sanz","doi":"10.1016/j.cpc.2025.109828","DOIUrl":"10.1016/j.cpc.2025.109828","url":null,"abstract":"<div><div>In recent years, two-step Monte Carlo simulations have become increasingly important in nuclear analysis. However, the quantification of stochastic uncertainties in two-step Monte Carlo simulations, in order to evaluate the statistical convergence of final nuclear responses, remains challenging. At present, stochastic uncertainty propagation methods, mainly developed for rigorous-two-step methodologies, exhibit several limitations. In particular, existing methods rely upon the calculation of the covariance matrix of the radiation field estimated in the first Monte Carlo simulation, which is computationally demanding in terms of memory and time. It is important to note that the size of the covariance matrix depends on the discretisation employed to estimate the radiation field and, therefore, computational resources required for calculating the covariance matrix increase with discretization. Indeed, the calculation of the covariance matrix is unfeasible in nuclear analyses for real-world fusion facilities, such as shutdown dose rate calculations using rigorous-two-step methodologies in JET, where large-scale geometries combined with fine discretizations render the size of the covariance matrix impractical.</div><div>The present paper introduces an innovative methodology, the implicit stochastic uncertainty propagation scheme, to quantify the stochastic uncertainty in the final nuclear response due to the first Monte Carlo simulation, whilst avoiding the calculation of the covariance matrix. The implicit scheme involves the definition of a random variable according to specific criteria. As such, the evaluation of the random variable, as a Monte Carlo tally, allows for quantifying the stochastic uncertainty in the final nuclear response due to the first Monte Carlo simulation. The stochastic uncertainty due to the second Monte Carlo simulation is directly quantified by Monte Carlo codes along with the final nuclear response.</div><div>Finally, the implicit scheme is implemented in R2S-UNED –a two-step Monte Carlo simulation code designed to calculate the shutdown dose rate resulting from material activation– and, subsequently, employed to analyse the ITER shutdown dose rate benchmark exercise –a well-established test case in which the discretisation of the radiation field renders calculation of the covariance matrix infeasible. The comparison of the ITER benchmark against the brute force method demonstrates the correct performance of the implicit scheme, as well as verifies the applicability in nuclear analyses where existing methods are unfeasible because of the calculation of the covariance matrix.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109828"},"PeriodicalIF":3.4,"publicationDate":"2025-08-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144917938","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
David Dams , Miriam Kosik , Marvin Müller , Abhishek Ghosh , Antton Babaze , Julia Szczuczko , Garnett W. Bryant , Andrés Ayuela , Carsten Rockstuhl , Marta Pelc , Karolina Słowik
{"title":"GRANAD - Simulating GRAphene nanoflakes with ADatoms","authors":"David Dams , Miriam Kosik , Marvin Müller , Abhishek Ghosh , Antton Babaze , Julia Szczuczko , Garnett W. Bryant , Andrés Ayuela , Carsten Rockstuhl , Marta Pelc , Karolina Słowik","doi":"10.1016/j.cpc.2025.109818","DOIUrl":"10.1016/j.cpc.2025.109818","url":null,"abstract":"<div><div>GRANAD is a program based on the tight-binding approximation to simulate optoelectronic properties of graphene nanoflakes and Su–Schrieffer–Heeger (SSH) chains with possible adatom defects under electromagnetic illumination. Its core feature is the numerical solution of a time-domain master equation for the spin-traced one-particle reduced density matrix. It provides time-resolved evolution of charge distributions, access to induced-field dynamics, and characterization of the plasmonic response. Other computable quantities include energy profiles, electron distribution in real space, and absorption spectra. GRANAD is written in Python and relies on the JAX library for high-performance array computing, just-in-time (JIT) compilation, and differentiability. It is intended to be lightweight, portable, and easy to set up, offering a transparent and efficient way to access the properties of low-dimensional carbon structures from the nanoscale to the mesoscopic regime. GRANAD is open source, with the full code and extensive documentation with usage examples available at <span><span>https://github.com/GRANADlauncher/granad.git</span><svg><path></path></svg></span>.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> GRANAD</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/723d4m4z9x.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/GRANADlauncher/granad</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT</div><div><em>Programming language:</em> Python</div><div><em>Supplementary material:</em> Code, documentation and demo files.</div><div><em>Nature of problem:</em> Accessing the dynamical optical properties of graphene nanoflakes and one-dimensional polymer chains up to the mesoscale in the presence of adatoms represents a conceptual and computational challenge. Easily accessible classical methods fail as they do not accommodate relevant quantum effects. At the same time, quantum-mechanical <em>ab initio</em> time-domain approaches are computationally costly, and their implementations are often difficult for the user to set up and extend due to the high complexity of the codebase.</div><div><em>Solution method:</em> A theoretical framework that combines an electronic mean-field approach with a Lindblad-like master equation is implemented to describe these carbon-based systems, where interaction with an external electric field is described semiclassically in the tight-binding approximation. Many-body effects are modeled via a nonlinear interaction term in the Hamiltonian, while dissipative processes are included in the master equation. Simulations are performed in the time domain, providing detailed access to physically relevant quantities. The implementation is lightweight, easily portable, and can be extended to incorporate other materials and nanoflake stacks.</div><div><em>Additional ","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109818"},"PeriodicalIF":3.4,"publicationDate":"2025-08-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144904112","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Pointing Probability Driven Semi-Analytic Monte Carlo Method (PDMC) – Part II: Correction of Exponential Approximation for Higher Accuracy","authors":"Pan Qingquan , He Liaoyuan , Liu Xiaojing","doi":"10.1016/j.cpc.2025.109824","DOIUrl":"10.1016/j.cpc.2025.109824","url":null,"abstract":"<div><div>We perform exponential approximation correction for the traditional Pointing Probability Driven Semi-Analytic Monte Carlo Method (PDMC) to achieve higher accuracy, re-establish the formula for calculating the global response of pseudo-track, forming a corrected Pointing Probability Driven Semi-Analytic Monte Carlo Method (cPDMC). cPDMC draws on the point kernel integral method, has the same calculation process as the traditional PDMC, and inherits all the advantages of PDMC, having high geometric universality due to the independence of deterministic procedures and high efficiency due to the independence of iterative computation. cPDMC is tested in the China Fusion Engineering Test Reactor (CFETR) and the HBR2 benchmark. Compared with the traditional PDMC, cPDMC improves the Average Figure of Merit (AV.FOM) by 1.2 ∼ 410.5 times with the CFETR model and 113.10 ∼ 13,818.18 times with the HBR2 benchmark, proving the superiority of this exponential approximation correction method and showing that cPDMC can further improve the accuracy and efficiency of PDMC and is helpful for large-scale radiation analysis.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"317 ","pages":"Article 109824"},"PeriodicalIF":3.4,"publicationDate":"2025-08-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144907712","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Spectrally accelerated edge and scrape-off layer gyrokinetic turbulence simulations","authors":"B.J. Frei , P. Ulbl , J. Trilaksono , F. Jenko","doi":"10.1016/j.cpc.2025.109817","DOIUrl":"10.1016/j.cpc.2025.109817","url":null,"abstract":"<div><div>This paper presents the first gyrokinetic (GK) simulations of edge and scrape-off layer (SOL) turbulence accelerated by a velocity-space spectral approach in the full-<em>f</em> GK code <span>GENE-X</span>. Building upon the original grid velocity-space discretization, we derive and implement a new spectral formulation and verify the numerical implementation using the method of manufactured solution. We conduct a series of spectral turbulence simulations focusing on the TCV-X21 reference case (Oliveira et al., 2022 <span><span>[26]</span></span>) and compare these results with previously validated grid simulations (Ulbl et al., 2023 <span><span>[25]</span></span>). The spectral approach reproduces the outboard midplane (OMP) profiles (density, temperature, and radial electric field), dominated by trapped electron mode (TEM) turbulence, with excellent agreement and significantly lower velocity-space resolution. As a consequence, the spectral approach reduces the computational cost (CPUh) by at least an order of magnitude, of approximately 50 for the TCV-X21 case. This enables high-fidelity GK simulations to be performed within a few days on modern CPU-based supercomputers for medium-sized devices and establishes <span>GENE-X</span> as a powerful tool for studying edge and SOL turbulence, moving towards reactor-relevant devices like ITER.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109817"},"PeriodicalIF":3.4,"publicationDate":"2025-08-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144885831","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Yi-Yang Shen , Liu-chao Qiu , Tang-Jing Yuan , Yi Liu
{"title":"Three-dimensional simulation of cohesive granular flows using lattice Boltzmann method with a μ(I)-rheology-based viscoplastic model","authors":"Yi-Yang Shen , Liu-chao Qiu , Tang-Jing Yuan , Yi Liu","doi":"10.1016/j.cpc.2025.109821","DOIUrl":"10.1016/j.cpc.2025.109821","url":null,"abstract":"<div><div>This paper introduces a novel three-dimensional numerical framework by combining the free-surface lattice Boltzmann method (LBM) with a μ(I)-rheology-based viscoplastic model for simulating cohesive granular flows. The proposed method aims to provide an accurate and efficient modelling of granular flow with a free-surface. In the present method, the evolution of the granular-air interface is modeled through a single-phase free-surface approach. A novel μ(I)-rheology-based viscoplastic model is used to describe the mechanical response of the granular material. We investigated the performance of the lattice Boltzmann method in conjunction with the μ(I)-rheology within a continuum framework, particularly examining how cohesion influences flow dynamics and the rheological properties of granular materials. A benchmark simulation of cohesive granular collapse is first presented, showing that the LBM results are in strong agreement with experimental data. The effect of aspect ratio on the final deposit shape and instability modes during column collapse is also verified. Finally, the sensitivity of the model’s parameters is assessed for the combined LBM and μ(I)-rheology approach. The findings demonstrate that the proposed LBM framework can accurately capture the flow characteristics of cohesive granular flows.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109821"},"PeriodicalIF":3.4,"publicationDate":"2025-08-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144893476","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Johanna Langner , Anjan Sadhukhan , Jayanta K. Saha , Henryk A. Witek
{"title":"An algorithm for automated extraction of resonance parameters from the stabilization method","authors":"Johanna Langner , Anjan Sadhukhan , Jayanta K. Saha , Henryk A. Witek","doi":"10.1016/j.cpc.2025.109815","DOIUrl":"10.1016/j.cpc.2025.109815","url":null,"abstract":"<div><div>The application of the stabilization method (Hazi and Taylor, 1970 [1]) to extract accurate energy and lifetimes of resonance states is challenging: The process requires labor-intensive numerical manipulation of a large number of eigenvalues of a parameter-dependent Hamiltonian matrix, followed by a fitting procedure. In this article, we present <span>ReSMax</span>, an efficient algorithm implemented as an open-access <span>Python</span> code, which offers full automation of the stabilization diagram analysis in a user-friendly environment while maintaining high numerical precision of the computed resonance characteristics. As a test case, we use <span>ReSMax</span> to analyze the natural parity doubly-excited resonance states (<span><math><mmultiscripts><mrow><mtext>S</mtext></mrow><none></none><mrow><mtext>e</mtext></mrow><mprescripts></mprescripts><none></none><mrow><mn>1</mn></mrow></mmultiscripts></math></span>, <span><math><mmultiscripts><mrow><mtext>S</mtext></mrow><none></none><mrow><mtext>e</mtext></mrow><mprescripts></mprescripts><none></none><mrow><mn>3</mn></mrow></mmultiscripts></math></span>, <span><math><mmultiscripts><mrow><mtext>P</mtext></mrow><none></none><mrow><mtext>o</mtext></mrow><mprescripts></mprescripts><none></none><mrow><mn>1</mn></mrow></mmultiscripts></math></span>, and <span><math><mmultiscripts><mrow><mtext>P</mtext></mrow><none></none><mrow><mtext>o</mtext></mrow><mprescripts></mprescripts><none></none><mrow><mn>3</mn></mrow></mmultiscripts></math></span>) of helium, demonstrating the accuracy and efficiency of the developed methodology. The presented algorithm is applicable to a wide range of resonances in atomic, molecular, and nuclear systems.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> <span>ReSMax</span></div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/8yny7jycgz.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/giogina/ReSMax</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT</div><div><em>Programming language:</em> Python</div><div><em>Nature of problem:</em> The stabilization method is a widely used indirect approach for identifying resonance states (RSs) in atomic and molecular systems. It analyzes the behavior of energy eigenvalues of the system's Hamiltonian as a function of a basis set parameter, as visualized in stabilization diagrams (SDs) [1]. Resonance states manifest as plateaus in these SDs and are characterized by the position and width of the associated Lorentzian peaks in the density of states (DOS) [2]. However, applying this method in practice remains labor-intensive and error-prone: analyzing large eigenvalue datasets, identifying plateau regions, and fitting DOS peaks manually requires significant effort and expert judgment. These difficulties limit the method's scalability and reproducibility, especially for syste","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109815"},"PeriodicalIF":3.4,"publicationDate":"2025-08-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144879305","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Faster and objective level set-DEM mechanical simulations of discrete systems with convex particles from contact history and particle surface considerations","authors":"Jérôme Duriez , Cédric Galusinski","doi":"10.1016/j.cpc.2025.109803","DOIUrl":"10.1016/j.cpc.2025.109803","url":null,"abstract":"<div><div>Aiming for versatile simulations of the mechanics of discrete systems with arbitrary convex particles, an extended Level Set (LS) description of particle shape is proposed in the framework of the Discrete Element Method (DEM). The LS shape description as a discrete field of the signed distance function is first obtained with a faster initial generation and then proposed to directly output particle surface in a validated workflow. It mostly includes an innovative optimization for the surface nodes discretization which combines with the LS distance field for DEM contact treatment. In their optimized definition, surface nodes locate in a nearly uniform fashion over a particle and are handled in a sparse manner during contact treatment, thanks to an original consideration of contact history. As such, computation speed gains are reported with a factor of more than 3 during simulations of quasi-static mechanical loading. The proposed nodes definition is also shown to be instrumental to insure objectivity of the LS contact model and DEM simulations. The present LS approach is finally applied to a preliminary study of the residual shear strength of various packings made of superquadrics all sharing the same shape. After a justification of the chosen particle number to form a Representative Elementary Volume, the shear strength is shown to lack a clear relationship with Wadell's true sphericity as a shape index, while being possibly 73% higher than the one obtained with spherical particles.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109803"},"PeriodicalIF":3.4,"publicationDate":"2025-08-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144867334","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Zhen Yang , Jiawei Xian , Yuanji Xu , De-Ye Lin , Qingchun Wang , Xingyu Gao , Fuyang Tian , Haifeng Song
{"title":"HTEM: High-throughput toolkit for elasticity modeling","authors":"Zhen Yang , Jiawei Xian , Yuanji Xu , De-Ye Lin , Qingchun Wang , Xingyu Gao , Fuyang Tian , Haifeng Song","doi":"10.1016/j.cpc.2025.109814","DOIUrl":"10.1016/j.cpc.2025.109814","url":null,"abstract":"<div><div>Elasticity under varying temperatures and pressures is particularly significant for understanding mechanical properties and structural phase transitions. Consequently, there is an increasing demand for tools capable of determining elasticity across wide temperature and pressure ranges, either numerically or analytically. In this work, we propose HTEM, a comprehensive toolkit that automates input generation workflow, elastic calculations, modeling, and visualization within an integrated framework to solve the demand for elasticity across wide temperature and pressure ranges. HTEM performs simulations with four computational modes, allowing users to balance accuracy and efficiency. It incorporates a semi-analytic model for robust, high-precision elastic modeling with finite data combinations, even using sparse elasticity at high temperatures. To validate the algorithm and workflows for calculation and modeling, we performed HTEM to study the elasticity of Si across wide temperature and pressure ranges. The results show the high precision and high efficiency of HTEM. And modeling mitigates noise from constant pressure ensemble simulations. Furthermore, HTEM provides detailed visualizations of the elasticity and anisotropy as functions of temperature and pressure, providing a comprehensive insight into how the intrinsic properties of materials evolve under varying conditions.</div></div><div><h3>Program summary</h3><div><em>Program title:</em> HTEM</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/8sfnsdvxyn.1</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> GNU General Public License 3</div><div><em>Programming language:</em> Python 3.X (version > 3.7)</div><div><em>External routines/libraries:</em> Numpy, Scipy, Matplotlib, Ase, Spglib, Imageio</div><div><em>Nature of problem:</em> Through the coupling of toolkit with the first-principle approaches, the temperature and pressure dependent second-order elastic stiffness coefficients (SOESC) and elastic moduli of solid materials can be calculated and modeled with less cost, and the change of elastic and mechanical properties can be dynamically visualized with temperature and pressure.</div><div><em>Solution method:</em> HTEM contains four simulation modes to obtain elasticity with high-throughput. The cold and QSA modes are based on VASP's <em>ab</em> <span><math><mi>i</mi><mi>n</mi><mi>i</mi><mi>t</mi><mi>i</mi><mi>o</mi></math></span> calculations. NVT and NPT modes correspond to VASP's <em>ab</em> <span><math><mi>i</mi><mi>n</mi><mi>i</mi><mi>t</mi><mi>i</mi><mi>o</mi></math></span> molecular dynamics (AIMD) simulations. Here, the cold mode is for zero-temperature calculations, while the QSA, NVT, and NPT modes are used to calculate the finite-temperature elasticity. This program is versatile for calculating SOESCs at various temperatures and pressures. In addition to the calculated SOESCs and elastic moduli based o","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109814"},"PeriodicalIF":3.4,"publicationDate":"2025-08-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144867335","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}