一个相场代码的GPU模拟多相均匀各向同性湍流

IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Alessio Roccon , Lea Enzenberger , Domenico Zaza , Alfredo Soldati
{"title":"一个相场代码的GPU模拟多相均匀各向同性湍流","authors":"Alessio Roccon ,&nbsp;Lea Enzenberger ,&nbsp;Domenico Zaza ,&nbsp;Alfredo Soldati","doi":"10.1016/j.cpc.2025.109804","DOIUrl":null,"url":null,"abstract":"<div><div>We present MHIT36, a GPU-tailored solver for interface-resolved simulations of multiphase turbulence. The framework couples direct numerical simulation (DNS) of the Navier–Stokes equations, which describe the flow field, with a phase-field method to capture interfacial phenomena. Simulations are performed in a cubic domain with periodic boundary conditions applied in all three spatial directions. The governing equations are discretized using a second-order finite difference scheme. The Navier–Stokes equations are integrated with an explicit fractional-step method, and the resulting pressure Poisson equation is solved using a fast Fourier transform (FFT)-based approach. The accurate conservative diffuse interface (ACDI) formulation is used to describe the transport of the phase-field variable. From a computational standpoint, MHIT36 employs a two-dimensional domain decomposition to distribute the workload across MPI tasks. The cuDecomp library is used to perform pencil transpositions and halo exchanges, while the cuFFT library and OpenACC directives are leveraged to offload the remaining computational kernels to the GPU. This parallelization strategy enables MHIT36 to achieve an excellent scaling efficiency on 1024 GPUs, while maintaining a structure that is easy to extend and modify. MHIT36 is released open source under the MIT license.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> MHIT36</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/yb2dt99swr.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/MultiphaseFlowLab/MHIT36</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT License</div><div><em>Programming language:</em> Modern Fortran</div><div><em>Nature of problem:</em> Solving the three-dimensional incompressible Navier-Stokes equations in a triply-periodic box. A phase-field method based on the accurate conservative diffuse interface (ACDI) formulation is used to describe the shape and topological changes of the interface.</div><div><em>Solution method:</em> The system of governing equations is advanced in time using an explicit strategy while the governing equations are discretized in space using a second-order finite difference approach. A fractional step is used to solve the Navier-Stokes equations and an FFT-based method is used to solve the resulting Poisson equation for pressure. The parallelization relies on a 2D domain decomposition strategy and all intra- and inter-node communications are handled by the cuDecomp strategy. The cuFFT library and OpenACC directives are used to entirely offload code execution to GPUs.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"316 ","pages":"Article 109804"},"PeriodicalIF":3.4000,"publicationDate":"2025-08-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"MHIT36: A phase-field code for GPU simulations of multiphase homogeneous isotropic turbulence\",\"authors\":\"Alessio Roccon ,&nbsp;Lea Enzenberger ,&nbsp;Domenico Zaza ,&nbsp;Alfredo Soldati\",\"doi\":\"10.1016/j.cpc.2025.109804\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>We present MHIT36, a GPU-tailored solver for interface-resolved simulations of multiphase turbulence. The framework couples direct numerical simulation (DNS) of the Navier–Stokes equations, which describe the flow field, with a phase-field method to capture interfacial phenomena. Simulations are performed in a cubic domain with periodic boundary conditions applied in all three spatial directions. The governing equations are discretized using a second-order finite difference scheme. The Navier–Stokes equations are integrated with an explicit fractional-step method, and the resulting pressure Poisson equation is solved using a fast Fourier transform (FFT)-based approach. The accurate conservative diffuse interface (ACDI) formulation is used to describe the transport of the phase-field variable. From a computational standpoint, MHIT36 employs a two-dimensional domain decomposition to distribute the workload across MPI tasks. The cuDecomp library is used to perform pencil transpositions and halo exchanges, while the cuFFT library and OpenACC directives are leveraged to offload the remaining computational kernels to the GPU. This parallelization strategy enables MHIT36 to achieve an excellent scaling efficiency on 1024 GPUs, while maintaining a structure that is easy to extend and modify. MHIT36 is released open source under the MIT license.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> MHIT36</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/yb2dt99swr.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/MultiphaseFlowLab/MHIT36</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT License</div><div><em>Programming language:</em> Modern Fortran</div><div><em>Nature of problem:</em> Solving the three-dimensional incompressible Navier-Stokes equations in a triply-periodic box. A phase-field method based on the accurate conservative diffuse interface (ACDI) formulation is used to describe the shape and topological changes of the interface.</div><div><em>Solution method:</em> The system of governing equations is advanced in time using an explicit strategy while the governing equations are discretized in space using a second-order finite difference approach. A fractional step is used to solve the Navier-Stokes equations and an FFT-based method is used to solve the resulting Poisson equation for pressure. The parallelization relies on a 2D domain decomposition strategy and all intra- and inter-node communications are handled by the cuDecomp strategy. The cuFFT library and OpenACC directives are used to entirely offload code execution to GPUs.</div></div>\",\"PeriodicalId\":285,\"journal\":{\"name\":\"Computer Physics Communications\",\"volume\":\"316 \",\"pages\":\"Article 109804\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-08-07\",\"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/S0010465525003066\",\"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/S0010465525003066","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

摘要

我们提出了MHIT36,一个gpu定制的求解器,用于多相湍流的界面解析模拟。该框架将描述流场的Navier-Stokes方程的直接数值模拟(DNS)与相场方法相结合,以捕捉界面现象。模拟是在三次域中进行的,在三个空间方向上都应用了周期边界条件。采用二阶有限差分格式对控制方程进行离散化。采用显式分步法对Navier-Stokes方程进行积分,并采用基于快速傅立叶变换(FFT)的方法求解得到的压力泊松方程。采用精确保守扩散界面(ACDI)公式来描述相场变量的输运。从计算的角度来看,MHIT36采用二维域分解来跨MPI任务分配工作负载。cuDecomp库用于执行铅笔换位和光晕交换,而cuFFT库和OpenACC指令用于将剩余的计算内核卸载到GPU。这种并行化策略使MHIT36能够在1024个gpu上实现出色的扩展效率,同时保持易于扩展和修改的结构。MHIT36是在MIT许可下开源发布的。程序摘要程序标题:MHIT36CPC库链接到程序文件:https://doi.org/10.17632/yb2dt99swr.1Developer's存储库链接:https://github.com/MultiphaseFlowLab/MHIT36Licensing条款:MIT许可证编程语言:现代fortran问题的性质:解决三维不可压缩的Navier-Stokes方程在一个三周期的盒子。采用基于精确保守扩散界面(ACDI)公式的相场法来描述界面的形状和拓扑变化。求解方法:采用显式策略在时间上推进控制方程组,采用二阶有限差分方法在空间上离散控制方程组。采用分数阶法求解Navier-Stokes方程,采用基于fft的方法求解得到的压力泊松方程。并行化依赖于2D域分解策略,所有节点内和节点间的通信都由cuDecomp策略处理。cuFFT库和OpenACC指令用于将代码执行完全卸载到gpu上。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
MHIT36: A phase-field code for GPU simulations of multiphase homogeneous isotropic turbulence
We present MHIT36, a GPU-tailored solver for interface-resolved simulations of multiphase turbulence. The framework couples direct numerical simulation (DNS) of the Navier–Stokes equations, which describe the flow field, with a phase-field method to capture interfacial phenomena. Simulations are performed in a cubic domain with periodic boundary conditions applied in all three spatial directions. The governing equations are discretized using a second-order finite difference scheme. The Navier–Stokes equations are integrated with an explicit fractional-step method, and the resulting pressure Poisson equation is solved using a fast Fourier transform (FFT)-based approach. The accurate conservative diffuse interface (ACDI) formulation is used to describe the transport of the phase-field variable. From a computational standpoint, MHIT36 employs a two-dimensional domain decomposition to distribute the workload across MPI tasks. The cuDecomp library is used to perform pencil transpositions and halo exchanges, while the cuFFT library and OpenACC directives are leveraged to offload the remaining computational kernels to the GPU. This parallelization strategy enables MHIT36 to achieve an excellent scaling efficiency on 1024 GPUs, while maintaining a structure that is easy to extend and modify. MHIT36 is released open source under the MIT license.

Program summary

Program Title: MHIT36
CPC Library link to program files: https://doi.org/10.17632/yb2dt99swr.1
Developer's repository link: https://github.com/MultiphaseFlowLab/MHIT36
Licensing provisions: MIT License
Programming language: Modern Fortran
Nature of problem: Solving the three-dimensional incompressible Navier-Stokes equations in a triply-periodic box. A phase-field method based on the accurate conservative diffuse interface (ACDI) formulation is used to describe the shape and topological changes of the interface.
Solution method: The system of governing equations is advanced in time using an explicit strategy while the governing equations are discretized in space using a second-order finite difference approach. A fractional step is used to solve the Navier-Stokes equations and an FFT-based method is used to solve the resulting Poisson equation for pressure. The parallelization relies on a 2D domain decomposition strategy and all intra- and inter-node communications are handled by the cuDecomp strategy. The cuFFT library and OpenACC directives are used to entirely offload code execution to GPUs.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
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学术官方微信