arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1104.3998physics.plasm-phphysics.comp-ph
收藏

基于图形处理器的一维Monte Carlo碰撞精细分选粒子模拟算法

Fine-sorting One-dimensional Particle-In-Cell Algorithm with Monte-Carlo Collisions on a Graphics Processing Unit

Philipp Mertmann, Denis Eremin, Thomas Mussenbrock, Ralf Peter Brinkmann, Peter Awakowicz

摘要:

蒙特卡罗碰撞的粒子模拟(PIC)用于等离子体科学,以探索各种动力学效应。一个主要问题是这种模拟的长运行时间。即使在现代计算机系统上,PIC代码也需要相当多的时间来收敛。大多数计算可以大规模并行化,因为粒子在一个时间步长内相互独立。当前的图形处理单元(GPU)为并行代码的执行提供了一种有吸引力的方法。在这篇文章中,我们展示了一个一维PIC代码运行在Nvidia GPU上使用CUDA环境。该代码的一个显著特征是,该代码用于相对于粒子坐标对粒子进行分类的单元的大小与用于电场离散化的网格单元的大小相当。因此,我们称相应的算法为“细排序”。实现细节和优化的代码进行了讨论,并计算与经典的CPU方法相比的速度。

英文摘要:

Particle-in-cell (PIC) simulations with Monte-Carlo collisions are used in plasma science to explore a variety of kinetic effects. One major problem is the long run-time of such simulations. Even on modern computer systems, PIC codes take a considerable amount of time for convergence. Most of the computations can be massively parallelized, since particles behave independently of each other within one time step. Current graphics processing units (GPUs) offer an attractive means for execution of the parallelized code. In this contribution we show a one-dimensional PIC code running on Nvidia GPUs using the CUDA environment. A distinctive feature of the code is that size of the cells that the code uses to sort the particles with respect to their coordinates is comparable to size of the grid cells used for discretization of the electric field. Hence, we call the corresponding algorithm "fine-sorting". Implementation details and optimization of the code are discussed and the speed-up compared to classical CPU approaches is computed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑