TurboPy:一个面向计算物理的轻量级Python框架
TurboPy: A Lightweight Python Framework for Computational Physics
摘要:
计算物理问题通常有一组共同的方面,任何特定的数字代码都必须解决这些问题。由于这些方面是许多问题的共同点,因此已经设计并准备好使用的框架不仅可以加速新代码的开发,还可以增强代码之间的兼容性。计算物理问题的一些最常见的方面是:网格,跟踪模拟流程的时钟,以及描述网格上各种量的动态的一组模型。有一个框架,可以处理这些基本方面的模拟在一个共同的方式可以提供巨大的价值,计算科学家通过解决各种数值和类设计问题,经常出现。本文介绍了新开发的计算框架,我们已经建立了快速原型新的物理代码。这个框架被称为turboPy,是一个轻量级的物理建模框架,基于粒子细胞代码turboWAVE的设计。它实现了一个类(称为Simulation),用于驱动模拟并管理物理模块之间的通信,一个类(称为PhysicsModule),用于处理问题各个部分的动态细节,以及一些其他类,如Grid类和Diagnostic类,用于处理通常出现的各种辅助问题。
英文摘要:
Computational physics problems often have a common set of aspects to them that any particular numerical code will have to address. Because these aspects are common to many problems, having a framework already designed and ready to use will not only speed the development of new codes, but also enhance compatibility between codes. Some of the most common aspects of computational physics problems are: a grid, a clock which tracks the flow of the simulation, and a set of models describing the dynamics of various quantities on the grid. Having a framework that could deal with these basic aspects of the simulation in a common way could provide great value to computational scientists by solving various numerical and class design issues that routinely arise. This paper describes the newly developed computational framework that we have built for rapidly prototyping new physics codes. This framework, called turboPy, is a lightweight physics modeling framework based on the design of the particle-in-cell code turboWAVE. It implements a class (called Simulation) which drives the simulation and manages communication between physics modules, a class (called PhysicsModule) which handles the details of the dynamics of the various parts of the problem, and some additional classes such as a Grid class and a Diagnostic class to handle various ancillary issues that commonly arise.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。