Application of Machine Learning and Convex Limiting to Subgrid Flux Modeling in the Shallow-Water Equations
Ilya Timofeyev, Alexey Schwarzmann, Dmitri Kuzmin
TL;DR
This work presents a data-driven subgrid flux closure for the 1D shallow-water equations by approximating subgrid fluxes with a neural network and enforcing physicality through Monolithic Convex Limiting. The approach combines high-resolution DNS-derived training data with a four-point stencil and a convex-invariant limiting strategy to preserve positivity and entropy-like properties, enabling stable, accurate coarse-grid simulations. Results show the MCL-enhanced NN closures can reproduce DNS dynamics over long times, remain robust outside the training regime, and allow substantially larger time steps, offering practical acceleration for large-scale geophysical flows. The method demonstrates how ML closures can be safely integrated into traditional finite-volume schemes, providing a pathway for real-time forecasting and model verification via an a posteriori training-quality signal from the limiter.
Abstract
We propose a combination of machine learning and flux limiting for property-preserving subgrid scale modeling in the context of flux-limited finite volume methods for the one-dimensional shallow-water equations. The numerical fluxes of a conservative target scheme are fitted to the coarse-mesh averages of a monotone fine-grid discretization using a neural network to parametrize the subgrid scale components. To ensure positivity preservation and the validity of local maximum principles, we use a flux limiter that constrains the intermediate states of an equivalent fluctuation form to stay in a convex admissible set. The results of our numerical studies confirm that the proposed combination of machine learning with monolithic convex limiting produces meaningful closures even in scenarios for which the network was not trained.
