Neural Physics: Using AI Libraries to Develop Physics-Based Solvers for Incompressible Computational Fluid Dynamics
Boyang Chen, Claire E. Heaney, Christopher C. Pain
TL;DR
The work addresses the need for flexible, differentiable CFD solvers compatible with modern AI hardware by recasting discretised PDEs as convolutional neural network layers with analytically determined weights. It advances a Neural Physics framework that realizes Jacobi and multigrid solvers (via a U‑Net) without training, validated across advection–diffusion, Burgers, and incompressible Navier–Stokes equations. The approach achieves results indistinguishable from conventional solvers, while offering platform portability, differentiability for optimization, and easy integration with data-driven models, including potential enhancements for unstructured meshes and parallel HPC. This represents a new pathway to solve PDEs with implicit methods using standard AI libraries, enabling hybrid physics–ML modeling and efficient deployment on AI accelerators.
Abstract
Numerical discretisations of partial differential equations (PDEs) can be written as discrete convolutions, which, themselves, are a key tool in AI libraries and used in convolutional neural networks (CNNs). We therefore propose to implement numerical discretisations as convolutional layers of a neural network, where the weights or filters are determined analytically rather than by training. Furthermore, we demonstrate that these systems can be solved entirely by functions in AI libraries, either by using Jacobi iteration or multigrid methods, the latter realised through a U-Net architecture. Some advantages of the Neural Physics approach are that (1) the methods are platform agnostic; (2) the resulting solvers are fully differentiable, ideal for optimisation tasks; and (3) writing CFD solvers as (untrained) neural networks means that they can be seamlessly integrated with trained neural networks to form hybrid models. We demonstrate the proposed approach on a number of test cases of increasing complexity from advection-diffusion problems, the non-linear Burgers equation to the Navier-Stokes equations. We validate the approach by comparing our results with solutions obtained from traditionally written code and common benchmarks from the literature. We show that the proposed methodology can solve all these problems using repurposed AI libraries in an efficient way, without training, and presents a new avenue to explore in the development of methods to solve PDEs with implicit methods.
