Accurate and efficient prediction of multi-scale flows remains a formidable challenge. Constructing theoretical models and numerical methods often involves the design and optimization of parameters. While gradient descent methods have been mainly manifested to shine in the wave of deep learning, composable automatic differentiation can advance scientific computing where the application of classical adjoint methods alone is infeasible or cumbersome. Differentiable programming provides a novel paradigm that unifies data structures and control flows and facilitates gradient-based optimization of parameters in a computer program. This paper addresses the notion and implementation of the first solution algorithm for multi-scale flow physics across continuum and rarefied regimes based on differentiable programming. The fully differentiable simulator provides a unified framework for the convergence of computational fluid dynamics and machine learning, i.e., scientific machine learning. Specifically, parameterized mechanical-neural flow models and numerical methods can be constructed for forward physical processes, while the parameters can be trained on the fly with the help of the gradients that are taken through the backward passes of the whole simulation program, a.k.a., end-to-end optimization. As a result, versatile data-driven modeling and simulation can be achieved for physics discovery, surrogate modeling, and simulation acceleration. The fundamentals and implementation of the solution algorithm are demonstrated in detail. Numerical experiments, including forward and inverse problems for hydrodynamic and kinetic equations, are presented to demonstrate the performance of the numerical method. The open-source codes to reproduce the numerical results are available under the MIT license.
Differentiable Programming for Plasma Physics: From Diagnostics to Discovery and Design
Ergodic LLC(Ergodic有限责任公司);Pasteur Labs(巴斯德实验室);Laboratory for Laser Energetics, University of Rochester(罗切斯特大学激光能量学实验室);Department of Nuclear Eng. and Rad. Sciences, University of Michigan(密歇根大学核工程与辐射科学系);Gerard Mourou Center for Ultrafast Optical Sciences, University of Michigan(密歇根大学杰拉德·穆鲁超快光学科学中心)
New directions for surrogate models and differentiable programming for High Energy Physics detector simulation
Paul Scherrer Institute(保罗·谢勒研究所);Argonne National Laboratory(阿贡国家实验室);SLAC National Accelerator Laboratory(SLAC国家加速器实验室);Universität Hamburg(汉堡大学);Rutgers University(罗格斯大学);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Fermi National Accelerator Laboratory(费米国家加速器实验室);Massachusetts Institute of Technology(麻省理工学院)
Differentiable Programming for Differential Equations: A Review
University of California, Berkeley(加州大学伯克利分校);Univ. Grenoble Alpes(格勒诺布尔阿尔卑斯大学);CNRS(法国国家科学研究中心);IRD(法国国家科研研究所);G-INP(国立矿业-电信联盟);Institut des Géosciences de l’Environnement(环境地球科学研究院);TU Delft(代尔夫特理工大学);Massachusetts Institute of Technology(麻省理工学院);TU Berlin(柏林工业大学);Helmholtz Centre for Environmental Research(亥姆霍兹环境研究中心);Swiss Federal Research Institute WSL(瑞士联邦材料科技研究所);Oden Institute for Computational Engineering and Sciences, University of Texas at Austin(德克萨斯大学奥斯汀分校奥登计算工程与科学学院);Jackson School of Geosciences, University of Texas at Austin(德克萨斯大学奥斯汀分校杰克逊地球科学学院);University of Pennsylvania(宾夕法尼亚大学);JuliaHub
Learned multiphysics inversion with differentiable programming and machine learning
Georgia Institute of Technology(佐治亚理工学院);Rice University(莱斯大学);University Medical Center Utrecht(乌得勒支大学医学中心);Microsoft(微软);SINTEF Digital(挪威科技工业研究院数字研究所);Imperial College London(帝国理工学院)