PM2D: A parallel GPU-based code for the kinetic simulation of laser plasma instabilities at large scales

IF 7.2 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Computer Physics Communications Pub Date : 2024-06-28 DOI:10.1016/j.cpc.2024.109295
Hanghang Ma , Liwei Tan , Suming Weng , Wenjun Ying , Zhengming Sheng , Jie Zhang
{"title":"PM2D: A parallel GPU-based code for the kinetic simulation of laser plasma instabilities at large scales","authors":"Hanghang Ma ,&nbsp;Liwei Tan ,&nbsp;Suming Weng ,&nbsp;Wenjun Ying ,&nbsp;Zhengming Sheng ,&nbsp;Jie Zhang","doi":"10.1016/j.cpc.2024.109295","DOIUrl":null,"url":null,"abstract":"<div><p>Laser plasma instabilities (LPIs) have significant influences on the laser energy deposition efficiency and therefore are important processes in inertial confined fusion (ICF). Numerical simulations play important roles in revealing the complex physics of LPIs. Since LPIs are typically a three wave coupling process, the precise simulations of LPIs with kinetic effects require to resolve the laser period (around one femtosecond) and laser wavelength (less than one micron). In the typical ICF experiments, however, LPIs are involved in a spatial scale of several millimeters and a temporal scale of several nanoseconds. Therefore, the precise kinetic simulations of LPIs in such scales require huge computational resources and are hard to be carried out by present kinetic codes like particle-in-cell (PIC) codes. In this paper, a full wave fluid model of LPIs is constructed and numerically solved by the particle-mesh method, where the plasma is described by macro particles that can move across the mesh grids freely. Based upon this model, a two-dimensional (2D) GPU code named PM2D is developed. The PM2D code can simulate the kinetic effects of LPIs self-consistently as normal PIC codes. Moreover, as the physical model adopted in the PM2D code is specifically constructed for LPIs, the required macro particles per grid in the simulations can be largely reduced and thus overall simulation cost is considerably reduced comparing with PIC codes. More importantly, the numerical noise in the PM2D code is much lower, which makes it more robust than PIC codes in the simulation of LPIs for the long-time scale above 10 picoseconds. After the distributed computing is realized, our PM2D code is able to run on GPU clusters with a total mesh grids up to several billions, which meets the requirements for the simulations of LPIs at ICF experimental scale with reasonable cost.</p></div><div><h3>Program summary</h3><p><em>Program Title:</em> PM2D</p><p><em>CPC Library link to program files:</em> <span>https://doi.org/10.17632/xscj6vnkkw.1</span><svg><path></path></svg></p><p><em>Licensing provisions:</em> GNU General Public License v3.0.</p><p><em>Programming language:</em> C++, CUDA.</p><p><em>Nature of problem:</em> Although the large scale simulations of laser plasma instabilities (LPIs) is of great significance for the inertial confinement fusion (ICF), there is still no suitable code to simulate these problems. PM2D code based on a GPU platform provides an effective method to simulate these large scale problems in ICF.</p><p><em>Solution method:</em> A fluid model for LPIs is established firstly, which contains wave equations that describe the laser propagating process, electron and ion fluid equations that describe the plasma motions, and a Poisson's equation that describes the electrostatic field induced by charge separation. The wave equation is solved on a rectangular region using absorption boundary conditions on all of four boundaries. The absorption boundary condition on the left boundary is further extended to allow the incidence of driven lasers and absorption of scattering lasers simultaneously. The fluid equations in the physical model are solved by the particle-mesh method, in which the macro particles are driven to move by fluid forces. Since macro particles can move freely within the fixed fluid grids, the PM2D code can capture the kinetic effects self-consistently. The Poisson's equation for the electrostatic field is solved by a Fourier decomposition method in the <em>y</em> direction, which helps to decrease the simulation cost greatly. The PM2D code is developed on a GPU platform base on CUDA toolkit, which largely increase the computational speed.</p></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":null,"pages":null},"PeriodicalIF":7.2000,"publicationDate":"2024-06-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524002182","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

Abstract

Laser plasma instabilities (LPIs) have significant influences on the laser energy deposition efficiency and therefore are important processes in inertial confined fusion (ICF). Numerical simulations play important roles in revealing the complex physics of LPIs. Since LPIs are typically a three wave coupling process, the precise simulations of LPIs with kinetic effects require to resolve the laser period (around one femtosecond) and laser wavelength (less than one micron). In the typical ICF experiments, however, LPIs are involved in a spatial scale of several millimeters and a temporal scale of several nanoseconds. Therefore, the precise kinetic simulations of LPIs in such scales require huge computational resources and are hard to be carried out by present kinetic codes like particle-in-cell (PIC) codes. In this paper, a full wave fluid model of LPIs is constructed and numerically solved by the particle-mesh method, where the plasma is described by macro particles that can move across the mesh grids freely. Based upon this model, a two-dimensional (2D) GPU code named PM2D is developed. The PM2D code can simulate the kinetic effects of LPIs self-consistently as normal PIC codes. Moreover, as the physical model adopted in the PM2D code is specifically constructed for LPIs, the required macro particles per grid in the simulations can be largely reduced and thus overall simulation cost is considerably reduced comparing with PIC codes. More importantly, the numerical noise in the PM2D code is much lower, which makes it more robust than PIC codes in the simulation of LPIs for the long-time scale above 10 picoseconds. After the distributed computing is realized, our PM2D code is able to run on GPU clusters with a total mesh grids up to several billions, which meets the requirements for the simulations of LPIs at ICF experimental scale with reasonable cost.

Program summary

Program Title: PM2D

CPC Library link to program files: https://doi.org/10.17632/xscj6vnkkw.1

Licensing provisions: GNU General Public License v3.0.

Programming language: C++, CUDA.

Nature of problem: Although the large scale simulations of laser plasma instabilities (LPIs) is of great significance for the inertial confinement fusion (ICF), there is still no suitable code to simulate these problems. PM2D code based on a GPU platform provides an effective method to simulate these large scale problems in ICF.

Solution method: A fluid model for LPIs is established firstly, which contains wave equations that describe the laser propagating process, electron and ion fluid equations that describe the plasma motions, and a Poisson's equation that describes the electrostatic field induced by charge separation. The wave equation is solved on a rectangular region using absorption boundary conditions on all of four boundaries. The absorption boundary condition on the left boundary is further extended to allow the incidence of driven lasers and absorption of scattering lasers simultaneously. The fluid equations in the physical model are solved by the particle-mesh method, in which the macro particles are driven to move by fluid forces. Since macro particles can move freely within the fixed fluid grids, the PM2D code can capture the kinetic effects self-consistently. The Poisson's equation for the electrostatic field is solved by a Fourier decomposition method in the y direction, which helps to decrease the simulation cost greatly. The PM2D code is developed on a GPU platform base on CUDA toolkit, which largely increase the computational speed.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
PM2D:基于 GPU 的并行代码,用于大尺度激光等离子体不稳定性的动力学模拟
激光等离子体不稳定性(LPIs)对激光能量沉积效率有重大影响,因此是惯性约束聚变(ICF)的重要过程。数值模拟在揭示 LPIs 的复杂物理过程中发挥着重要作用。由于 LPI 通常是一个三波耦合过程,对具有动力学效应的 LPI 进行精确模拟需要解析激光周期(约一飞秒)和激光波长(小于一微米)。然而,在典型的 ICF 实验中,LPI 的空间尺度为几毫米,时间尺度为几纳秒。因此,在这样的尺度上对 LPI 进行精确的动力学模拟需要巨大的计算资源,而目前的动力学代码(如粒子入胞(PIC)代码)很难实现。本文构建了 LPIs 的全波流体模型,并采用粒子网格法进行数值求解,其中等离子体由可在网格中自由移动的宏粒子描述。在此模型的基础上,开发了名为 PM2D 的二维 GPU 代码。PM2D 代码能像普通 PIC 代码一样自洽地模拟 LPI 的动力学效应。此外,由于 PM2D 代码所采用的物理模型是专门为 LPIs 而构建的,因此与 PIC 代码相比,模拟中每个网格所需的宏粒子数量可以大大减少,从而大大降低了整体模拟成本。更重要的是,PM2D 代码的数值噪声更低,因此在 10 皮秒以上的长时间尺度上,它比 PIC 代码在 LPI 仿真中更加稳健。在实现分布式计算后,我们的 PM2D 代码能够在网格总数高达几十亿的 GPU 集群上运行,从而以合理的成本满足了 ICF 实验规模的 LPI 仿真要求:PM2DCPC 库程序文件链接:https://doi.org/10.17632/xscj6vnkkw.1Licensing provisions:GNU General Public License v3.0.Programming language:C++, CUDA.Nature of problem: 虽然激光等离子体不稳定性(LPIs)的大规模模拟对惯性约束聚变(ICF)具有重要意义,但目前仍没有合适的代码来模拟这些问题。基于GPU平台的PM2D代码为模拟ICF中的这些大规模问题提供了一种有效的方法:首先建立 LPI 的流体模型,其中包括描述激光传播过程的波方程、描述等离子体运动的电子和离子流体方程以及描述电荷分离引起的静电场的泊松方程。波方程是在一个矩形区域内求解的,在四个边界上都使用了吸收边界条件。左边界的吸收边界条件进一步扩展,允许驱动激光同时入射和散射激光同时吸收。物理模型中的流体方程采用粒子网格法求解,其中大粒子受流体力驱动移动。由于宏粒子可以在固定的流体网格内自由移动,因此 PM2D 代码可以自洽地捕捉到动力学效应。静电场的泊松方程是通过 Y 方向的傅立叶分解法求解的,这有助于大大降低模拟成本。PM2D 代码是在基于 CUDA 工具包的 GPU 平台上开发的,大大提高了计算速度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Computer Physics Communications
Computer Physics Communications 物理-计算机:跨学科应用
CiteScore
12.10
自引率
3.20%
发文量
287
审稿时长
5.3 months
期刊介绍: The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper. Computer Programs in Physics (CPiP) These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged. Computational Physics Papers (CP) These are research papers in, but are not limited to, the following themes across computational physics and related disciplines. mathematical and numerical methods and algorithms; computational models including those associated with the design, control and analysis of experiments; and algebraic computation. Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.
期刊最新文献
A novel model for direct numerical simulation of suspension dynamics with arbitrarily shaped convex particles Editorial Board Study α decay and proton emission based on data-driven symbolic regression Efficient determination of free energies of non-ideal solid solutions via hybrid Monte Carlo simulations 1D drift-kinetic numerical model based on semi-implicit particle-in-cell method
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1