{"title":"Hybrid EPIC-GOD:使用OpenACC进行GPU加速的节能混合粒子单元代码","authors":"Sunjung Kim , Dongsu Ryu , G.S. Choe , 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":"{\"title\":\"Hybrid EPIC–GOD: An energy–conserving hybrid particle–in–cell code for GPU acceleration using OpenACC\",\"authors\":\"Sunjung Kim , Dongsu Ryu , G.S. Choe , 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}","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}
Hybrid EPIC–GOD: An energy–conserving hybrid particle–in–cell code for GPU acceleration using OpenACC
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.
期刊介绍:
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.