首页> 外文OA文献 >PyMercury: Interactive Python for the Mercury Monte Carlo Particle Transport Code
【2h】

PyMercury: Interactive Python for the Mercury Monte Carlo Particle Transport Code

机译:pymercury:mercury monte Carlo粒子传输代码的交互式python

摘要

Parallel scientific applications are often written in low-level languages for optimal performance. However, such applications often sacrifice straightforward debugging and usability in the interest of performance. Mercury is a C++ based parallel Monte Carlo particle transport code. This study seeks to improve the Mercury user experience and to simplify debugging and validation without compromising performance. Toward this goal, mixed-language programming paradigms allow for high-performance, low-level computational code and simple, high-level code for control, debugging, and user interfaces. Numerous tools exist for connecting low-level C++ code with high-level Python code. With the Python/C Application Programming Interface (API), we implemented an interactive Python interface called PyMercury. PyMercury allows users to access geometry and physics calculations and to control debugging tools during runtime. PyMercury also serves as a framework for developers to create tests for Mercury software validation. We illustrate the effectiveness of PyMercury in debugging, validation, and usage with two case studies. The first case study illustrates the effectiveness of PyMercury in debugging and validation. PyMercury successfully validates adaptive mesh refinement (AMR) volume calculations for Mercury geometric setups. The second case study demonstrates the effectiveness of PyMercury in providing a straightforward runtime user interface. Physicians and other users can use PyMercury to rapidly develop simulations of radiation cancer therapy strategies. PyMercury demonstrates the value of interactive Python for rapid debugging and verification of scientific computing applications.
机译:并行科学应用程序通常以低级语言编写,以实现最佳性能。但是,出于性能的考虑,此类应用程序通常会牺牲直接的调试和可用性。 Mercury是基于C ++的并行蒙特卡洛粒子传输代码。这项研究旨在改善Mercury用户的体验,并在不影响性能的情况下简化调试和验证。为了实现这一目标,混合语言编程范式允许使用高性能,低级计算代码以及用于控制,调试和用户界面的简单,高级代码。存在许多用于将低级C ++代码与高级Python代码连接的工具。使用Python / C应用程序编程接口(API),我们实现了一个称为PyMercury的交互式Python接口。 PyMercury允许用户在运行时访问几何和物理计算并控制调试工具。 PyMercury还充当开发人员为Mercury软件验证创建测试的框架。我们通过两个案例研究说明了PyMercury在调试,验证和使用中的有效性。第一个案例研究说明了PyMercury在调试和验证中的有效性。 PyMercury成功验证了Mercury几何设置的自适应网格细化(AMR)体积计算。第二个案例研究证明了PyMercury在提供直接的运行时用户界面方面的有效性。医师和其他用户可以使用PyMercury快速开发放射癌治疗策略的模拟。 PyMercury演示了交互式Python在科学计算应用程序的快速调试和验证中的价值。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号