首页 > 最新文献

Computer Physics Communications最新文献

英文 中文
CASL-HJX: A comprehensive guide to solving deterministic and stochastic hamilton-Jacobi equations 求解确定性和随机哈密顿-雅可比方程的综合指南
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-05 DOI: 10.1016/j.cpc.2025.109941
Faranak Rajabi, Jacob Fingerman, Andrew Wang, Jeff Moehlis, Frederic Gibou
CASL-HJX is a high-performance C++ framework for solving deterministic and stochastic Hamilton-Jacobi equations in two spatial dimensions. It integrates operator-splitting techniques with implicit treatment of parabolic terms, yielding substantial speedups over explicit methods commonly used for stochastic problems. The solver leverages monotone schemes to ensure convergence to viscosity solutions, for which we provide numerical evidence through systematic validation. The Hamilton-Jacobi-Bellman formulation enables global optimization beyond local methods. This performance advantage opens the door to applications that were previously intractable, including real-time control and rapid design iteration. We demonstrate the framework’s capabilities on benchmark PDEs as well as a neuroscience case study designing energy-efficient controllers for neural populations. The modular architecture allows users to define custom Hamiltonians and boundary conditions, making CASL-HJX broadly applicable to optimal control, front propagation, and uncertainty quantification across finance, engineering, and machine learning. Although currently limited to two spatial dimensions, CASL-HJX addresses critical gaps where gradient-based methods struggle in non-convex landscapes and local optimization yields suboptimal results. Complete source code, documentation, and examples are freely available.
CASL-HJX是一个高性能的c++框架,用于求解两个空间维度的确定性和随机Hamilton-Jacobi方程。它将算子分裂技术与抛物线项的隐式处理相结合,比通常用于随机问题的显式方法产生了实质性的加速。求解器利用单调格式来确保收敛到粘度解,为此我们通过系统验证提供了数值证据。Hamilton-Jacobi-Bellman公式使全局优化超越了局部方法。这种性能优势为以前难以解决的应用程序打开了大门,包括实时控制和快速设计迭代。我们展示了该框架在基准pde上的能力,以及为神经群设计节能控制器的神经科学案例研究。模块化架构允许用户定义自定义哈密顿量和边界条件,使CASL-HJX广泛适用于金融、工程和机器学习领域的最优控制、前传播和不确定性量化。尽管目前仅限于两个空间维度,CASL-HJX解决了基于梯度的方法在非凸景观中挣扎的关键空白,以及局部优化产生次优结果的问题。完整的源代码、文档和示例是免费提供的。
{"title":"CASL-HJX: A comprehensive guide to solving deterministic and stochastic hamilton-Jacobi equations","authors":"Faranak Rajabi,&nbsp;Jacob Fingerman,&nbsp;Andrew Wang,&nbsp;Jeff Moehlis,&nbsp;Frederic Gibou","doi":"10.1016/j.cpc.2025.109941","DOIUrl":"10.1016/j.cpc.2025.109941","url":null,"abstract":"<div><div>CASL-HJX is a high-performance C++ framework for solving deterministic and stochastic Hamilton-Jacobi equations in two spatial dimensions. It integrates operator-splitting techniques with implicit treatment of parabolic terms, yielding substantial speedups over explicit methods commonly used for stochastic problems. The solver leverages monotone schemes to ensure convergence to viscosity solutions, for which we provide numerical evidence through systematic validation. The Hamilton-Jacobi-Bellman formulation enables global optimization beyond local methods. This performance advantage opens the door to applications that were previously intractable, including real-time control and rapid design iteration. We demonstrate the framework’s capabilities on benchmark PDEs as well as a neuroscience case study designing energy-efficient controllers for neural populations. The modular architecture allows users to define custom Hamiltonians and boundary conditions, making CASL-HJX broadly applicable to optimal control, front propagation, and uncertainty quantification across finance, engineering, and machine learning. Although currently limited to two spatial dimensions, CASL-HJX addresses critical gaps where gradient-based methods struggle in non-convex landscapes and local optimization yields suboptimal results. Complete source code, documentation, and examples are freely available.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109941"},"PeriodicalIF":3.4,"publicationDate":"2025-11-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145576714","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
Calculating the demagnetisation factors and their volume distribution within (a) assemblies of discrete magnetic elements and (b) solid magnetic samples of any given shape: A material-independent and multi-scalar polar model approach 计算(a)离散磁性元件组件和(b)任何给定形状的固体磁性样品中的退磁因子及其体积分布:一种与材料无关的多标量极性模型方法
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-04 DOI: 10.1016/j.cpc.2025.109938
Steven M. McCann, Tim Mercer
Measuring the magnetic characteristics of a magnetic sample, it is critical to evaluate the self-demagnetisation field, because it reduces the effective magnetic field experienced by the sample. The demagnetisation factor depends on the shape and nature of the sample, whether it is a solid, ordered assembly of magnetic elements, or randomly packed magnetic powder in a containing vessel. Literature provides limited information on the demagnetisation factor of packed powders, typically for a restricted number of container shapes. This paper introduces algorithms based on a polar model written in MATLAB 2022b, which calculates not only the average demagnetisation factor but also the entire distribution of demagnetisation factors for the constituent particles and, by extension, to any assembly of magnetic elements within a given volume. Furthermore, this study explains how to enhance the efficiency of these algorithms, reduce runtime, and apply them to any container shape.
The validity of the algorithms was assessed by calculating the data for three common container shapes described in literature over a range of aspect ratios: cuboids, ellipsoids, and cylinders. The calculated mean demagnetisation factors matched those found in the literature, typically within 0.05 %, 0.1 %, and 1 %, respectively, for these shapes, demonstrating that the algorithms could be extrapolated to calculate demagnetisation data for any container shape; by extension, the magnetometric demagnetisation factor (zero susceptibility) for any solid shape, a hitherto unattainable parameter.
As the method reduces to calculations based on geometry alone, it is material-independent and can be applied to any macro-, meso-, or microscale of interest.
测量磁性样品的磁特性,评估自退磁场是至关重要的,因为它降低了样品所经历的有效磁场。退磁系数取决于样品的形状和性质,无论它是固体,有序的磁性元素组装,还是在容器中随机包装的磁性粉末。文献提供了有限的信息消磁因子的包装粉末,通常为有限数量的容器形状。本文介绍了基于MATLAB 2022b编写的极性模型的算法,该算法不仅计算了组成粒子的平均消磁因子,还计算了组成粒子的消磁因子的整体分布,进而扩展到给定体积内任何磁性元素的组合。此外,本研究解释了如何提高这些算法的效率,减少运行时间,并将它们应用于任何容器形状。通过计算文献中描述的三种常见容器形状的数据(长方体、椭球体和圆柱体)来评估算法的有效性。计算出的平均消磁系数与文献中发现的相匹配,对于这些形状,通常分别在0.05%,0.1%和1%以内,这表明该算法可以外推到计算任何容器形状的消磁数据;推及任何固体形状的磁强消磁系数(零磁化率),这是迄今为止无法达到的参数。由于该方法简化为仅基于几何的计算,它与材料无关,可以应用于任何感兴趣的宏观、中观或微观尺度。
{"title":"Calculating the demagnetisation factors and their volume distribution within (a) assemblies of discrete magnetic elements and (b) solid magnetic samples of any given shape: A material-independent and multi-scalar polar model approach","authors":"Steven M. McCann,&nbsp;Tim Mercer","doi":"10.1016/j.cpc.2025.109938","DOIUrl":"10.1016/j.cpc.2025.109938","url":null,"abstract":"<div><div>Measuring the magnetic characteristics of a magnetic sample, it is critical to evaluate the self-demagnetisation field, because it reduces the effective magnetic field experienced by the sample. The demagnetisation factor depends on the shape and nature of the sample, whether it is a solid, ordered assembly of magnetic elements, or randomly packed magnetic powder in a containing vessel. Literature provides limited information on the demagnetisation factor of packed powders, typically for a restricted number of container shapes. This paper introduces algorithms based on a polar model written in MATLAB 2022b, which calculates not only the average demagnetisation factor but also the entire distribution of demagnetisation factors for the constituent particles and, by extension, to any assembly of magnetic elements within a given volume. Furthermore, this study explains how to enhance the efficiency of these algorithms, reduce runtime, and apply them to any container shape.</div><div>The validity of the algorithms was assessed by calculating the data for three common container shapes described in literature over a range of aspect ratios: cuboids, ellipsoids, and cylinders. The calculated mean demagnetisation factors matched those found in the literature, typically within 0.05 %, 0.1 %, and 1 %, respectively, for these shapes, demonstrating that the algorithms could be extrapolated to calculate demagnetisation data for any container shape; by extension, the magnetometric demagnetisation factor (zero susceptibility) for any solid shape, a hitherto unattainable parameter.</div><div>As the method reduces to calculations based on geometry alone, it is material-independent and can be applied to any macro-, meso-, or microscale of interest.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109938"},"PeriodicalIF":3.4,"publicationDate":"2025-11-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145517655","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
GPU-optimized adaptive mesh refinement for scalable two-phase resolved CFD-DEM simulations on unstructured hexahedral grids 非结构化六面体网格上可扩展两相分辨CFD-DEM模拟的gpu优化自适应网格细化
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-03 DOI: 10.1016/j.cpc.2025.109939
Tao Yu, Jidong Zhao
Adaptive mesh refinement (AMR) is essential for accurately resolving interfacial dynamics in resolved coupled computational fluid dynamics-discrete element method (CFD-DEM) and two-phase CFD simulations. However, traditional methods struggle with logical complexity and memory inefficiency when applied to unstructured grids on GPU architectures. This paper presents a novel GPU-accelerated AMR algorithm that eliminates CPU-GPU data transfers and minimizes grid manipulation overhead through a compressed data format and topology-aware reuse strategies. By reconstructing mesh topology entirely on the GPU and retaining parent-mesh indexing, our method reduces AMR-related computational overhead to less than 25% of the total simulation time while ensuring full compatibility with unstructured granular domains. A CUDA-centric implementation, validated across five benchmarks and two powder-based additive manufacturing applications, demonstrates that our framework achieves accuracy comparable to uniformly refined grids with 50% lower computational effort. Furthermore, it exhibits near-linear throughput performance with increasing problem size and achieves over 20 × speedup in large-scale laser powder bed fusion simulations when integrated with GPU-accelerated CFD-DEM solvers. The scalability of the algorithm is further highlighted through hexahedral mesh case studies, with extensibility to general unstructured grids via sub-mesh templating. These advancements enable high-fidelity, GPU-native simulations of complex fluid-particle systems, effectively bridging the gap between adaptive resolution and large-scale parallelism in complex two-phase resolved CFD-DEM simulations.
在求解耦合计算流体力学-离散元法(CFD- dem)和两相CFD模拟中,自适应网格细化(AMR)是精确求解界面动力学的关键。然而,传统方法在应用于GPU架构上的非结构化网格时存在逻辑复杂性和内存效率低下的问题。本文提出了一种新的gpu加速AMR算法,该算法通过压缩数据格式和拓扑感知重用策略消除了CPU-GPU数据传输,并最大限度地减少了网格操作开销。通过完全在GPU上重建网格拓扑并保留父网格索引,我们的方法将amr相关的计算开销减少到总模拟时间的25%以下,同时确保与非结构化颗粒域的完全兼容性。以cuda为中心的实现,在五个基准测试和两个基于粉末的增材制造应用中进行了验证,表明我们的框架实现了与均匀精细网格相当的精度,计算量减少了50%。此外,随着问题规模的增加,它表现出接近线性的吞吐量性能,并且在与gpu加速的CFD-DEM求解器集成时,在大规模激光粉末床聚变模拟中实现了超过20倍的加速。通过六面体网格实例研究进一步突出了该算法的可扩展性,并通过子网格模板扩展到一般非结构化网格。这些进步使复杂流体-颗粒系统的高保真、gpu原生模拟成为可能,有效地弥合了复杂两相分辨CFD-DEM模拟中自适应分辨率和大规模并行性之间的差距。
{"title":"GPU-optimized adaptive mesh refinement for scalable two-phase resolved CFD-DEM simulations on unstructured hexahedral grids","authors":"Tao Yu,&nbsp;Jidong Zhao","doi":"10.1016/j.cpc.2025.109939","DOIUrl":"10.1016/j.cpc.2025.109939","url":null,"abstract":"<div><div>Adaptive mesh refinement (AMR) is essential for accurately resolving interfacial dynamics in resolved coupled computational fluid dynamics-discrete element method (CFD-DEM) and two-phase CFD simulations. However, traditional methods struggle with logical complexity and memory inefficiency when applied to unstructured grids on GPU architectures. This paper presents a novel GPU-accelerated AMR algorithm that eliminates CPU-GPU data transfers and minimizes grid manipulation overhead through a compressed data format and topology-aware reuse strategies. By reconstructing mesh topology entirely on the GPU and retaining parent-mesh indexing, our method reduces AMR-related computational overhead to less than 25% of the total simulation time while ensuring full compatibility with unstructured granular domains. A CUDA-centric implementation, validated across five benchmarks and two powder-based additive manufacturing applications, demonstrates that our framework achieves accuracy comparable to uniformly refined grids with 50% lower computational effort. Furthermore, it exhibits near-linear throughput performance with increasing problem size and achieves over 20 <span><math><mo>×</mo></math></span> speedup in large-scale laser powder bed fusion simulations when integrated with GPU-accelerated CFD-DEM solvers. The scalability of the algorithm is further highlighted through hexahedral mesh case studies, with extensibility to general unstructured grids via sub-mesh templating. These advancements enable high-fidelity, GPU-native simulations of complex fluid-particle systems, effectively bridging the gap between adaptive resolution and large-scale parallelism in complex two-phase resolved CFD-DEM simulations.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109939"},"PeriodicalIF":3.4,"publicationDate":"2025-11-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145517653","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
IRAND-Sim-02: A flexible GUI-based simulation package for the IRAND (IRan ANtineutrino Detector) IRAND- sim -02:一个灵活的基于gui的IRAND(伊朗反中微子探测器)仿真包
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-03 DOI: 10.1016/j.cpc.2025.109932
Mahdieh Sadat Mousavi, Faezeh Rahmani
The IRAND (a segmented plastic scintillator IRan ANtineutrino Detector; a 10 × 10 array of plastic scintillation) is Iran’s only segmented antineutrino detector, designed for reactor antineutrino detection in safeguards and reactor monitoring applications. While previous simulations of the IRAND have been conducted, they have been constrained by fixed structural specifications and rigid parameter frameworks, lacking a user-friendly, flexible simulation package essential for advanced simulation-based design. To address this gap, we present IRAND-Sim-02, a novel GUI-based simulation package developed using the Geant4 Monte Carlo toolkit, Qt framework, and Python. This package facilitates real-time, interactive simulations of the IRAND, enabling precise modeling of antineutrino interactions and cosmic muon events, which constitute the dominant background in antineutrino detection. IRAND-Sim-02 offers researchers an intuitive interface to dynamically configure simulation parameters, model event interactions, and generate automated real-time reports on event behaviors. Its user-friendly design ensures accessibility for a broad range of users, including those without prior expertise in Geant4 or Python, thereby streamlining the simulation process and enhancing research efficiency in antineutrino detection and reactor monitoring.
Program summary
Program title: IRAND-Sim-02.
CPC Library link to program files: Data will be available on request.
Licensing provisions: GPLv3.
Programming language: C++, Python.
Nature of problem: The earlier IRAND simulations use fixed structures, rigid parameters, and need Geant4 expertise. This complexity limits adaptability, prevents testing new configurations, and makes the tool inaccessible to users without coding skills, which slows research on antineutrino detection and background events.
Solution method: The solution is IRAND-Sim-02, a flexible, GUI-based simulation package built with Geant4, Qt, and Python. It lets users configure simulation parameters in real time, interact intuitively, and get automated event reports, so even without coding skills they can efficiently simulate the IRAND and antineutrino/cosmic muon events easily.
IRAND(分段塑料闪烁体伊朗反中微子探测器;一个10 × 10的塑料闪烁阵列)是伊朗唯一的分段反中微子探测器,设计用于反应堆反中微子探测安全保障和反应堆监测应用。虽然之前已经进行了IRAND的模拟,但它们受到固定结构规格和刚性参数框架的限制,缺乏用户友好的、灵活的模拟软件包,这对于基于高级模拟的设计至关重要。为了解决这一差距,我们提出了IRAND-Sim-02,这是一种使用Geant4蒙特卡罗工具包、Qt框架和Python开发的基于gui的新型仿真包。该软件包促进了IRAND的实时、交互式模拟,实现了反中微子相互作用和宇宙介子事件的精确建模,这构成了反中微子探测的主要背景。IRAND-Sim-02为研究人员提供了一个直观的界面,可以动态配置仿真参数,模拟事件交互,并生成关于事件行为的自动实时报告。其用户友好的设计确保了广泛用户的可访问性,包括那些没有Geant4或Python专业知识的用户,从而简化了模拟过程,提高了反中微子探测和反应堆监测的研究效率。项目名称:IRAND-Sim-02。CPC图书馆链接到程序文件:数据将根据要求提供。许可条款:GPLv3。编程语言:c++, Python。问题的性质:早期的IRAND模拟使用固定结构,刚性参数,并且需要Geant4专业知识。这种复杂性限制了适应性,阻碍了新配置的测试,并且使得没有编码技能的用户无法使用该工具,从而减慢了反中微子探测和背景事件的研究。解决方法:解决方案是IRAND-Sim-02,这是一个灵活的、基于gui的仿真包,使用Geant4、Qt和Python构建。它允许用户实时配置仿真参数,直观地交互,并获得自动事件报告,因此即使没有编码技能,他们也可以轻松有效地模拟IRAND和反中微子/宇宙μ子事件。
{"title":"IRAND-Sim-02: A flexible GUI-based simulation package for the IRAND (IRan ANtineutrino Detector)","authors":"Mahdieh Sadat Mousavi,&nbsp;Faezeh Rahmani","doi":"10.1016/j.cpc.2025.109932","DOIUrl":"10.1016/j.cpc.2025.109932","url":null,"abstract":"<div><div>The IRAND (a segmented plastic scintillator IRan ANtineutrino Detector; a 10 × 10 array of plastic scintillation) is Iran’s only segmented antineutrino detector, designed for reactor antineutrino detection in safeguards and reactor monitoring applications. While previous simulations of the IRAND have been conducted, they have been constrained by fixed structural specifications and rigid parameter frameworks, lacking a user-friendly, flexible simulation package essential for advanced simulation-based design. To address this gap, we present IRAND-Sim-02, a novel GUI-based simulation package developed using the Geant4 Monte Carlo toolkit, Qt framework, and Python. This package facilitates real-time, interactive simulations of the IRAND, enabling precise modeling of antineutrino interactions and cosmic muon events, which constitute the dominant background in antineutrino detection. IRAND-Sim-02 offers researchers an intuitive interface to dynamically configure simulation parameters, model event interactions, and generate automated real-time reports on event behaviors. Its user-friendly design ensures accessibility for a broad range of users, including those without prior expertise in Geant4 or Python, thereby streamlining the simulation process and enhancing research efficiency in antineutrino detection and reactor monitoring.</div><div><strong><em>Program summary</em></strong></div><div><em>Program title</em>: IRAND-Sim-02.</div><div><em>CPC Library link to program files</em>: Data will be available on request.</div><div><em>Licensing provisions</em>: GPLv3.</div><div><em>Programming language: C</em>++, Python.</div><div><em>Nature of problem</em>: The earlier IRAND simulations use fixed structures, rigid parameters, and need Geant4 expertise. This complexity limits adaptability, prevents testing new configurations, and makes the tool inaccessible to users without coding skills, which slows research on antineutrino detection and background events.</div><div><em>Solution method</em>: The solution is IRAND-Sim-02, a flexible, GUI-based simulation package built with Geant4, Qt, and Python. It lets users configure simulation parameters in real time, interact intuitively, and get automated event reports, so even without coding skills they can efficiently simulate the IRAND and antineutrino/cosmic muon events easily.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109932"},"PeriodicalIF":3.4,"publicationDate":"2025-11-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464405","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
SimOS: A Python framework for simulations of optically addressable spins SimOS:用于模拟光学可寻址自旋的Python框架
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-11-02 DOI: 10.1016/j.cpc.2025.109919
Laura A. Völker , John M. Abendroth , Christian L. Degen , Konstantin Herb
We present an open-source simulation framework for optically detected magnetic resonance, developed in Python. The framework is designed to simulate multipartite quantum systems composed of spins and electronic levels, enabling the study of systems such as nitrogen-vacancy centers in diamond and photo-generated spin-correlated radical pairs. Our library provides system-specific sub-modules for these and related problems. It supports efficient time-evolution in Lindblad form, along with tools for simulating spatial and generalized stochastic dynamics. Symbolic operator construction and propagation are also supported for simple model systems, making the framework well-suited for classroom instruction in magnetic resonance. Designed to be backend-agnostic, the library interfaces with existing Python packages as computational backends. We introduce the core functionality and illustrate the syntax through a series of representative examples.
我们提出了一个用Python开发的光学检测磁共振的开源模拟框架。该框架旨在模拟由自旋和电子能级组成的多部量子系统,从而能够研究金刚石中的氮空位中心和光生自旋相关自由基对等系统。我们的库为这些问题和相关问题提供了系统特定的子模块。它支持林德布莱德形式的有效时间演化,以及用于模拟空间和广义随机动力学的工具。对于简单的模型系统,也支持符号算子的构造和传播,使得该框架非常适合于磁共振的课堂教学。该库设计为与后端无关,将现有Python包作为计算后端与之接口。我们将介绍核心功能,并通过一系列代表性示例说明语法。
{"title":"SimOS: A Python framework for simulations of optically addressable spins","authors":"Laura A. Völker ,&nbsp;John M. Abendroth ,&nbsp;Christian L. Degen ,&nbsp;Konstantin Herb","doi":"10.1016/j.cpc.2025.109919","DOIUrl":"10.1016/j.cpc.2025.109919","url":null,"abstract":"<div><div>We present an open-source simulation framework for optically detected magnetic resonance, developed in Python. The framework is designed to simulate multipartite quantum systems composed of spins and electronic levels, enabling the study of systems such as nitrogen-vacancy centers in diamond and photo-generated spin-correlated radical pairs. Our library provides system-specific sub-modules for these and related problems. It supports efficient time-evolution in Lindblad form, along with tools for simulating spatial and generalized stochastic dynamics. Symbolic operator construction and propagation are also supported for simple model systems, making the framework well-suited for classroom instruction in magnetic resonance. Designed to be backend-agnostic, the library interfaces with existing Python packages as computational backends. We introduce the core functionality and illustrate the syntax through a series of representative examples.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109919"},"PeriodicalIF":3.4,"publicationDate":"2025-11-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145681669","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
XtalOpt version 14: Variable-composition crystal structure search for functional materials through Pareto optimization XtalOpt version 14:通过Pareto优化实现功能材料的变组成晶体结构搜索
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-31 DOI: 10.1016/j.cpc.2025.109910
Samad Hajinazar, Eva Zurek
<div><div>Version 14 of <span>XtalOpt</span>, an evolutionary multi-objective global optimization algorithm for crystal structure prediction, is now available for download from its official website <span><span>https://xtalopt.github.io</span><svg><path></path></svg></span>, and the Computer Physics Communications Library. The new version of the code is designed to perform a ground state search for crystal structures with variable compositions by integrating a suite of <em>ab initio</em> methods alongside classical and machine-learning potentials for structural relaxation. The multi-objective search framework has been enhanced through the introduction of Pareto optimization, enabling efficient discovery of functional materials. Herein, we describe the newly implemented methodologies, provide detailed instructions for their use, and present an overview of additional improvements included in the latest version of the code.</div><div><strong>NEW VERSION PROGRAM SUMMARY</strong> <em>Program Title:</em> XtalOpt <em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/jt5pvnnm39.5</span><svg><path></path></svg></span></div><div><em>Developer’s repository link:</em> <span><span>https://github.com/xtalopt/XtalOpt</span><svg><path></path></svg></span></div><div><em>Code Ocean capsule:</em> (to be added by Technical Editor)</div><div><em>Licensing provisions:</em> 3-clause/BSD.</div><div><em>Programming language:</em> C++. <em>Journal reference of previous version:</em> Computer Physics Communications 304 (2024) 109306. <em>Does the new version supersede the previous version?:</em> Yes.</div><div><em>Reasons for the new version:</em> Implementation of the variable-composition evolutionary search feature and Pareto optimization within the <span>XtalOpt</span> program package.</div><div><em>Summary of revisions:</em> Implemented evolutionary global optimization of structures with variable compositions, the Pareto algorithm for multi-objective optimization, and the multi-cut crossover operation. Various improvements have been made to the user interface, and bugs have been fixed.</div><div><em>Nature of problem:</em> For a given set of chemical constituents the <span>XtalOpt</span> algorithm can search for (meta)stable crystal structures with fixed or varying compositions and optionally with specific functionalities – a grand challenge in computational materials science, chemistry and physics.</div><div><em>Solution method:</em> During the search process, the convex hull of the chemical system is calculated and updated. Instead of enthalpy, the “distance above the convex hull” is used as the target value for global optimization. The genetic operations are revised to enable the evolution of parent structures with different compositions, and to possibly produce new compositions. To further enhance the code’s capability of performing a multi-objective search, the Pareto optimization scheme is implemented. This allows the user to choose from
XtalOpt的第14版是一种用于晶体结构预测的进化多目标全局优化算法,现在可以从其官方网站https://xtalopt.github.io和计算机物理通信库下载。新版本的代码旨在通过集成一套从头算方法以及结构松弛的经典和机器学习潜力,对具有可变成分的晶体结构进行基态搜索。通过引入帕累托优化,增强了多目标搜索框架,使功能材料的有效发现成为可能。在本文中,我们描述了新实现的方法,提供了详细的使用说明,并概述了最新版本代码中包含的其他改进。新版本程序摘要程序标题:XtalOpt CPC库链接到程序文件:https://doi.org/10.17632/jt5pvnnm39.5Developer的存储库链接:https://github.com/xtalopt/XtalOptCode海洋胶囊:(由技术编辑添加)许可条款:3-clause/BSD。编程语言:c++。以前版本的期刊参考:计算机物理通信304(2024)109306。新版本是否取代旧版本?:是的。新版本的原因:在XtalOpt程序包中实现了可变组合进化搜索特性和Pareto优化。修订总结:实现了变组成结构的进化全局优化,Pareto算法多目标优化,多切口交叉操作。对用户界面进行了各种改进,并修复了错误。问题性质:对于一组给定的化学成分,XtalOpt算法可以搜索具有固定或变化成分的(元)稳定晶体结构,并可选择具有特定功能-这在计算材料科学,化学和物理中是一个巨大的挑战。求解方法:在搜索过程中,计算并更新化学系统的凸包。代替焓,“凸壳以上的距离”被用作全局优化的目标值。修改遗传操作以使具有不同组成的亲本结构进化,并可能产生新的组成。为了进一步提高代码执行多目标搜索的能力,实现了Pareto优化方案。这允许用户从以前实现的广义适应度函数和帕累托优化方案中选择搜索新的功能材料。为了快速有效地探索相图,机器学习原子间势的易于使用的界面被添加到代码包中。
{"title":"XtalOpt version 14: Variable-composition crystal structure search for functional materials through Pareto optimization","authors":"Samad Hajinazar,&nbsp;Eva Zurek","doi":"10.1016/j.cpc.2025.109910","DOIUrl":"10.1016/j.cpc.2025.109910","url":null,"abstract":"&lt;div&gt;&lt;div&gt;Version 14 of &lt;span&gt;XtalOpt&lt;/span&gt;, an evolutionary multi-objective global optimization algorithm for crystal structure prediction, is now available for download from its official website &lt;span&gt;&lt;span&gt;https://xtalopt.github.io&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;, and the Computer Physics Communications Library. The new version of the code is designed to perform a ground state search for crystal structures with variable compositions by integrating a suite of &lt;em&gt;ab initio&lt;/em&gt; methods alongside classical and machine-learning potentials for structural relaxation. The multi-objective search framework has been enhanced through the introduction of Pareto optimization, enabling efficient discovery of functional materials. Herein, we describe the newly implemented methodologies, provide detailed instructions for their use, and present an overview of additional improvements included in the latest version of the code.&lt;/div&gt;&lt;div&gt;&lt;strong&gt;NEW VERSION PROGRAM SUMMARY&lt;/strong&gt; &lt;em&gt;Program Title:&lt;/em&gt; XtalOpt &lt;em&gt;CPC Library link to program files:&lt;/em&gt; &lt;span&gt;&lt;span&gt;https://doi.org/10.17632/jt5pvnnm39.5&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;Developer’s repository link:&lt;/em&gt; &lt;span&gt;&lt;span&gt;https://github.com/xtalopt/XtalOpt&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;Code Ocean capsule:&lt;/em&gt; (to be added by Technical Editor)&lt;/div&gt;&lt;div&gt;&lt;em&gt;Licensing provisions:&lt;/em&gt; 3-clause/BSD.&lt;/div&gt;&lt;div&gt;&lt;em&gt;Programming language:&lt;/em&gt; C++. &lt;em&gt;Journal reference of previous version:&lt;/em&gt; Computer Physics Communications 304 (2024) 109306. &lt;em&gt;Does the new version supersede the previous version?:&lt;/em&gt; Yes.&lt;/div&gt;&lt;div&gt;&lt;em&gt;Reasons for the new version:&lt;/em&gt; Implementation of the variable-composition evolutionary search feature and Pareto optimization within the &lt;span&gt;XtalOpt&lt;/span&gt; program package.&lt;/div&gt;&lt;div&gt;&lt;em&gt;Summary of revisions:&lt;/em&gt; Implemented evolutionary global optimization of structures with variable compositions, the Pareto algorithm for multi-objective optimization, and the multi-cut crossover operation. Various improvements have been made to the user interface, and bugs have been fixed.&lt;/div&gt;&lt;div&gt;&lt;em&gt;Nature of problem:&lt;/em&gt; For a given set of chemical constituents the &lt;span&gt;XtalOpt&lt;/span&gt; algorithm can search for (meta)stable crystal structures with fixed or varying compositions and optionally with specific functionalities – a grand challenge in computational materials science, chemistry and physics.&lt;/div&gt;&lt;div&gt;&lt;em&gt;Solution method:&lt;/em&gt; During the search process, the convex hull of the chemical system is calculated and updated. Instead of enthalpy, the “distance above the convex hull” is used as the target value for global optimization. The genetic operations are revised to enable the evolution of parent structures with different compositions, and to possibly produce new compositions. To further enhance the code’s capability of performing a multi-objective search, the Pareto optimization scheme is implemented. This allows the user to choose from","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"320 ","pages":"Article 109910"},"PeriodicalIF":3.4,"publicationDate":"2025-10-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145733047","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
1D3V electrostatic implicit particle simulation method in spherical axisymmetric geometry 球面轴对称几何中的静电隐式粒子模拟方法
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-30 DOI: 10.1016/j.cpc.2025.109903
Mengmeng Song , Wei Yang , Qiang Sun , Zhaohui Liu , Ziming Wang , Ye Dong , Hantian Zhang , Qianhong Zhou
The implicit particle-in-cell (PIC) simulation enables a larger time step and cell size to improve computational efficiency, however, an implicit PIC in spherical axisymmetric geometry has been absent. In this paper, a 1D3V electrostatic implicit spherical PIC algorithm is introduced. The algorithm decouples the centrifugal force and electric field force to mitigate the complexity of solving Poisson’s equation. The motion of charged particles are executed through three-step process: first, particles are pre-pushed to solve Poisson’s equation; second, they are pushed with the obtained electric field force; last, the third-pushed is performed under centrifugal force calculated before the first pushing. The accuracy of the implicit spherical PIC algorithm is verified by simulating the floating potential of grain immersed in a collisionless plasma. Compared to the explicit simulation with 1dr1dt in plasma spherical expansion model, implicit PIC produces sufficiently precise results even with a large range of time step of 110dt and cell size of 16dr. Then, the validated algorithm is employed to study the ion acceleration in multicomponent cathode spot collision plasma, demonstrating that the electric field induces velocity separation between light and heavy ion in plasma vacuum expansion stage. The algorithms developed in this paper can be applied to efficiently simulate the kinetic process in spherically symmetrically plasma, such as the laser induced ions source and vacuum arc discharges.
隐式单元内粒子(PIC)模拟可以采用更大的时间步长和单元尺寸来提高计算效率,但在球面轴对称几何中没有隐式的PIC模拟。本文介绍了一种1D3V静电隐式球面PIC算法。该算法将离心力和电场力解耦,降低了泊松方程求解的复杂性。带电粒子的运动通过三步进行:首先,粒子被预推解泊松方程;第二,用得到的电场力推动它们;最后,在第一次推前计算的离心力下进行第三次推。通过模拟颗粒在无碰撞等离子体中的漂浮势,验证了隐式球面PIC算法的准确性。与等离子体球面膨胀模型中1dr - 1dt的显式模拟相比,即使在1 - 10dt的大时间步长范围和1 - 6dr的电池尺寸下,隐式PIC也能得到足够精确的结果。然后,将验证后的算法应用于多组分阴极斑点碰撞等离子体中的离子加速研究,证明了电场在等离子体真空膨胀阶段诱导了轻离子和重离子的速度分离。本文提出的算法可以有效地模拟球对称等离子体的动力学过程,如激光诱导离子源和真空电弧放电。
{"title":"1D3V electrostatic implicit particle simulation method in spherical axisymmetric geometry","authors":"Mengmeng Song ,&nbsp;Wei Yang ,&nbsp;Qiang Sun ,&nbsp;Zhaohui Liu ,&nbsp;Ziming Wang ,&nbsp;Ye Dong ,&nbsp;Hantian Zhang ,&nbsp;Qianhong Zhou","doi":"10.1016/j.cpc.2025.109903","DOIUrl":"10.1016/j.cpc.2025.109903","url":null,"abstract":"<div><div>The implicit particle-in-cell (PIC) simulation enables a larger time step and cell size to improve computational efficiency, however, an implicit PIC in spherical axisymmetric geometry has been absent. In this paper, a 1D3V electrostatic implicit spherical PIC algorithm is introduced. The algorithm decouples the centrifugal force and electric field force to mitigate the complexity of solving Poisson’s equation. The motion of charged particles are executed through three-step process: first, particles are pre-pushed to solve Poisson’s equation; second, they are pushed with the obtained electric field force; last, the third-pushed is performed under centrifugal force calculated before the first pushing. The accuracy of the implicit spherical PIC algorithm is verified by simulating the floating potential of grain immersed in a collisionless plasma. Compared to the explicit simulation with <span><math><mrow><mn>1</mn><mi>d</mi><mi>r</mi><mo>−</mo><mn>1</mn><mi>d</mi><mi>t</mi></mrow></math></span> in plasma spherical expansion model, implicit PIC produces sufficiently precise results even with a large range of time step of <span><math><mrow><mn>1</mn><mo>−</mo><mn>10</mn><mrow><mi>d</mi><mi>t</mi></mrow></mrow></math></span> and cell size of <span><math><mrow><mn>1</mn><mo>−</mo><mn>6</mn><mrow><mi>d</mi><mi>r</mi></mrow></mrow></math></span>. Then, the validated algorithm is employed to study the ion acceleration in multicomponent cathode spot collision plasma, demonstrating that the electric field induces velocity separation between light and heavy ion in plasma vacuum expansion stage. The algorithms developed in this paper can be applied to efficiently simulate the kinetic process in spherically symmetrically plasma, such as the laser induced ions source and vacuum arc discharges.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109903"},"PeriodicalIF":3.4,"publicationDate":"2025-10-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464406","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
Exploring maximum likelihood and Bayesian approaches for two-dimensional image restoration: A machine learning perspective 探索二维图像恢复的最大似然和贝叶斯方法:机器学习视角
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-30 DOI: 10.1016/j.cpc.2025.109913
K. Topolnicki, S. Sharma, Yu. Volkotrub, M. Das
Different approaches to representing a two dimensional statistical distribution for likelihood optimization and Bayesian inference are investigated. The suggested methods can be generalized to more dimensions, opening up the possibility of using these representations for more complex problems. We use the PyTorch Machine Learning library and all calculations related to the investigated methods are easily expressible within this framework. The capabilities provided by modern Machine Learning libraries are utilized in order to be flexible and applicable to a wide range of problems. Our calculations were performed using a simple statistical toy model, similar in some aspects to techniques used in two dimensional medical imaging. We present numerical results for image reconstruction based on sparse data consisting of only 1000 registered data points and on a larger sample of 80,000 data points.
不同的方法来表示二维统计分布的可能性优化和贝叶斯推理进行了研究。建议的方法可以推广到更多的维度,为使用这些表示来解决更复杂的问题提供了可能性。我们使用PyTorch机器学习库,与所研究的方法相关的所有计算都可以在这个框架内轻松表达。利用现代机器学习库提供的功能是为了灵活和适用于广泛的问题。我们的计算是使用一个简单的统计玩具模型进行的,在某些方面类似于二维医学成像中使用的技术。我们给出了基于仅由1000个注册数据点组成的稀疏数据和80,000个数据点的更大样本的图像重建的数值结果。
{"title":"Exploring maximum likelihood and Bayesian approaches for two-dimensional image restoration: A machine learning perspective","authors":"K. Topolnicki,&nbsp;S. Sharma,&nbsp;Yu. Volkotrub,&nbsp;M. Das","doi":"10.1016/j.cpc.2025.109913","DOIUrl":"10.1016/j.cpc.2025.109913","url":null,"abstract":"<div><div>Different approaches to representing a two dimensional statistical distribution for likelihood optimization and Bayesian inference are investigated. The suggested methods can be generalized to more dimensions, opening up the possibility of using these representations for more complex problems. We use the <span>PyTorch</span> Machine Learning library and all calculations related to the investigated methods are easily expressible within this framework. The capabilities provided by modern Machine Learning libraries are utilized in order to be flexible and applicable to a wide range of problems. Our calculations were performed using a simple statistical toy model, similar in some aspects to techniques used in two dimensional medical imaging. We present numerical results for image reconstruction based on sparse data consisting of only 1000 registered data points and on a larger sample of 80,000 data points.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109913"},"PeriodicalIF":3.4,"publicationDate":"2025-10-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464404","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
TTNOpt: Tree tensor network package for high-rank tensor compression TTNOpt:用于高阶张量压缩的树张量网络包
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-29 DOI: 10.1016/j.cpc.2025.109918
Ryo Watanabe , Hidetaka Manabe , Toshiya Hikihara , Hiroshi Ueda
We have developed TTNOpt, a software package that utilizes tree tensor networks (TTNs) for quantum spin systems and high-dimensional data analysis. TTNOpt provides efficient and powerful TTN computations by locally optimizing the network structure, guided by the entanglement pattern of the target tensors. For quantum spin systems, TTNOpt searches for the ground state of Hamiltonians with bilinear spin interactions and magnetic fields, and computes physical properties of these states, including the variational energy, bipartite entanglement entropy (EE), single-site expectation values, and two-site correlation functions. Additionally, TTNOpt can target the lowest-energy state within a specified subspace, provided that the Hamiltonian conserves total magnetization. For high-dimensional data analysis, TTNOpt factorizes complex tensors into TTN states that maximize fidelity to the original tensors by optimizing the tensors and the network. When a TTN is provided as input, TTNOpt reconstructs the network based on the EE without referencing the fidelity of the original state. We present three demonstrations of TTNOpt: (1) Ground-state search for the hierarchical chain model with a system size of 256. The entanglement patterns of the ground state manifest themselves in a tree structure, and TTNOpt successfully identifies the tree. (2) Factorization of a quantic tensor of the 224 dimensions representing a three-variable function where each variant has a weak bit-wise correlation. The optimized TTN shows that its structure isolates the variables from each other. (3) Reconstruction of the matrix product network representing a 16-variable normal distribution characterized by a tree-like correlation structure. TTNOpt can reveal hidden correlation structures of the covariance matrix.
我们开发了TTNOpt,一个利用树张量网络(TTNs)进行量子自旋系统和高维数据分析的软件包。TTNOpt在目标张量纠缠模式的引导下,通过局部优化网络结构,提供高效、强大的TTN计算。对于量子自旋系统,TTNOpt搜索具有双线性自旋相互作用和磁场的哈密顿子的基态,并计算这些状态的物理性质,包括变分能、二部纠缠熵(EE)、单点期望值和两点相关函数。此外,如果哈密顿量守恒总磁化强度,TTNOpt可以瞄准特定子空间内的最低能态。对于高维数据分析,TTNOpt将复杂张量分解为TTN状态,通过优化张量和网络来最大化原始张量的保真度。当提供TTN作为输入时,TTNOpt在不参考原始状态保真度的情况下,根据EE重构网络。我们给出了TTNOpt的三个演示:(1)系统大小为256的层次链模型的基态搜索。基态的纠缠模式在树状结构中表现出来,TTNOpt成功地识别了树状结构。(2)对代表三变量函数的224维的量子张量进行因子分解,其中每个变量具有弱的位相关。优化后的TTN表明,其结构将变量相互隔离。(3)重构以树状相关结构为特征的16变量正态分布矩阵积网络。TTNOpt可以揭示协方差矩阵中隐藏的相关结构。
{"title":"TTNOpt: Tree tensor network package for high-rank tensor compression","authors":"Ryo Watanabe ,&nbsp;Hidetaka Manabe ,&nbsp;Toshiya Hikihara ,&nbsp;Hiroshi Ueda","doi":"10.1016/j.cpc.2025.109918","DOIUrl":"10.1016/j.cpc.2025.109918","url":null,"abstract":"<div><div>We have developed TTNOpt, a software package that utilizes tree tensor networks (TTNs) for quantum spin systems and high-dimensional data analysis. TTNOpt provides efficient and powerful TTN computations by locally optimizing the network structure, guided by the entanglement pattern of the target tensors. For quantum spin systems, TTNOpt searches for the ground state of Hamiltonians with bilinear spin interactions and magnetic fields, and computes physical properties of these states, including the variational energy, bipartite entanglement entropy (EE), single-site expectation values, and two-site correlation functions. Additionally, TTNOpt can target the lowest-energy state within a specified subspace, provided that the Hamiltonian conserves total magnetization. For high-dimensional data analysis, TTNOpt factorizes complex tensors into TTN states that maximize fidelity to the original tensors by optimizing the tensors and the network. When a TTN is provided as input, TTNOpt reconstructs the network based on the EE without referencing the fidelity of the original state. We present three demonstrations of TTNOpt: (1) Ground-state search for the hierarchical chain model with a system size of 256. The entanglement patterns of the ground state manifest themselves in a tree structure, and TTNOpt successfully identifies the tree. (2) Factorization of a quantic tensor of the <span><math><msup><mn>2</mn><mn>24</mn></msup></math></span> dimensions representing a three-variable function where each variant has a weak bit-wise correlation. The optimized TTN shows that its structure isolates the variables from each other. (3) Reconstruction of the matrix product network representing a 16-variable normal distribution characterized by a tree-like correlation structure. TTNOpt can reveal hidden correlation structures of the covariance matrix.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109918"},"PeriodicalIF":3.4,"publicationDate":"2025-10-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464402","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
A multiscale stochastic particle method based on the Fokker-Planck model for diatomic gas flows 基于双原子气体流动Fokker-Planck模型的多尺度随机粒子方法
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-28 DOI: 10.1016/j.cpc.2025.109917
Ziqi Cui, Qihan Ma, Kaikai Feng, Jun Zhang
Hypersonic flows in re-entry missions exhibit multiscale processes and strong non-equilibrium effects, posing significant challenges for numerical simulation. Traditional stochastic particle methods for non-equilibrium gas flows, such as the direct simulation Monte Carlo (DSMC), suffer from order degradation in near-continuum regimes, resulting in reduced accuracy and computational inefficiency. The multiscale stochastic particle (MSP) method based on the Fokker-Planck model has recently emerged as a tailored approach for multiscale non-equilibrium gas flows, specifically designed to maintain high accuracy and computational efficiency even in near-continuum regimes. In this work, the MSP method is extended to diatomic gas flows by incorporating internal energy modes. Specifically, a particle-based Langevin integration scheme is developed to model internal energy relaxation. Building on this formulation, a modified collision step is introduced within the MSP framework, employing the flux correction strategy. The resulting scheme is shown to exhibit second-order temporal accuracy in the near-continuum regime. The proposed method for diatomic gases is validated against a range of benchmark problems, including homogeneous relaxation, normal shock structures, and hypersonic flows over a cylinder and a 70-degree blunted cone. The MSP method provides reliable results with coarser grids and larger time steps, substantially reducing computational cost. These results demonstrate its potential as an efficient and accurate approach for multiscale hypersonic flow simulation.
高超声速再入过程表现出多尺度过程和强非平衡效应,对数值模拟提出了重大挑战。传统的非平衡气体流动随机粒子方法,如直接模拟蒙特卡罗(DSMC),在近连续统状态下存在有序退化,导致精度降低和计算效率低下。基于Fokker-Planck模型的多尺度随机粒子(MSP)方法是最近出现的一种针对多尺度非平衡气体流动的定制方法,专门设计用于即使在近连续介质状态下也能保持高精度和计算效率。在这项工作中,通过结合内能模式,将MSP方法扩展到双原子气体流动。具体来说,提出了一种基于粒子的朗格万积分方案来模拟内能松弛。在此公式的基础上,在MSP框架内引入了修正的碰撞步骤,采用了通量校正策略。结果表明,该方案在近连续体状态下具有二阶时间精度。所提出的双原子气体方法针对一系列基准问题进行了验证,包括均匀松弛,正常激波结构,以及在圆柱体和70度钝锥上的高超声速流动。MSP方法以更粗的网格和更大的时间步长提供了可靠的结果,大大降低了计算成本。这些结果证明了该方法作为一种高效、精确的多尺度高超声速流动模拟方法的潜力。
{"title":"A multiscale stochastic particle method based on the Fokker-Planck model for diatomic gas flows","authors":"Ziqi Cui,&nbsp;Qihan Ma,&nbsp;Kaikai Feng,&nbsp;Jun Zhang","doi":"10.1016/j.cpc.2025.109917","DOIUrl":"10.1016/j.cpc.2025.109917","url":null,"abstract":"<div><div>Hypersonic flows in re-entry missions exhibit multiscale processes and strong non-equilibrium effects, posing significant challenges for numerical simulation. Traditional stochastic particle methods for non-equilibrium gas flows, such as the direct simulation Monte Carlo (DSMC), suffer from order degradation in near-continuum regimes, resulting in reduced accuracy and computational inefficiency. The multiscale stochastic particle (MSP) method based on the Fokker-Planck model has recently emerged as a tailored approach for multiscale non-equilibrium gas flows, specifically designed to maintain high accuracy and computational efficiency even in near-continuum regimes. In this work, the MSP method is extended to diatomic gas flows by incorporating internal energy modes. Specifically, a particle-based Langevin integration scheme is developed to model internal energy relaxation. Building on this formulation, a modified collision step is introduced within the MSP framework, employing the flux correction strategy. The resulting scheme is shown to exhibit second-order temporal accuracy in the near-continuum regime. The proposed method for diatomic gases is validated against a range of benchmark problems, including homogeneous relaxation, normal shock structures, and hypersonic flows over a cylinder and a 70-degree blunted cone. The MSP method provides reliable results with coarser grids and larger time steps, substantially reducing computational cost. These results demonstrate its potential as an efficient and accurate approach for multiscale hypersonic flow simulation.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109917"},"PeriodicalIF":3.4,"publicationDate":"2025-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145517650","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