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

Deniz A. Bezgin, Aaron B. Buhendwa, Nikolaus A. Adams
2/7/2024
physics.flu-dyncs.CEcs.LG

No official code found. Best implementation: tumaer/JAXFLUIDS (637 stars, MIT, JAX, last commit 2026-04-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

tumaer/JAXFLUIDSCommunity100%
JAXMIT

Differentiable Fluid Dynamics Package

637111Python, MakefileMar 21, 20226 months agoMIT
automatic-differentiationcfdcompressible-flowscomputational-fluid-dynamicscuda+12 more

Similar Papers

Cite this paper

@article{bezgin2024jaxfluids,
  title  = {JAX-Fluids 2.0: Towards HPC for Differentiable CFD of Compressible Two-phase Flows},
  author = {Deniz A. Bezgin and Aaron B. Buhendwa and Nikolaus A. Adams},
  year   = {2024},
  eprint = {2402.05193},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05193v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05193.svg)](https://codeofpaper.com/paper/2402.05193)

Discussion