Hybrid EPIC–GOD: An energy–conserving hybrid particle–in–cell code for GPU acceleration using OpenACC

IF 7.2 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Sunjung Kim , Dongsu Ryu , G.S. Choe , Sibaek Yi
{"title":"Hybrid EPIC–GOD: An energy–conserving hybrid particle–in–cell code for GPU acceleration using OpenACC","authors":"Sunjung Kim ,&nbsp;Dongsu Ryu ,&nbsp;G.S. Choe ,&nbsp;Sibaek Yi","doi":"10.1016/j.cpc.2025.109726","DOIUrl":null,"url":null,"abstract":"<div><div>Hybrid simulations, which combine ion particles with an inertialess, charge-neutralizing electron fluid, offer a valuable bridge between fully kinetic particle–in–cell (PIC) and magnetohydrodynamic (MHD) approaches. In this paper, we present Hybrid EPIC–GOD, a new hybrid particle–in–cell code designed to ensure strict conservation of both local charge and total energy—two critical properties often neglected in conventional hybrid codes.</div><div>Hybrid EPIC–GOD solves the coupled equations governing ion particle dynamics and electromagnetic fields using an iterative scheme. The code exactly satisfies the charge continuity equation, while total energy conservation is guaranteed through the iterative convergence process. We describe the implementation in detail and validate the code's performance across a broad spectrum of plasma processes, including waves, instabilities, collisionless shocks, and magnetic reconnection.</div><div>The results show that Hybrid EPIC–GOD accurately reproduces analytical solutions and benchmark results, while maintaining rigorous charge and energy conservation. Moreover, the code is optimized for GPU acceleration using OpenACC, delivering significant performance gains when running on multiple GPUs compared to its CPU–based counterpart. With its combination of accuracy, conservation properties, and computational efficiency, Hybrid EPIC–GOD provides a powerful tool for studying collisionless plasma dynamics in both space and astrophysical environments.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"315 ","pages":"Article 109726"},"PeriodicalIF":7.2000,"publicationDate":"2025-06-27","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/S0010465525002280","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

Hybrid simulations, which combine ion particles with an inertialess, charge-neutralizing electron fluid, offer a valuable bridge between fully kinetic particle–in–cell (PIC) and magnetohydrodynamic (MHD) approaches. In this paper, we present Hybrid EPIC–GOD, a new hybrid particle–in–cell code designed to ensure strict conservation of both local charge and total energy—two critical properties often neglected in conventional hybrid codes.
Hybrid EPIC–GOD solves the coupled equations governing ion particle dynamics and electromagnetic fields using an iterative scheme. The code exactly satisfies the charge continuity equation, while total energy conservation is guaranteed through the iterative convergence process. We describe the implementation in detail and validate the code's performance across a broad spectrum of plasma processes, including waves, instabilities, collisionless shocks, and magnetic reconnection.
The results show that Hybrid EPIC–GOD accurately reproduces analytical solutions and benchmark results, while maintaining rigorous charge and energy conservation. Moreover, the code is optimized for GPU acceleration using OpenACC, delivering significant performance gains when running on multiple GPUs compared to its CPU–based counterpart. With its combination of accuracy, conservation properties, and computational efficiency, Hybrid EPIC–GOD provides a powerful tool for studying collisionless plasma dynamics in both space and astrophysical environments.
Hybrid EPIC-GOD:使用OpenACC进行GPU加速的节能混合粒子单元代码
混合模拟将离子粒子与无惯性、电荷中和的电子流体结合在一起,为完全动力学的电池内粒子(PIC)和磁流体动力学(MHD)方法之间提供了有价值的桥梁。本文提出了一种新的混合粒子胞内码Hybrid EPIC-GOD,它能保证局部电荷和总能量的严格守恒,这是传统混合码中经常忽略的两个关键性质。Hybrid EPIC-GOD采用迭代格式求解离子粒子动力学和电磁场耦合方程。代码完全满足电荷连续性方程,同时通过迭代收敛过程保证总能量守恒。我们详细描述了实现,并在广泛的等离子体过程中验证了代码的性能,包括波、不稳定性、无碰撞冲击和磁重联。结果表明,Hybrid EPIC-GOD能够准确再现分析解和基准结果,同时保持严格的电荷和能量节约。此外,该代码使用OpenACC针对GPU加速进行了优化,与基于cpu的代码相比,在多个GPU上运行时提供了显着的性能提升。结合了精度、守恒特性和计算效率,Hybrid EPIC-GOD为研究空间和天体物理环境中的无碰撞等离子体动力学提供了一个强大的工具。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信