AeroJAX: JAX-native CFD, differentiable end-to-end. ~560 FPS at 128x128 on CPU [P]

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Mathematics & Computational Sciences · Depth: Advanced, quick

Summary

AeroJAX is a new JAX-native Computational Fluid Dynamics (CFD) framework designed for end-to-end differentiable Navier-Stokes simulations, specifically for integration into machine learning loops. It supports inverse design and learned closures by maintaining differentiability throughout the solver stack, including velocity, pressure, and vorticity fields. The framework features a CPU-first, vectorized implementation with no external dependencies, offering both Navier-Stokes (projection method) and Lattice Boltzmann Method (LBM D2Q9) support. It incorporates Brinkman-style forcing with smooth masks for geometry handling. Performance benchmarks show approximately 560 FPS at 128x128 resolution and 300 FPS at 512x96, with differentiable flow fields and hooks for neural operators.

Key takeaway

For AI Engineers developing physics-informed machine learning models, AeroJAX offers a critical tool to overcome the "black box" limitation of traditional CFD solvers. You can now integrate fluid dynamics simulations directly into optimization and learning pipelines, enabling gradient-based inverse design and the training of learned closures or neural operators within the solver loop, significantly enhancing hybrid model development.

Key insights

AeroJAX enables differentiable CFD simulations for seamless integration into ML optimization and learning pipelines.

Principles

Method

AeroJAX uses a projection method for 2D incompressible Navier-Stokes and an LBM solver, both fully differentiable, to allow gradient propagation through flow fields for inverse design and learned closures.

In practice

Topics

Best for: AI Engineer, AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.