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

JAX-Fluids 2.0:面向可压缩两相流可微CFD的高性能计算

JAX-Fluids 2.0: Towards HPC for Differentiable CFD of Compressible Two-phase Flows

Technical University of Munich, School of Engineering(慕尼黑工业大学工程学院);Technical University of Munich, Munich Institute of Integrated Materials, Energy and Process Engineering(慕尼黑工业大学慕尼黑集成材料、能源与过程工程研究所)

Deniz A. Bezgin, Aaron B. Buhendwa, Nikolaus A. Adams

AI总结:

本文介绍JAX-Fluids 2.0,一个面向可压缩单/两相流的可微CFD求解器,通过JAX并行化实现GPU/TPU高性能计算,新增五方程扩散界面模型及多项算法改进,并验证了多种流动模拟。

摘要:

为了促进机器学习辅助的计算流体力学(CFD),我们推出了JAX-Fluids的第二个版本。JAX-Fluids是一个基于Python的完全可微CFD求解器,专为可压缩单相和两相流设计。在本工作中,第一版被扩展以纳入高性能计算(HPC)能力。我们引入了一种利用JAX原语操作的并行化策略,该策略在GPU(多达512块NVIDIA A100显卡)和TPU(多达1024个TPU v3核心)HPC系统上高效扩展。我们进一步展示了在扩展积分轨迹上自动微分梯度的稳定并行计算。新代码版本提供了增强的两相流建模能力。特别地,加入了一个五方程扩散界面模型,以补充水平集尖锐界面模型。其他算法改进包括用于增强鲁棒性的保正限制器、对拉伸笛卡尔网格的支持、重构的I/O处理、全面的后处理例程,以及更新后的最先进高阶数值离散格式列表。我们通过展示单相和两相流的模拟结果来验证新添加的数值模型,包括湍流边界层和通道流、空气-氦气激波气泡相互作用,以及空气-水激波液滴相互作用。

英文摘要:

In our effort to facilitate machine learning-assisted computational fluid dynamics (CFD), we introduce the second iteration of JAX-Fluids. JAX-Fluids is a Python-based fully-differentiable CFD solver designed for compressible single- and two-phase flows. In this work, the first version is extended to incorporate high-performance computing (HPC) capabilities. We introduce a parallelization strategy utilizing JAX primitive operations that scales efficiently on GPU (up to 512 NVIDIA A100 graphics cards) and TPU (up to 1024 TPU v3 cores) HPC systems. We further demonstrate the stable parallel computation of automatic differentiation gradients across extended integration trajectories. The new code version offers enhanced two-phase flow modeling capabilities. In particular, a five-equation diffuse-interface model is incorporated which complements the level-set sharp-interface model. Additional algorithmic improvements include positivity-preserving limiters for increased robustness, support for stretched Cartesian meshes, refactored I/O handling, comprehensive post-processing routines, and an updated list of state-of-the-art high-order numerical discretization schemes. We verify newly added numerical models by showcasing simulation results for single- and two-phase flows, including turbulent boundary layer and channel flows, air-helium shock bubble interactions, and air-water shock drop interactions.

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

↑