可扩展蒙特卡罗粒子输运软件架构设计与实现

MCPT: parallel Monte Carlo particle transport simulation solver library

  • 摘要: 蒙特卡罗(Monte Carlo,MC)粒子输运方法应用概率论随机理论与数理统计知识研制相应程序,并借助计算机工具帮助核领域解决各种粒子输运物理问题。经过70多年的发展,MC粒子输运方法及软件已经逐步成熟,在核辐射屏蔽、核反应堆堆芯临界安全分析、核探测及核医学等传统领域广泛应用。JMCT软件是中物院高性能数值模拟软件中心推出的一款三维粒子输运蒙特卡罗软件,粒子类型支持中子、光子、电子及其耦合,具有可视化建模工具、通用输运算法和降方差技巧、全面性计数统计功能和超大规模并行计算能力,几何类型支撑组合几何体、结构网格及两者耦合,含有多群和连续两种能量模型,支持输运-燃耗-热工耦合计算。针对JMCT软件遇到功能开发、用户源码保护和代码持续发展维护等问题,从蒙特卡罗粒子输运方程入手,分析了蒙特卡罗粒子输运模拟过程中的可扩展点,创新设计了具有高可扩展性的蒙特卡罗输运软件架构。该架构设计在JMCT软件上落实,把JMCT软件升级成平台型软件,同时推出了蒙特卡罗粒子输运解算器库MCPT。MCPT对用户提供了7类二次开发接口,极大程序上支持了用户进行二次开发,而且提供了多种多样的成熟功能组件模块,可节省用户编码工作量。经初步评估,通过MCPT和用户自编代码的联合编译而产生用户专用定制的蒙特卡罗粒子输运模拟软件,可节省用户30%~95%的编码工作量,并能保护用户的代码权益。

     

    Abstract:
    Background The Monte Carlo (MC) particle transport methodology incorporates stochastic principles derived from probability theory and mathematical statistics to establish computational frameworks. This approach facilitates the numerical resolution of complex particle transport phenomena in nuclear systems. Over the course of seven decades of development, Monte Carlo (MC) particle transport theory and algorithms have reached a high level of technical maturity. This has resulted in the development of several specialized software packages, which are widely applied in fields such as nuclear radiation shielding, reactor core criticality safety analysis, nuclear detection, and radiation medicine.
    Purpose JMCT is a 3D Monte Carlo particle transport software that supports neutrons, photons, electrons, and their coupling. It features visual modeling tools, general transport algorithms with variance reduction techniques, comprehensive tallying capabilities, and ultra-large-scale parallel computing power. JMCT has been successfully applied to the simulation of reactor models such as the Ningde Nuclear Power Plant, CAP1400, CFR600, and Hualong One. Additionally, it has been introduced and procured by multiple institutions in the nuclear energy sector, including the CGN Research Institute, Shanghai Nuclear Engineering Research and Design Institute (SNERDI), and the China Institute of Atomic Energy (CIAE).The JMCT software faces issues such as functional development, code maintenance, and user source code protection.
    Methods Expandable points in the Monte Carlo particle transport simulation was identified by analyzing Monte Carlo particle transport equation. A highly expandable Monte Carlo transport software architecture was designed, enabling functional component modules to becomes highly cohesive and loosely coupled. This architecture significantly simplified development and maintenance while protecting user-developed functional component source code. Based on this architecture, the Monte Carlo Particle Transport solver library MCPT was developed.
    Results MCPT provides seven categories of secondary development interfaces, substantially meeting users' customized development and source code protection requirements. It also offers various mature functional component modules that can reduce users' coding workload. Preliminary evaluations indicate that developing personalized Monte Carlo particle transport simulation software using MCPT can save 30%-95% of coding efforts.
    Conclusions JMCT has been reconstructed using MCPT. This transformation has significantly improved both expandability and maintainability.

     

/

返回文章
返回