首页 > 最新文献

Computer Physics Communications最新文献

英文 中文
Tessellation-based grain boundary determination for X-ray orientation microscopies 基于镶嵌的x射线取向显微镜晶界测定
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-12-07 DOI: 10.1016/j.cpc.2025.109988
Jaemyung Kim , Yujiro Hayashi , Sung Soo Ha , Makina Yabashi
In X-ray diffraction-based orientation microscopy, reconstructed grain structures can exhibit unrealistic or erroneous features due to the broadening and overlapping of diffraction peaks. Accurate grain boundary determination based on physical models remains a critical challenge for reliable microstructural characterization. While Voronoi tessellation is widely used to represent microstructures, its accuracy is often limited by the lack of weighting factors, leading to biased results. To address this, we developed a grain extraction algorithm combining a variation of the label-equivalent connected components labeling method with the marching squares algorithm for precise grain boundary detection. Using the extracted grain shapes, additively weighted Voronoi tessellation (AWVT) was applied, with each grain’s center of mass (COM) and equivalent radius serving as weighting factors. The AWVT boundaries showed strong agreement with experimental data, outperforming conventional Voronoi and Laguerre tessellations. Furthermore, the relationship between AWVT and curvature-driven grain growth models is discussed, demonstrating the method’s potential for improved microstructure characterization and grain growth analysis.
在基于x射线衍射的取向显微镜中,由于衍射峰的展宽和重叠,重建的晶粒结构可能表现出不真实或错误的特征。基于物理模型的精确晶界确定仍然是可靠的微观结构表征的关键挑战。虽然Voronoi镶嵌被广泛用于表示微观结构,但其准确性往往受到缺乏加权因子的限制,导致结果有偏差。为了解决这个问题,我们开发了一种谷物提取算法,该算法将标签等效连接分量标记方法的变体与行进平方算法相结合,用于精确的晶界检测。利用提取的颗粒形状,以每个颗粒的质心和等效半径作为加权因子,进行加性加权Voronoi镶嵌(AWVT)。AWVT边界与实验数据非常吻合,优于传统的Voronoi和Laguerre镶嵌。此外,还讨论了AWVT与曲率驱动晶粒生长模型之间的关系,证明了该方法在改进微观结构表征和晶粒生长分析方面的潜力。
{"title":"Tessellation-based grain boundary determination for X-ray orientation microscopies","authors":"Jaemyung Kim ,&nbsp;Yujiro Hayashi ,&nbsp;Sung Soo Ha ,&nbsp;Makina Yabashi","doi":"10.1016/j.cpc.2025.109988","DOIUrl":"10.1016/j.cpc.2025.109988","url":null,"abstract":"<div><div>In X-ray diffraction-based orientation microscopy, reconstructed grain structures can exhibit unrealistic or erroneous features due to the broadening and overlapping of diffraction peaks. Accurate grain boundary determination based on physical models remains a critical challenge for reliable microstructural characterization. While Voronoi tessellation is widely used to represent microstructures, its accuracy is often limited by the lack of weighting factors, leading to biased results. To address this, we developed a grain extraction algorithm combining a variation of the label-equivalent connected components labeling method with the marching squares algorithm for precise grain boundary detection. Using the extracted grain shapes, additively weighted Voronoi tessellation (AWVT) was applied, with each grain’s center of mass (COM) and equivalent radius serving as weighting factors. The AWVT boundaries showed strong agreement with experimental data, outperforming conventional Voronoi and Laguerre tessellations. Furthermore, the relationship between AWVT and curvature-driven grain growth models is discussed, demonstrating the method’s potential for improved microstructure characterization and grain growth analysis.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109988"},"PeriodicalIF":3.4,"publicationDate":"2025-12-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145732949","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}
引用次数: 0
Multi-species Rosenbluth Fokker-Planck collision operator for discontinuous Galerkin method 不连续Galerkin方法的多种Rosenbluth - Fokker-Planck碰撞算子
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-12-06 DOI: 10.1016/j.cpc.2025.109983
Janghoon Seo , Gahyung Jo , Jae-Min Kwon , Eisung Yoon
We present a computationally efficient implementation of the nonlinear Rosenbluth-Fokker-Planck (RFP) collision operator for multi-species kinetic simulations within the discontinuous Galerkin (DG) framework. Inter-species collisions with significant mass disparities require high-order Gaussian quadrature integration to accurately resolve the steep gradients in the Rosenbluth potentials of slower species. To mitigate the computational overhead associated with numerous quadrature points, we employ precomputed integration matrices. Since the conventional upwind scheme for the DG method is not compatible with precomputed matrices, we implement the Harten, Lax and van Leer (HLL) flux formulation for advective flow calculations at cell boundaries. Conservation of momentum and energy is ensured through an additional advective-diffusive operator, utilizing the slow-to-fast species collision as a reference state. We address the numerical challenge of artificial non-vanishing collisional effects at equilibrium through compensatory terms, thereby achieving stable collisional equilibrium states. Comprehensive numerical benchmarks validate both the efficiency and accuracy of our proposed scheme. In particular, our model achieves robust interspecies collisional equilibrium even under conditions of extreme mass disparity and relatively low velocity resolution.
我们提出了一种计算效率高的非线性rosenbluh - fokker - planck (RFP)碰撞算子,用于不连续Galerkin (DG)框架内的多物种动力学模拟。具有显著质量差异的物种间碰撞需要高阶高斯正交积分来精确解决慢速物种的Rosenbluth势的陡峭梯度。为了减少与大量正交点相关的计算开销,我们采用了预先计算的积分矩阵。由于DG方法的传统逆风格式与预先计算的矩阵不兼容,我们实现了Harten, Lax和van Leer (HLL)通量公式,用于单元边界的平流计算。利用从慢到快的物种碰撞作为参考状态,通过一个额外的累加扩散算子确保动量和能量的守恒。我们通过补偿项解决了平衡状态下人为不消失碰撞效应的数值挑战,从而实现了稳定的碰撞平衡状态。综合的数值基准验证了我们提出的方案的效率和准确性。特别是,我们的模型即使在极端质量差异和相对较低速度分辨率的条件下也能实现稳健的种间碰撞平衡。
{"title":"Multi-species Rosenbluth Fokker-Planck collision operator for discontinuous Galerkin method","authors":"Janghoon Seo ,&nbsp;Gahyung Jo ,&nbsp;Jae-Min Kwon ,&nbsp;Eisung Yoon","doi":"10.1016/j.cpc.2025.109983","DOIUrl":"10.1016/j.cpc.2025.109983","url":null,"abstract":"<div><div>We present a computationally efficient implementation of the nonlinear Rosenbluth-Fokker-Planck (RFP) collision operator for multi-species kinetic simulations within the discontinuous Galerkin (DG) framework. Inter-species collisions with significant mass disparities require high-order Gaussian quadrature integration to accurately resolve the steep gradients in the Rosenbluth potentials of slower species. To mitigate the computational overhead associated with numerous quadrature points, we employ precomputed integration matrices. Since the conventional upwind scheme for the DG method is not compatible with precomputed matrices, we implement the Harten, Lax and van Leer (HLL) flux formulation for advective flow calculations at cell boundaries. Conservation of momentum and energy is ensured through an additional advective-diffusive operator, utilizing the slow-to-fast species collision as a reference state. We address the numerical challenge of artificial non-vanishing collisional effects at equilibrium through compensatory terms, thereby achieving stable collisional equilibrium states. Comprehensive numerical benchmarks validate both the efficiency and accuracy of our proposed scheme. In particular, our model achieves robust interspecies collisional equilibrium even under conditions of extreme mass disparity and relatively low velocity resolution.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109983"},"PeriodicalIF":3.4,"publicationDate":"2025-12-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145733049","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}
引用次数: 0
GeoDualSPHysics: a high-performance SPH solver for large deformation modelling of geomaterials with two-way coupling to multi-body systems geodualspphysics:一个高性能的SPH求解器,用于双向耦合到多体系统的岩土材料的大变形建模
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-12-02 DOI: 10.1016/j.cpc.2025.109965
Ruofeng Feng , Jidong Zhao , Georgios Fourtakas , Benedict D Rogers
<div><div>This paper presents GeoDualSPHysics, an open-source, graphics processing unit (GPU)-accelerated smoothed particle hydrodynamics (SPH) solver designed for simulating large-deformation geomaterial and their interactions with multi-body systems. Built upon the popular open-source SPH solver DualSPHysics, the solver leverages its highly parallelised SPH scheme empowered by the CUDA parallelisation while extending its capabilities to large-deformation geomechanics problems with particles up to the order of 10⁸ on a single GPU. The SPH geomechanics model is enhanced by a noise-free stress treatment technique that stabilizes and accurately resolves stress fields, as well as an extended modified Dynamic Boundary Condition (mDBC) ensuring first-order consistency in solid boundary modelling. Additionally, the coupling interface between DualSPHysics and the multi-body dynamics solver Project Chrono is adapted for simulating interactions between geomaterials and multiple interacting rigid bodies. Benchmark validations confirm the solver’s accuracy in resolving geotechnical failures, impact forces on solid boundaries, and geomaterial-multibody system interactions. GPU profiling of the newly implemented CUDA kernels demonstrates their performance metrics are similar to those of the original DualSPHysics solver. Performance evaluations demonstrate its saving in memory usage of 30-50% and improvements in computational efficiency over existing SPH geomechanics solvers, achieving practical simulation speeds for systems with tens of millions of particles and showing a speedup of up to 180x compared to the optimised multi-core CPU implementation. These advances position GeoDualSPHysics as a versatile, efficient tool for high-fidelity simulations of complex geotechnical systems.</div></div><div><h3>Program summary</h3><div>Program title: GeoDualSPHysics</div><div>CPC Library link to program files: <span><span>https://doi.org/10.17632/z4sh62y97g.1</span><svg><path></path></svg></span></div><div>Licensing provisions: GNU Lesser General Public License</div><div>Programming language: C++ and CUDA</div><div>Nature of problem: Simulating large deformations in geomaterials and their interactions with movable or fixed solid bodies is critical for addressing engineering challenges such as landslides, soil-machine interactions, and off-road vehicle mobility. While the Smoothed Particle Hydrodynamics (SPH) method is well-suited for modelling continuum-based geomaterial behaviour in these scenarios, critical computational barriers persist, including: (1) numerical instabilities and unphysical noise in large-deformation regimes, (2) inefficiency in scaling simulations to millions of particles for real-world systems, and (3) inadequate frameworks for robust, two-way coupling between deformable geomaterials and multi-body systems. Overcoming these limitations demands stabilized SPH formulations, high-performance computing architectures, and two-way coupling with multibody
本文介绍了geodualspphysics,一个开源的图形处理单元(GPU)加速的光滑粒子流体动力学(SPH)求解器,用于模拟大变形地质材料及其与多体系统的相互作用。基于流行的开源SPH求解器dualspphysics,该求解器利用其由CUDA并行化授权的高度并行SPH方案,同时将其能力扩展到单个GPU上的颗粒高达10⁸的大变形地质力学问题。SPH地质力学模型通过一种无噪声应力处理技术得到增强,该技术可以稳定和准确地分解应力场,以及一种扩展的修正动态边界条件(mDBC),确保了固体边界模型的一阶一致性。此外,dualspphysics和多体动力学求解器Project Chrono之间的耦合接口适用于模拟岩土材料和多个相互作用的刚体之间的相互作用。基准验证证实了求解器在解决岩土工程失效、固体边界上的冲击力以及岩土材料-多体系统相互作用方面的准确性。新实现的CUDA内核的GPU分析表明,它们的性能指标与原始的dualspphysics求解器相似。性能评估表明,与现有的SPH地质力学求解器相比,它节省了30-50%的内存使用,提高了计算效率,实现了具有数千万粒子的系统的实际模拟速度,与优化的多核CPU实现相比,速度提高了180倍。这些进步使geodualspphysics成为复杂岩土系统高保真仿真的通用、高效工具。程序摘要程序标题:geodualspphysics scpc库链接到程序文件:https://doi.org/10.17632/z4sh62y97g.1Licensing条款:GNU较弱通用公共许可证编程语言:c++和cuda问题的性质:模拟大变形的地质材料及其与可移动或固定的固体体的相互作用是解决工程挑战,如滑坡,土壤-机器相互作用,和越野车辆的机动性至关重要。虽然光滑粒子流体动力学(SPH)方法非常适合在这些情况下对基于连续体的岩土材料行为进行建模,但关键的计算障碍仍然存在,包括:(1)大变形状态下的数值不稳定性和非物理噪声,(2)在将模拟缩放到真实系统的数百万粒子时效率低下,以及(3)可变形岩土材料和多体系统之间鲁棒的双向耦合框架不足。克服这些限制需要稳定的SPH公式、高性能计算架构以及与多体动力学求解器的双向耦合。解决方法:geodualspphysics求解器解决了上述挑战,它结合了(1)一个稳定的地质材料SPH公式,具有无噪声应力处理,以消除大变形中的伪振荡,以及一个扩展的修改动态边界条件(mDBC),用于一阶一致的固体边界建模;(2)继承了dualphysics的基于cuda的高性能GPU并行化,实现对数千万个粒子的高效模拟;(3)通过DSPHChronoLib库与Project Chrono进行双向耦合,该库集成了碰撞检测、摩擦接触模型和关节约束,以解决可变形岩土材料与多体系统之间的相互作用。
{"title":"GeoDualSPHysics: a high-performance SPH solver for large deformation modelling of geomaterials with two-way coupling to multi-body systems","authors":"Ruofeng Feng ,&nbsp;Jidong Zhao ,&nbsp;Georgios Fourtakas ,&nbsp;Benedict D Rogers","doi":"10.1016/j.cpc.2025.109965","DOIUrl":"10.1016/j.cpc.2025.109965","url":null,"abstract":"&lt;div&gt;&lt;div&gt;This paper presents GeoDualSPHysics, an open-source, graphics processing unit (GPU)-accelerated smoothed particle hydrodynamics (SPH) solver designed for simulating large-deformation geomaterial and their interactions with multi-body systems. Built upon the popular open-source SPH solver DualSPHysics, the solver leverages its highly parallelised SPH scheme empowered by the CUDA parallelisation while extending its capabilities to large-deformation geomechanics problems with particles up to the order of 10⁸ on a single GPU. The SPH geomechanics model is enhanced by a noise-free stress treatment technique that stabilizes and accurately resolves stress fields, as well as an extended modified Dynamic Boundary Condition (mDBC) ensuring first-order consistency in solid boundary modelling. Additionally, the coupling interface between DualSPHysics and the multi-body dynamics solver Project Chrono is adapted for simulating interactions between geomaterials and multiple interacting rigid bodies. Benchmark validations confirm the solver’s accuracy in resolving geotechnical failures, impact forces on solid boundaries, and geomaterial-multibody system interactions. GPU profiling of the newly implemented CUDA kernels demonstrates their performance metrics are similar to those of the original DualSPHysics solver. Performance evaluations demonstrate its saving in memory usage of 30-50% and improvements in computational efficiency over existing SPH geomechanics solvers, achieving practical simulation speeds for systems with tens of millions of particles and showing a speedup of up to 180x compared to the optimised multi-core CPU implementation. These advances position GeoDualSPHysics as a versatile, efficient tool for high-fidelity simulations of complex geotechnical systems.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Program summary&lt;/h3&gt;&lt;div&gt;Program title: GeoDualSPHysics&lt;/div&gt;&lt;div&gt;CPC Library link to program files: &lt;span&gt;&lt;span&gt;https://doi.org/10.17632/z4sh62y97g.1&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Licensing provisions: GNU Lesser General Public License&lt;/div&gt;&lt;div&gt;Programming language: C++ and CUDA&lt;/div&gt;&lt;div&gt;Nature of problem: Simulating large deformations in geomaterials and their interactions with movable or fixed solid bodies is critical for addressing engineering challenges such as landslides, soil-machine interactions, and off-road vehicle mobility. While the Smoothed Particle Hydrodynamics (SPH) method is well-suited for modelling continuum-based geomaterial behaviour in these scenarios, critical computational barriers persist, including: (1) numerical instabilities and unphysical noise in large-deformation regimes, (2) inefficiency in scaling simulations to millions of particles for real-world systems, and (3) inadequate frameworks for robust, two-way coupling between deformable geomaterials and multi-body systems. Overcoming these limitations demands stabilized SPH formulations, high-performance computing architectures, and two-way coupling with multibody","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109965"},"PeriodicalIF":3.4,"publicationDate":"2025-12-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145733045","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}
引用次数: 0
Scalable, cloud-based simulations of blood flow and targeted drug delivery in retinal capillaries 可扩展的,基于云的模拟血液流动和视网膜毛细血管靶向药物输送
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-12-01 DOI: 10.1016/j.cpc.2025.109967
Lucas Amoudruz , Sergey Litvinov , Riccardo Murri , Volker Eyrich , Jens Zudrop , Costas Bekas , Petros Koumoutsakos
We investigate the capabilities of cloud computing for large-scale, tightly-coupled simulations of biological fluids in complex geometries, traditionally performed in supercomputing centers. We demonstrate scalable and efficient simulations in the public cloud. We perform meso-scale simulations of blood flow in image-reconstructed capillaries, and examine targeted drug delivery by artificial bacterial flagella (ABFs). The simulations deploy dissipative particle dynamics (DPD) with two software frameworks, Mirheo(developed by our team) and LAMMPS. Mirheoexhibits remarkable weak scalability for up to 512 GPUs. Similarly, LAMMPS demonstrated excellent weak scalability for pure solvent as well as for blood suspensions and ABFs in reconstructed retinal capillaries. In particular, LAMMPS maintained weak scaling above 90 % on the cloud for up to 2000 cores. Our findings demonstrate that cloud computing can support tightly coupled, large-scale scientific simulations with competitive performance.
我们研究了云计算在复杂几何中对生物流体进行大规模、紧密耦合模拟的能力,这些模拟传统上是在超级计算中心进行的。我们在公共云中演示了可扩展和高效的模拟。我们进行了图像重建毛细血管血流的中尺度模拟,并检查了人工细菌鞭毛(ABFs)的靶向药物递送。模拟使用两个软件框架,Mirheo(由我们的团队开发)和LAMMPS部署耗散粒子动力学(DPD)。mirheo表现出显著的弱可扩展性,最多可支持512个gpu。同样,LAMMPS在纯溶剂以及重建视网膜毛细血管中的血液悬浮液和abf中表现出优异的弱可扩展性。特别是,LAMMPS在高达2000核的云中保持了90%以上的弱扩展。我们的研究结果表明,云计算可以支持紧密耦合的、具有竞争力性能的大规模科学模拟。
{"title":"Scalable, cloud-based simulations of blood flow and targeted drug delivery in retinal capillaries","authors":"Lucas Amoudruz ,&nbsp;Sergey Litvinov ,&nbsp;Riccardo Murri ,&nbsp;Volker Eyrich ,&nbsp;Jens Zudrop ,&nbsp;Costas Bekas ,&nbsp;Petros Koumoutsakos","doi":"10.1016/j.cpc.2025.109967","DOIUrl":"10.1016/j.cpc.2025.109967","url":null,"abstract":"<div><div>We investigate the capabilities of cloud computing for large-scale, tightly-coupled simulations of biological fluids in complex geometries, traditionally performed in supercomputing centers. We demonstrate scalable and efficient simulations in the public cloud. We perform meso-scale simulations of blood flow in image-reconstructed capillaries, and examine targeted drug delivery by artificial bacterial flagella (ABFs). The simulations deploy dissipative particle dynamics (DPD) with two software frameworks, Mirheo(developed by our team) and LAMMPS. Mirheoexhibits remarkable weak scalability for up to 512 GPUs. Similarly, LAMMPS demonstrated excellent weak scalability for pure solvent as well as for blood suspensions and ABFs in reconstructed retinal capillaries. In particular, LAMMPS maintained weak scaling above 90 % on the cloud for up to 2000 cores. Our findings demonstrate that cloud computing can support tightly coupled, large-scale scientific simulations with competitive performance.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109967"},"PeriodicalIF":3.4,"publicationDate":"2025-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681671","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}
引用次数: 0
Eschallot: A topology nucleation algorithm for designing stratified, spherically symmetric systems that exhibit complex angular scattering of electromagnetic waves Eschallot:一种用于设计具有复杂电磁波角散射的分层球对称系统的拓扑成核算法
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-28 DOI: 10.1016/j.cpc.2025.109966
Seokhwan Min, Jonghwa Shin
Controlling the scattering of waves from multi-shell spherical systems and particles is a crucial aspect in many applications in photonics such as superdirective antennae and structural coloring. Nevertheless, the effective design of such systems is non-trivial due to the coexistence of topological (number of shells and their material composition) and shape (shell thicknesses) parameters. Thus far, general-purpose algorithms such as parameter sweeps, gradient descent, differential evolution, and deep neural networks have been used to optimize particle shape under one or a few fixed topologies, limiting the complexity and effectiveness of the resulting designs. To address this shortcoming, we present a topology nucleation algorithm that allows the concurrent design of particle topology and shape through the use of a topology derivative expression derived from the transfer matrix formulation of the analytical Mie scattering theory. The principle behind our algorithm can readily be applied to the design of multi-shell spherical systems in other fields such as acoustics and quantum transport.
控制来自多壳球系统和粒子的波的散射在超定向天线和结构着色等光子学的许多应用中是一个至关重要的方面。然而,由于拓扑(壳体数量及其材料组成)和形状(壳体厚度)参数的共存,这种系统的有效设计是非平凡的。到目前为止,诸如参数扫描、梯度下降、差分进化和深度神经网络等通用算法已被用于在一个或几个固定拓扑下优化颗粒形状,这限制了最终设计的复杂性和有效性。为了解决这一缺点,我们提出了一种拓扑成核算法,该算法通过使用从解析Mie散射理论的传递矩阵公式中导出的拓扑导数表达式来允许粒子拓扑和形状的并行设计。我们的算法背后的原理可以很容易地应用于声学和量子输运等其他领域的多壳球系统的设计。
{"title":"Eschallot: A topology nucleation algorithm for designing stratified, spherically symmetric systems that exhibit complex angular scattering of electromagnetic waves","authors":"Seokhwan Min,&nbsp;Jonghwa Shin","doi":"10.1016/j.cpc.2025.109966","DOIUrl":"10.1016/j.cpc.2025.109966","url":null,"abstract":"<div><div>Controlling the scattering of waves from multi-shell spherical systems and particles is a crucial aspect in many applications in photonics such as superdirective antennae and structural coloring. Nevertheless, the effective design of such systems is non-trivial due to the coexistence of topological (number of shells and their material composition) and shape (shell thicknesses) parameters. Thus far, general-purpose algorithms such as parameter sweeps, gradient descent, differential evolution, and deep neural networks have been used to optimize particle shape under one or a few fixed topologies, limiting the complexity and effectiveness of the resulting designs. To address this shortcoming, we present a topology nucleation algorithm that allows the concurrent design of particle topology and shape through the use of a topology derivative expression derived from the transfer matrix formulation of the analytical Mie scattering theory. The principle behind our algorithm can readily be applied to the design of multi-shell spherical systems in other fields such as acoustics and quantum transport.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109966"},"PeriodicalIF":3.4,"publicationDate":"2025-11-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145733048","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}
引用次数: 0
FukuiGrid: A Python code for c-DFT in solid-state chemistry FukuiGrid:固态化学中c-DFT的Python代码
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-27 DOI: 10.1016/j.cpc.2025.109957
Nicolás F. Barrera , Javiera Cabezas-Escares , Mònica Calatayud , Francisco Munoz , Tatiana Gómez , Carlos Cárdenas
FukuiGrid is a Python-based code that calculates Fukui functions and Fukui potentials in systems with periodic boundary conditions, making it a valuable tool for solid-state chemistry. It focuses on chemical reactivity descriptors from Conceptual Density-Functional Theory (c-DFT) and enables the calculation of Fukui functions through methods such as finite differences and interpolation. FukuiGrid addresses the challenges associated with periodic boundary conditions when calculating the electrostatic potential of a Fukui function (known as the Fukui potential) by integrating various corrections to alleviate the compensating background of charge. These corrections include the electrode approach and self-consistent potential correction as post-processing techniques. This package is compatible with VASP outputs and specifically designed to study the reactivity of surfaces and adsorbates. It generates surface reactivity maps and provides insights into adsorption site preferences, as well as regions prone to electron donation or withdrawal. FukuiGrid has been designed to make c-DFT easier for the surface chemistry community.
FukuiGrid是一个基于python的代码,用于计算具有周期性边界条件的系统中的福井函数和福井势,使其成为固态化学的有价值的工具。它侧重于概念密度泛函理论(c-DFT)的化学反应性描述符,并通过有限差分和插值等方法实现福井函数的计算。在计算福井函数的静电势(称为福井势)时,通过积分各种修正来减轻电荷的补偿背景,FukuiGrid解决了与周期性边界条件相关的挑战。这些校正包括电极方法和自一致电位校正作为后处理技术。该包与VASP输出兼容,专门设计用于研究表面和吸附物的反应性。它生成表面反应性图,并提供对吸附位点偏好的见解,以及易于给电子或撤回的区域。FukuiGrid旨在使c-DFT更容易用于表面化学社区。
{"title":"FukuiGrid: A Python code for c-DFT in solid-state chemistry","authors":"Nicolás F. Barrera ,&nbsp;Javiera Cabezas-Escares ,&nbsp;Mònica Calatayud ,&nbsp;Francisco Munoz ,&nbsp;Tatiana Gómez ,&nbsp;Carlos Cárdenas","doi":"10.1016/j.cpc.2025.109957","DOIUrl":"10.1016/j.cpc.2025.109957","url":null,"abstract":"<div><div>FukuiGrid is a Python-based code that calculates Fukui functions and Fukui potentials in systems with periodic boundary conditions, making it a valuable tool for solid-state chemistry. It focuses on chemical reactivity descriptors from Conceptual Density-Functional Theory (c-DFT) and enables the calculation of Fukui functions through methods such as finite differences and interpolation. FukuiGrid addresses the challenges associated with periodic boundary conditions when calculating the electrostatic potential of a Fukui function (known as the Fukui potential) by integrating various corrections to alleviate the compensating background of charge. These corrections include the electrode approach and self-consistent potential correction as post-processing techniques. This package is compatible with VASP outputs and specifically designed to study the reactivity of surfaces and adsorbates. It generates surface reactivity maps and provides insights into adsorption site preferences, as well as regions prone to electron donation or withdrawal. FukuiGrid has been designed to make c-DFT easier for the surface chemistry community.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109957"},"PeriodicalIF":3.4,"publicationDate":"2025-11-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681707","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}
引用次数: 0
TRIMEG-GKX: An electromagnetic gyrokinetic particle code with a piecewise field-aligned finite element method for micro- and macro-instability studies in tokamak core plasmas TRIMEG-GKX:用分段场对准有限元法研究托卡马克核心等离子体微观和宏观不稳定性的电磁陀螺动力学粒子代码
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-27 DOI: 10.1016/j.cpc.2025.109959
Zhixin Lu, Guo Meng, Roman Hatzky, Philipp Lauber, Matthias Hoelzl
The features of the TRIMEG-GKX code are described with emphasis on the exploration using novel/different schemes compared to other gyrokinetic codes, particularly the use of object-oriented programming, filter/buffer-free treatment, and a high-order piecewise field-aligned finite element method. The TRIMEG-GKX code solves the electromagnetic gyrokinetic equation using the particle-in-cell scheme, taking into account multi-species effects and shear Alfvén physics. The mixed-variable/pullback scheme has been implemented to enable electromagnetic studies. This code is parallelized using particle decomposition and domain cloning among computing nodes, replacing traditional domain decomposition techniques. The applications to study the micro- and macro-instabilities are demonstrated, including the energetic-particle-driven Alfvén eigenmode, ion temperature gradient mode, and kinetic ballooning mode. Good performance is achieved in both ad hoc and experimentally reconstructed equilibria, such as those of the ASDEX Upgrade (AUG), Tokamak á configuration variable (TCV), and the Joint European Torus (JET). Future studies of edge physics using the high-order C1 finite element method for triangular meshes in the TRIMEG-C1 code will be built upon the same numerical methods.
描述了TRIMEG-GKX代码的特点,重点是与其他陀螺动力学代码相比,使用新颖/不同的方案进行探索,特别是使用面向对象编程,无过滤器/无缓冲处理和高阶分段场对齐有限元方法。TRIMEG-GKX代码使用粒子单元方案求解电磁回旋动力学方程,考虑了多物种效应和剪切alfv物理。已经实施了混合变量/回拉方案,以便进行电磁研究。该代码使用粒子分解和计算节点间的域克隆进行并行化,取代了传统的域分解技术。在微观和宏观不稳定性的研究中,包括能量粒子驱动的alfv本征模式、离子温度梯度模式和动力学气球模式。在ASDEX升级平衡(AUG)、托卡马克配置变量平衡(TCV)和联合欧洲环面平衡(JET)等特殊平衡和实验重建平衡中都取得了良好的性能。未来使用TRIMEG-C1代码中三角网格的高阶C1有限元方法进行边缘物理的研究将建立在相同的数值方法之上。
{"title":"TRIMEG-GKX: An electromagnetic gyrokinetic particle code with a piecewise field-aligned finite element method for micro- and macro-instability studies in tokamak core plasmas","authors":"Zhixin Lu,&nbsp;Guo Meng,&nbsp;Roman Hatzky,&nbsp;Philipp Lauber,&nbsp;Matthias Hoelzl","doi":"10.1016/j.cpc.2025.109959","DOIUrl":"10.1016/j.cpc.2025.109959","url":null,"abstract":"<div><div>The features of the TRIMEG-GKX code are described with emphasis on the exploration using novel/different schemes compared to other gyrokinetic codes, particularly the use of object-oriented programming, filter/buffer-free treatment, and a high-order piecewise field-aligned finite element method. The TRIMEG-GKX code solves the electromagnetic gyrokinetic equation using the particle-in-cell scheme, taking into account multi-species effects and shear Alfvén physics. The mixed-variable/pullback scheme has been implemented to enable electromagnetic studies. This code is parallelized using particle decomposition and domain cloning among computing nodes, replacing traditional domain decomposition techniques. The applications to study the micro- and macro-instabilities are demonstrated, including the energetic-particle-driven Alfvén eigenmode, ion temperature gradient mode, and kinetic ballooning mode. Good performance is achieved in both ad hoc and experimentally reconstructed equilibria, such as those of the ASDEX Upgrade (AUG), Tokamak á configuration variable (TCV), and the Joint European Torus (JET). Future studies of edge physics using the high-order <em>C</em><sup>1</sup> finite element method for triangular meshes in the TRIMEG-C1 code will be built upon the same numerical methods.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109959"},"PeriodicalIF":3.4,"publicationDate":"2025-11-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681673","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}
引用次数: 0
Mapping strain at the atomic scale with PyNanospacing: An AI-assisted approach to TEM image processing and visualization 用PyNanospacing在原子尺度上映射应变:一种人工智能辅助的TEM图像处理和可视化方法
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-26 DOI: 10.1016/j.cpc.2025.109954
Mehmet Ali Sarsıl , Mubashir Mansoor , Mert Saraçoğlu , Servet Timur , Onur Ergen
<div><div>The diverse spectrum of material characteristics, including band gap, mechanical moduli, color, phonon and electronic density of states, along with catalytic and surface properties, are intricately intertwined with the atomic structure and the corresponding interatomic bond lengths. This interconnection extends to the manifestation of interplanar spacings within a crystalline lattice. Analysis of these interplanar spacings and the comprehension of any deviations-whether it be lattice compression or expansion, commonly referred to as strain, hold paramount significance in unraveling various unknowns within the field. Transmission Electron Microscopy (TEM) is widely used to capture these atomic-scale ordering, facilitating direct investigation of interplanar spacings. However, creating critical contour maps for visualizing and interpreting lattice stresses in TEM images remains a challenging task. This study introduces an open-source, AI-assisted application, developed entirely in Python, for processing TEM images to facilitate strain analysis through advanced visualization techniques. This application is designed to process a diverse range of materials, including nanoparticles, 2D materials, pure crystals, and solid solutions. By converting local variations in interplanar spacings into contour maps, it provides a visual representation of lattice expansion and compression. With highly versatile settings, as detailed in this paper, the tool is readily accessible for TEM image-based material analysis. It facilitates an in-depth exploration of strain engineering by generating strain contour maps at the atomic scale, offering valuable insights into material properties. <strong>Program summary</strong> <em>Program Title:</em> PyNanoSpacing <em>CPC Library link to program files:</em> “<span><span>https://doi.org/10.17632/y864t5ykxx.1</span><svg><path></path></svg></span> ” <em>Developer’s repository link:</em> “<span><span>https://github.com/malisarsil/PyNanoSpacing</span><svg><path></path></svg></span> ” <em>Licensing provisions:</em> MIT license <em>Programming language:</em> Python 3.11 <em>Nature of problem:</em> Transmission Electron Microscopy (TEM) is widely used to analyze lattice structures in materials, but extracting quantitative strain information from TEM images remains challenging. Existing tools often lack automation, requiring manual calibration and region selection, leading to inconsistencies. Researchers need a user-friendly, automated solution to analyze local lattice strains and interplanar spacing variations efficiently. <em>Solution method:</em> The developed desktop application simplifies TEM image strain analysis by automating key steps. It extracts image details (such as scale and resolution) and detects atomic regions using AI-based segmentation. A correction step ensures proper alignment before measuring interlayer distances, which are then color-mapped to show strain variations. A smoothing technique is applied to re
材料特性的不同光谱,包括带隙、机械模量、颜色、声子和电子态密度,以及催化和表面性质,与原子结构和相应的原子间键长度错综复杂地交织在一起。这种相互连接延伸到晶格内的面间间隔的表现。对这些面间间距的分析和对任何偏差的理解——无论是晶格压缩还是膨胀,通常被称为应变——对于揭示场内各种未知因素具有至关重要的意义。透射电子显微镜(TEM)被广泛用于捕捉这些原子尺度的有序,方便了对面间间距的直接研究。然而,在TEM图像中创建用于可视化和解释晶格应力的关键等高线图仍然是一项具有挑战性的任务。本研究介绍了一个完全用Python开发的开源ai辅助应用程序,用于处理TEM图像,以便通过先进的可视化技术进行应变分析。该应用程序旨在处理各种材料,包括纳米颗粒,2D材料,纯晶体和固溶体。通过将平面间距的局部变化转换为等高线图,它提供了晶格扩展和压缩的可视化表示。如本文所述,该工具具有高度通用的设置,可以很容易地用于基于TEM图像的材料分析。它通过在原子尺度上生成应变等高线图,促进了对应变工程的深入探索,为材料特性提供了有价值的见解。程序摘要程序标题:PyNanoSpacing CPC库链接到程序文件:“ https://doi.org/10.17632/y864t5ykxx.1 ”开发人员的存储库链接:“ https://github.com/malisarsil/PyNanoSpacing ”许可条款:MIT许可编程语言:Python 3.11问题的性质:透射电子显微镜(TEM)被广泛用于分析材料中的晶格结构,但从TEM图像中提取定量应变信息仍然具有挑战性。现有的工具往往缺乏自动化,需要手动校准和区域选择,导致不一致。研究人员需要一种用户友好的自动化解决方案来有效地分析局部晶格应变和面间距变化。解决方法:开发的桌面应用程序通过自动化关键步骤简化了TEM图像应变分析。它提取图像细节(如规模和分辨率),并使用基于人工智能的分割检测原子区域。校正步骤确保在测量层间距离之前正确对齐,然后用颜色映射以显示应变变化。平滑技术应用于减少噪音,同时保留重要的细节。结果可以导出到Excel,以便进一步分析。这个用户友好的工具集成了人工智能和图像处理,使TEM图像中的应变映射更快,更容易访问。
{"title":"Mapping strain at the atomic scale with PyNanospacing: An AI-assisted approach to TEM image processing and visualization","authors":"Mehmet Ali Sarsıl ,&nbsp;Mubashir Mansoor ,&nbsp;Mert Saraçoğlu ,&nbsp;Servet Timur ,&nbsp;Onur Ergen","doi":"10.1016/j.cpc.2025.109954","DOIUrl":"10.1016/j.cpc.2025.109954","url":null,"abstract":"&lt;div&gt;&lt;div&gt;The diverse spectrum of material characteristics, including band gap, mechanical moduli, color, phonon and electronic density of states, along with catalytic and surface properties, are intricately intertwined with the atomic structure and the corresponding interatomic bond lengths. This interconnection extends to the manifestation of interplanar spacings within a crystalline lattice. Analysis of these interplanar spacings and the comprehension of any deviations-whether it be lattice compression or expansion, commonly referred to as strain, hold paramount significance in unraveling various unknowns within the field. Transmission Electron Microscopy (TEM) is widely used to capture these atomic-scale ordering, facilitating direct investigation of interplanar spacings. However, creating critical contour maps for visualizing and interpreting lattice stresses in TEM images remains a challenging task. This study introduces an open-source, AI-assisted application, developed entirely in Python, for processing TEM images to facilitate strain analysis through advanced visualization techniques. This application is designed to process a diverse range of materials, including nanoparticles, 2D materials, pure crystals, and solid solutions. By converting local variations in interplanar spacings into contour maps, it provides a visual representation of lattice expansion and compression. With highly versatile settings, as detailed in this paper, the tool is readily accessible for TEM image-based material analysis. It facilitates an in-depth exploration of strain engineering by generating strain contour maps at the atomic scale, offering valuable insights into material properties. &lt;strong&gt;Program summary&lt;/strong&gt; &lt;em&gt;Program Title:&lt;/em&gt; PyNanoSpacing &lt;em&gt;CPC Library link to program files:&lt;/em&gt; “&lt;span&gt;&lt;span&gt;https://doi.org/10.17632/y864t5ykxx.1&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt; ” &lt;em&gt;Developer’s repository link:&lt;/em&gt; “&lt;span&gt;&lt;span&gt;https://github.com/malisarsil/PyNanoSpacing&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt; ” &lt;em&gt;Licensing provisions:&lt;/em&gt; MIT license &lt;em&gt;Programming language:&lt;/em&gt; Python 3.11 &lt;em&gt;Nature of problem:&lt;/em&gt; Transmission Electron Microscopy (TEM) is widely used to analyze lattice structures in materials, but extracting quantitative strain information from TEM images remains challenging. Existing tools often lack automation, requiring manual calibration and region selection, leading to inconsistencies. Researchers need a user-friendly, automated solution to analyze local lattice strains and interplanar spacing variations efficiently. &lt;em&gt;Solution method:&lt;/em&gt; The developed desktop application simplifies TEM image strain analysis by automating key steps. It extracts image details (such as scale and resolution) and detects atomic regions using AI-based segmentation. A correction step ensures proper alignment before measuring interlayer distances, which are then color-mapped to show strain variations. A smoothing technique is applied to re","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109954"},"PeriodicalIF":3.4,"publicationDate":"2025-11-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681710","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}
引用次数: 0
Software for simulation and analysis of far-field diffraction patterns in transient grating spectroscopy 瞬态光栅光谱中远场衍射图样的模拟和分析软件
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-25 DOI: 10.1016/j.cpc.2025.109964
Andrii Goloborodko , Myhailo Kotov , Carles Serrat
We present a software package for the simulation and analysis of far-field diffraction patterns in transient grating (TG) spectroscopy. The code is designed to assist both experimental planning and post-processing interpretation by modeling the optical response of TG configurations across a wide range of conditions. It supports input through structured MATLAB variables or Excel-based spreadsheets and provides automated consistency checks and visual output generation. The implementation includes integration over detector pixels, enabling realistic simulations that account for spatial averaging and resolution effects. We demonstrate the software’s capabilities through representative use cases, including the influence of the grating-to-sample distance, the pump-to-probe intensity ratio, and the selection of the division parameter governing pixel integration accuracy. The code is freely available and modular, facilitating its adaptation to different experimental geometries and beam conditions. While full validation is provided elsewhere, this work establishes the core methodology and illustrates the practical value of the tool for TG spectroscopy research.
Program summary
Program title: TGCalc.
Licensing provisions: GNU GPLv3.
Programming language: MATLAB/GNU Octave.
Operating system: Linux and Windows.
Nature of problem: The code has been developed to compute diffraction patterns of light in a transient grating geometry scheme. The output intensity distribution is calculated based on the diffraction integral in the Fresnel and Fraunhofer regimes. Together with the diffraction pattern, the spatial harmonics are obtained using a post-processing script based on the input data filename.
Solution method: The diffraction image is calculated as the diffraction integral over the whole space of a Gaussian beam and normalized by its maximum value. For a Gaussian beam with a spherical approximation of the wavefront, an analytical expression of the electromagnetic field in the Fresnel and Fraunhofer regimes is developed, and a calculation code is implemented.
Additional comments: The TGCalc script has been tested with MATLAB versions R2021a, R2022b, and R2024b. The script also works under GNU Octave software (tested with version 4.0.0). However, under GNU Octave, the matrix data writing could give an error due to the file writeout permissions.
我们提出了一个用于模拟和分析瞬态光栅(TG)光谱远场衍射图的软件包。该代码旨在通过在广泛的条件下模拟TG配置的光学响应来协助实验计划和后处理解释。它支持通过结构化的MATLAB变量或基于excel的电子表格输入,并提供自动一致性检查和可视化输出生成。该实现包括探测器像素的集成,实现了考虑空间平均和分辨率影响的真实模拟。我们通过代表性的用例展示了软件的功能,包括光栅与样本距离的影响,泵与探针强度比,以及控制像素集成精度的分割参数的选择。代码是免费的和模块化的,便于其适应不同的实验几何形状和光束条件。虽然在其他地方提供了充分的验证,但这项工作建立了核心方法,并说明了热重光谱研究工具的实用价值。项目简介项目名称:TGCalc。许可条款:GNU GPLv3。编程语言:MATLAB/GNU Octave。操作系统:Linux、Windows。问题性质:该代码已开发计算光的衍射模式在瞬态光栅几何方案。根据菲涅耳区和弗劳恩霍夫区的衍射积分计算了输出光强分布。结合衍射图,利用基于输入数据文件名的后处理脚本获得空间谐波。求解方法:将衍射像计算为高斯光束在整个空间上的衍射积分,并按其最大值归一化。对于波前近似为球形的高斯光束,给出了菲涅耳和弗劳恩霍夫电磁场的解析表达式,并实现了计算程序。附加注释:TGCalc脚本已在MATLAB版本R2021a, R2022b和R2024b中进行了测试。该脚本也可以在GNU Octave软件下工作(使用版本4.0.0进行测试)。然而,在GNU Octave下,由于文件写权限,矩阵数据写入可能会产生错误。
{"title":"Software for simulation and analysis of far-field diffraction patterns in transient grating spectroscopy","authors":"Andrii Goloborodko ,&nbsp;Myhailo Kotov ,&nbsp;Carles Serrat","doi":"10.1016/j.cpc.2025.109964","DOIUrl":"10.1016/j.cpc.2025.109964","url":null,"abstract":"<div><div>We present a software package for the simulation and analysis of far-field diffraction patterns in transient grating (TG) spectroscopy. The code is designed to assist both experimental planning and post-processing interpretation by modeling the optical response of TG configurations across a wide range of conditions. It supports input through structured MATLAB variables or Excel-based spreadsheets and provides automated consistency checks and visual output generation. The implementation includes integration over detector pixels, enabling realistic simulations that account for spatial averaging and resolution effects. We demonstrate the software’s capabilities through representative use cases, including the influence of the grating-to-sample distance, the pump-to-probe intensity ratio, and the selection of the division parameter governing pixel integration accuracy. The code is freely available and modular, facilitating its adaptation to different experimental geometries and beam conditions. While full validation is provided elsewhere, this work establishes the core methodology and illustrates the practical value of the tool for TG spectroscopy research.</div><div><strong>Program summary</strong></div><div><em>Program title</em>: TGCalc.</div><div><em>Licensing provisions</em>: GNU GPLv3.</div><div><em>Programming language</em>: MATLAB/GNU Octave.</div><div><em>Operating system</em>: Linux and Windows.</div><div><em>Nature of problem</em>: The code has been developed to compute diffraction patterns of light in a transient grating geometry scheme. The output intensity distribution is calculated based on the diffraction integral in the Fresnel and Fraunhofer regimes. Together with the diffraction pattern, the spatial harmonics are obtained using a post-processing script based on the input data filename.</div><div><em>Solution method</em>: The diffraction image is calculated as the diffraction integral over the whole space of a Gaussian beam and normalized by its maximum value. For a Gaussian beam with a spherical approximation of the wavefront, an analytical expression of the electromagnetic field in the Fresnel and Fraunhofer regimes is developed, and a calculation code is implemented.</div><div><em>Additional comments</em>: The <span>TGCalc</span> script has been tested with MATLAB versions R2021a, R2022b, and R2024b. The script also works under GNU Octave software (tested with version 4.0.0). However, under GNU Octave, the matrix data writing could give an error due to the file writeout permissions.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109964"},"PeriodicalIF":3.4,"publicationDate":"2025-11-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681709","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}
引用次数: 0
MHIT36: Extension to wall-bounded turbulence and scalar transport equation 有壁湍流和标量输运方程的推广
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-25 DOI: 10.1016/j.cpc.2025.109956
Alessio Roccon
We present an extended version of MHIT36, a GPU-tailored solver for interface-resolved simulations of multiphase turbulence. The framework couples direct numerical simulation (DNS) of the Navier–Stokes equations, which describe the flow field, with a phase-field method to capture interfacial phenomena. In addition, the transport equation for a scalar can also be solved. The governing equations are discretized using a second-order finite difference scheme. The Navier–Stokes equations are time advanced with an explicit fractional-step method, and the resulting pressure Poisson equation is solved using a FFT-based method. The accurate conservative diffuse interface (ACDI) formulation is used to describe the transport of the phase-field variable. Simulations can be performed in two configurations: a triply-periodic cubic domain or a rectangular domain of arbitrary dimensions bounded by two walls. From a computational standpoint, MHIT36 employs a two-dimensional domain decomposition to distribute the workload across MPI tasks. The cuDecomp library is used to perform pencil transpositions and halo updates, while the cuFFT library and OpenACC directives are leveraged to offload the remaining computational kernels to the GPU. MHIT36 is developed using the managed memory feature and it provides a baseline code that is easy to further extend and modify. MHIT36 is released open source under the MIT license.
我们提出了一个扩展版本的MHIT36,一个gpu定制的求解器,用于多相湍流的界面解析模拟。该框架将描述流场的Navier-Stokes方程的直接数值模拟(DNS)与相场方法相结合,以捕捉界面现象。此外,还可以求解标量的输运方程。采用二阶有限差分格式对控制方程进行离散化。采用显式分步法对Navier-Stokes方程进行时间推进,并采用基于fft的方法求解得到的压力泊松方程。采用精确保守扩散界面(ACDI)公式来描述相场变量的输运。模拟可以在两种配置下进行:三周期立方域或任意尺寸的由两面墙包围的矩形域。从计算的角度来看,MHIT36采用二维域分解来跨MPI任务分配工作负载。cuDecomp库用于执行铅笔换位和光晕更新,而cuFFT库和OpenACC指令用于将剩余的计算内核卸载到GPU。MHIT36是使用托管内存特性开发的,它提供了一个易于进一步扩展和修改的基准代码。MHIT36是在MIT许可下开源发布的。
{"title":"MHIT36: Extension to wall-bounded turbulence and scalar transport equation","authors":"Alessio Roccon","doi":"10.1016/j.cpc.2025.109956","DOIUrl":"10.1016/j.cpc.2025.109956","url":null,"abstract":"<div><div>We present an extended version of MHIT36, a GPU-tailored solver for interface-resolved simulations of multiphase turbulence. The framework couples direct numerical simulation (DNS) of the Navier–Stokes equations, which describe the flow field, with a phase-field method to capture interfacial phenomena. In addition, the transport equation for a scalar can also be solved. The governing equations are discretized using a second-order finite difference scheme. The Navier–Stokes equations are time advanced with an explicit fractional-step method, and the resulting pressure Poisson equation is solved using a FFT-based method. The accurate conservative diffuse interface (ACDI) formulation is used to describe the transport of the phase-field variable. Simulations can be performed in two configurations: a triply-periodic cubic domain or a rectangular domain of arbitrary dimensions bounded by two walls. From a computational standpoint, MHIT36 employs a two-dimensional domain decomposition to distribute the workload across MPI tasks. The cuDecomp library is used to perform pencil transpositions and halo updates, while the cuFFT library and OpenACC directives are leveraged to offload the remaining computational kernels to the GPU. MHIT36 is developed using the managed memory feature and it provides a baseline code that is easy to further extend and modify. MHIT36 is released open source under the MIT license.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109956"},"PeriodicalIF":3.4,"publicationDate":"2025-11-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145616112","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}
引用次数: 0
期刊
Computer Physics Communications
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1