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

被引:4
作者
Melland, Pake [1 ]
Albright, Jason [2 ]
Urban, Nathan M. [3 ,4 ]
机构
[1] Univ Iowa, Appl Math & Computat Sci, Iowa City, IA 52242 USA
[2] Los Alamos Natl Lab, Appl Phys, Los Alamos, NM 87544 USA
[3] Brookhaven Natl Lab, Appl Math, Upton, NY 11973 USA
[4] Los Alamos Natl Lab, Computat Phys & Methods, Los Alamos, NM 87544 USA
来源
MACHINE LEARNING-SCIENCE AND TECHNOLOGY | 2021年 / 2卷 / 02期
关键词
differentiable programming; Lagrangian hydrodynamics; hybrid modeling; shock waves; CONSERVATION; CLIMATE; MODEL;
D O I
10.1088/2632-2153/abd644
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页数:17
相关论文
共 50 条
  • [1] Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
  • [2] Locally adaptive artificial viscosity strategies for Lagrangian hydrodynamics
    Albright, Jason
    Shashkov, Mikhail
    [J]. COMPUTERS & FLUIDS, 2020, 205
  • [3] [Anonymous], 2003, QUAL ENG
  • [4] Asch M., 2016, Data Assimilation
  • [5] Learning data-driven discretizations for partial differential equations
    Bar-Sinai, Yohai
    Hoyer, Stephan
    Hickey, Jason
    Brenner, Michael P.
    [J]. PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 2019, 116 (31) : 15344 - 15349
  • [6] Baydin AG, 2018, J MACH LEARN RES, V18
  • [7] Julia: A Fresh Approach to Numerical Computing
    Bezanson, Jeff
    Edelman, Alan
    Karpinski, Stefan
    Shah, Viral B.
    [J]. SIAM REVIEW, 2017, 59 (01) : 65 - 98
  • [8] Prognostic Validation of a Neural Network Unified Physics Parameterization
    Brenowitz, N. D.
    Bretherton, C. S.
    [J]. GEOPHYSICAL RESEARCH LETTERS, 2018, 45 (12) : 6289 - 6298
  • [9] The construction of compatible hydrodynamics algorithms utilizing conservation of total energy
    Caramana, EJ
    Burton, DE
    Shashkov, MJ
    Whalen, PP
    [J]. JOURNAL OF COMPUTATIONAL PHYSICS, 1998, 146 (01) : 227 - 262
  • [10] Formulations of artificial viscosity for multi-dimensional shock wave computations
    Caramana, EJ
    Shashkov, MJ
    Whalen, PP
    [J]. JOURNAL OF COMPUTATIONAL PHYSICS, 1998, 144 (01) : 70 - 97