• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2025, Vol. 47 ›› Issue (02): 210-218.

• 高性能计算 • 上一篇    下一篇

基于FastCAE的Geant4集成关键技术研究

余昊昊,唐滨   

  1. (哈尔滨工程大学青岛创新发展基地,山东 青岛 266000)

  • 收稿日期:2023-09-01 修回日期:2023-11-03 接受日期:2025-02-25 出版日期:2025-02-25 发布日期:2025-02-21

Research on key technologies of Geant4 integration based on Fast CAE

YU Haohao,TANG Bin   

  1. (Qingdao Innovation and Development Base,Harbin Engineering University,Qingdao 266000,China)
  • Received:2023-09-01 Revised:2023-11-03 Accepted:2025-02-25 Online:2025-02-25 Published:2025-02-21

摘要: 蒙特卡罗应用工具包Geant4主要用于模拟粒子在物质中输运的物理过程,被广泛应用在空间应用、辐射医学以及加速器物理等领域,然而Geant4默认交互界面简单、输入文件和命令繁琐,易用性较差。首先,依托FastCAE开源前后处理集成平台,开展面向Geant4求解器集成的关键技术研究,包含构建集几何建模、网格划分、求解计算、后处理可视化一体化的仿真软件解决方案。其次,针对集成中的几何模型转为物理几何体问题,开发了“Geometry”和“mesh”2种文件转换方式,同时通过将Geant4的结果文件vtu和vtp转换为vtk文件,实现了Geant4计算结果的可视化。最后,通过质子放疗算例实现了Geant4完整集成流程,证明了开发的网格转换方式和可视化方法满足性能需求。提出的方案可提高Geant4二次开发效率,加速产品化进程。

关键词: Geant4, 物理几何体生成, 可视化, 求解器集成, FastCAE

Abstract: The Monte Carlo application toolkit Geant4 is primarily used for simulating the physical processes of particle transport in matter. It is widely applied in various fields such as space applications, radiation medicine, and accelerator physics. However, the default user interface of Geant4 is simple, and the input files and commands can be cumbersome, resulting in poor usability. Firstly, Leveraging the open-source pre-and post-processing integrated platform of FastCAE, key technical research was conducted to integrate the Geant4 solver. This research includes the development of a simulation software solution that integrates geometry modeling, mesh generation, solver computation, and post- processing visualization. Secondly, to address the issue of converting geometric models into physical geometries within the integration, two file conversion methods, namely “Geometry” and “mesh”, were developed. Additionally, Geant4 calculation results were visualized by converting the result files in vtu and vtp formats into vtk files. Lastly, through the implementation of a proton therapy case study, the complete integration process of Geant4 was achieved, demonstrating the effectiveness and usability of the developed mesh conversion methods and visualization techniques. The proposed solution can improve the efficiency of Geant4 development and accelerate the process of productization.

Key words: geometry and tracking 4(Geant4), generation of physical geometries, visualization, solver integration, fast computer-aided engineering(FastCAE)