ANN-Flux Method for Nonconvex Fluxes in Riemann Problems

Authors

  • Marcelo M. Mello UFRGS
  • Arthur M. Espírito Santo UFRGS
  • Pedro H. A. Konzen UFRGS

Abstract

Artificial neural networks (ANNs) [3] have been successfully applied to solve partial differential equations, particularly since the emergence of physics-informed neural networks (PINNs) [7]. Applications to nonlinear conservation laws have also shown promising results, including PINNs for high-speed flows [6], conservative PINNs [4], and weak PINNs [8]. In this work, we propose a novel method, called ANN-Flux, to solve the Riemann problem for the nonlinear scalar conservation law ut + (F(u))x = 0, x, t ∈ ℝ × (0, tf], (1) u(x, 0) = uL, x ∈ ℝ−, u(x, 0) = uR, x ∈ ℝ+, (2) with prescribed left and right states uL, uR ∈ ℝ, and a flux function F : ℝ → ℝ. When the flux function is nonconvex, the entropy solution of problem (1) may consist of a combination of shock and rarefaction waves, depending on the initial states. [...] The ANN-Flux (ANN-F) method is designed for intricate flux functions that are computationally expensive to evaluate, differentiate, or invert. Given that neural networks are universal approximators [3], ANN-F approximates the flux F using a multilayer perceptron (MLP) = NF(u) trained to minimize the mean squared error (MSE) loss ε. In the rarefaction case, however, a second set of MLPs, denoted by NG(k), is introduced to approximate the inverse of the derivative of F, i.e., [N'F]-1 ≈ [F']-1. By combining the ANN-based shock and rarefaction approximations, the ANN-Flux method is capable of solving Riemann problems involving nonconvex flux functions. The Buckley–Leverett equation models two-phase immiscible and incompressible fluid flow through porous media [5]. Its flux function is nonconvex, exhibiting a single change in concavity within the admissible domain of the variable. As a preliminary result, we compared the ANN-F solution with a reference numerical solution of the Buckley–Leverett equation. The MLP architectures were selected based on numerical experiments, from which we concluded that a 1–50 × 3–1 network for NF and a 1–50 × 4–1 network for NG were suitable for approximating F and G, respectively, achieving an L2 error of 10-6. Training was performed using hyperbolic tangent activation functions in the hidden layers and the identity function in the output layer, with the mean squared error as the loss function. The ANN-F method yielded accurate results for the Buckley–Leverett equation, with a relative L2 error of 10-4. Future work will focus on extending the method to more intricate conservation laws, such as those arising in traffic flow modeling [1]. [...]

Downloads

Download data is not yet available.

References

P. Amorim, R. Colombo, and A. Teixeira. “On the numerical integration of scalar nonlocal conservation laws”. In: ESAIM: Mathematical Modelling and Numerical Analysis 49.1 (2015), pp. 19–37. doi: 10.1051/m2an/2014023.

A. G. Baydin, B. A. Pearlmutter, A. A. Radul, and J. M. Siskind. “Automatic Differentiation in Machine Learning: a Survey”. In: Journal of Machine Learning Research 18.153 (2018), pp. 1–43.

S. Haykin. Neural Networks and Learning Machines. 3a. ed. New York: Pearson, 2009. isbn: 9780131471399.

A. D. Jagtap, E. Kharazmi, and G. E. Karniadakis. “Conservative physics-informed neural networks on discrete domains for conservation laws: Applications to forward and inverse problems”. In: Computer Methods in Applied Mechanics and Engineering 365 (2020), p. 113028. doi: 10.1016/j.cma.2020.113028.

Randall J LeVeque. Numerical methods for conservation laws. Vol. 214. Springer, 1992.

Z. Mao, A. D. Jagtap, and E. G. Karniadakis. “Physics-informed neural networks for highspeed flows”. In: Computer Methods in Applied Mechanics and Engineering 360 (2020), p. 112789. doi: 10.1016/j.cma.2019.112789.

M. Raissi, P. Perdikaris, and G. E. Karniadakis. “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations”. In: Journal of Computational physics 378 (2019), pp. 686–707. doi: 10.1016/j.jcp.2018.10.045.

T. Ryck, S. Mishra, and R. Molinaro. wPINNs: Weak Physics informed neural networks for approximating entropy solutions of hyperbolic conservation laws. 2022. doi: 10.48550/arXiv.2207.08483. arXiv: 2207.08483 [math.NA].

Downloads

Published

2026-02-13