JAX-FLUIDS: A fully-differentiable high-order computational fluid dynamics solver for compressible two-phase flows

03/25/2022
by   Deniz A. Bezgin, et al.
0

Physical systems are governed by partial differential equations (PDEs). The Navier-Stokes equations describe fluid flows and are representative of nonlinear physical systems with complex spatio-temporal interactions. Fluid flows are omnipresent in nature and engineering applications, and their accurate simulation is essential for providing insights into these processes. While PDEs are typically solved with numerical methods, the recent success of machine learning (ML) has shown that ML methods can provide novel avenues of finding solutions to PDEs. ML is becoming more and more present in computational fluid dynamics (CFD). However, up to this date, there does not exist a general-purpose ML-CFD package which provides 1) powerful state-of-the-art numerical methods, 2) seamless hybridization of ML with CFD, and 3) automatic differentiation (AD) capabilities. AD in particular is essential to ML-CFD research as it provides gradient information and enables optimization of preexisting and novel CFD models. In this work, we propose JAX-FLUIDS: a comprehensive fully-differentiable CFD Python solver for compressible two-phase flows. JAX-FLUIDS allows the simulation of complex fluid dynamics with phenomena like three-dimensional turbulence, compressibility effects, and two-phase flows. Written entirely in JAX, it is straightforward to include existing ML models into the proposed framework. Furthermore, JAX-FLUIDS enables end-to-end optimization. I.e., ML models can be optimized with gradients that are backpropagated through the entire CFD algorithm, and therefore contain not only information of the underlying PDE but also of the applied numerical methods. We believe that a Python package like JAX-FLUIDS is crucial to facilitate research at the intersection of ML and CFD and may pave the way for an era of differentiable fluid dynamics.

READ FULL TEXT

page 30

page 38

research
12/09/2021

A fully-differentiable compressible high-order computational fluid dynamics solver

Fluid flows are omnipresent in nature and engineering disciplines. The r...
research
01/21/2020

Learning to Control PDEs with Differentiable Physics

Predicting outcomes and planning interactions with the physical world ar...
research
02/01/2022

Physical Design using Differentiable Learned Simulators

Designing physical artifacts that serve a purpose - such as tools and ot...
research
07/01/2022

Learning to correct spectral methods for simulating turbulent flows

Despite their ubiquity throughout science and engineering, only a handfu...
research
12/16/2019

Learning Hidden Dynamics using Intelligent Automatic Differentiation

Many engineering problems involve learning hidden dynamics from indirect...
research
08/25/2022

Algorithmic Differentiation for Automatized Modelling of Machine Learned Force Fields

Reconstructing force fields (FF) from atomistic simulation data is a cha...
research
03/30/2021

State-of-the-art SPH solver DualSPHysics: from fluid dynamics to multiphysics problems

DualSPHysics is a weakly compressible smoothed particle hydrodynamics (S...

Please sign up or login with your details

Forgot password? Click here to reset