Differentiable programming for online training of a neural artificial viscosity function within a staggered grid Lagrangian hydrodynamics scheme

Melland, Pake and Albright, Jason and Urban, Nathan M (2021) Differentiable programming for online training of a neural artificial viscosity function within a staggered grid Lagrangian hydrodynamics scheme. Machine Learning: Science and Technology, 2 (2). 025015. ISSN 2632-2153

[thumbnail of Melland_2021_Mach._Learn.__Sci._Technol._2_025015.pdf] Text
Melland_2021_Mach._Learn.__Sci._Technol._2_025015.pdf - Published Version

Download (1MB)

Abstract

Lagrangian methods to solve the inviscid Euler equations produce numerical oscillations near shock waves. A common approach to reducing these oscillations is to add artificial viscosity (AV) to the discrete equations. The AV term acts as a dissipative mechanism that attenuates oscillations by smearing the shock across a finite number of computational cells. However, AV introduces several control parameters that are not determined by the underlying physical model, and hence, in practice are tuned to the characteristics of a given problem. We seek to improve the standard quadratic-linear AV form by replacing it with a learned neural function that reduces oscillations relative to exact solutions of the Euler equations, resulting in a hybrid numerical-neural hydrodynamic solver. Because AV is an artificial construct that exists solely to improve the numerical properties of a hydrodynamic code, there is no offline 'viscosity data' against which a neural network can be trained before inserting into a numerical simulation, thus requiring online training. We achieve this via differentiable programming, i.e. end-to-end backpropagation or adjoint solution through both the neural and differential equation code, using automatic differentiation of the hybrid code in the Julia programming language to calculate the necessary loss function gradients. A novel offline pre-training step accelerates training by initializing the neural network to the default numerical AV scheme, which can be learned rapidly by space-filling sampling over the AV input space. We find that online training over early time steps of simulation is sufficient to learn a neural AV function that reduces numerical oscillations in long-term hydrodynamic shock simulations. These results offer an early proof-of-principle that online differentiable training of hybrid numerical schemes with novel neural network components can improve certain performance aspects existing in purely numerical schemes.

Item Type: Article
Subjects: STM Repository > Multidisciplinary
Depositing User: Managing Editor
Date Deposited: 03 Jul 2023 04:27
Last Modified: 25 Oct 2023 05:03
URI: http://classical.goforpromo.com/id/eprint/3642

Actions (login required)

View Item
View Item