Learning second-order TVD flux limiters using differentiable solvers
Chenyang Huang, Amal S. Sebastian, Venkatasubramanian Viswanathan
TL;DR
This work tackles oscillations in high-order schemes for hyperbolic conservation laws by learning a second-order TVD flux limiter within a differentiable finite-volume solver. The limiter is parameterized as a convex neural combination of the Minmod and Superbee limiters, with a neural network determining the convex weight from the local slope ratio and constrained to maintain TVD and symmetry. Through differentiable simulations and gradient-based training, the approach achieves strong generalization across linear advection, Burgers’ equation, Euler Sod’s problem, and even a 2D Riemann test, often matching or surpassing classical limiters while remaining compatible with production codes like OpenFOAM. The method enables data-driven, physically constrained design of flux limiters and paves the way for end-to-end optimization of CFD solvers for complex flows.
Abstract
This paper presents a data-driven framework for learning optimal second-order total variation diminishing (TVD) flux limiters via differentiable simulations. In our fully differentiable finite volume solvers, the limiter functions are replaced by neural networks. By representing the limiter as a pointwise convex linear combination of the Minmod and Superbee limiters, we enforce both second-order accuracy and TVD constraints at all stages of training. Our approach leverages gradient-based optimization through automatic differentiation, allowing a direct backpropagation of errors from numerical solutions to the limiter parameters. We demonstrate the effectiveness of this method on various hyperbolic conservation laws, including the linear advection equation, the Burgers' equation, and the one-dimensional Euler equations. Remarkably, a limiter trained solely on linear advection exhibits strong generalizability, surpassing the accuracy of most classical flux limiters across a range of problems with shocks and discontinuities. The learned flux limiters can be readily integrated into existing computational fluid dynamics codes, and the proposed methodology also offers a flexible pathway to systematically develop and optimize flux limiters for complex flow problems.
