arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.01322physics.flu-dyncs.DC
收藏

一种面向多相湍流直接数值模拟的GPU就绪伪谱方法

A GPU-ready pseudo-spectral method for direct numerical simulations of multiphase turbulence

Alessio Roccon

AI总结:

本文介绍了一种面向含液滴和气泡湍流大规模直接数值模拟的内部伪谱求解器的GPU移植,采用MPI与OpenACC/cuFFT实现多级并行,在异构计算中显著加速且易于维护。

摘要:

在这项工作中,我们详细介绍了针对内部伪谱求解器进行的GPU移植,该求解器专为界面解析的含液滴和气泡湍流的大规模模拟而设计。该代码依赖于用于描述流场的Navier-Stokes方程的直接数值模拟,并结合了用于描述液滴或气泡界面形状、变形和拓扑变化的相场方法。控制方程——Navier-Stokes方程和Cahn-Hilliard方程——使用依赖于在波数空间中变换变量的伪谱方法进行求解。该代码针对含液滴和气泡湍流的大规模模拟,并依赖于多级并行。第一级并行依赖于消息传递接口(MPI),用于基于CPU基础设施的多核架构。第二级并行依赖于OpenACC指令和cuFFT库,用于在目标为基于GPU的基础设施时加速代码执行。由此产生的多相流求解器可以在异构计算基础设施中高效执行,并在使用GPU时展现出显著的加速效果。得益于代码的模块化结构以及使用基于指令的策略将代码执行卸载到GPU上,在针对不同计算架构时仅需进行少量的代码修改。这改善了代码维护、版本控制以及附加模块或控制方程的实现。

英文摘要:

In this work, we detail the GPU-porting of an in-house pseudo-spectral solver tailored towards large-scale simulations of interface-resolved simulation of drop- and bubble-laden turbulent flows. The code relies on direct numerical simulation of the Navier-Stokes equations, used to describe the flow field, coupled with a phase-field method, used to describe the shape, deformation, and topological changes of the interface of the drops or bubbles. The governing equations -Navier-Stokes and Cahn-Hilliard equations-are solved using a pseudo-spectral method that relies on transforming the variables in the wavenumber space. The code targets large-scale simulations of drop- and bubble-laden turbulent flows and relies on a multilevel parallelism. The first level of parallelism relies on the message-passing interface (MPI) and is used on multi-core architectures in CPU-based infrastructures. A second level of parallelism relies on OpenACC directives and cuFFT libraries and is used to accelerate the code execution when GPU-based infrastructures are targeted. The resulting multiphase flow solver can be efficiently executed in heterogeneous computing infrastructures and exhibits a remarkable speed-up when GPUs are employed. Thanks to the modular structure of the code and the use of a directive-based strategy to offload code execution on GPUs, only minor code modifications are required when targeting different computing architectures. This improves code maintenance, version control and the implementation of additional modules or governing equations.

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

↑