arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.13478physics.comp-phphysics.flu-dyn
收藏

利用可微编程解决连续流和稀薄流

Solving continuum and rarefied flows using differentiable programming

Institute of Mechanics, Chinese Academy of Sciences(中国科学院力学研究所);University of Chinese Academy of Sciences(中国科学院大学)

Tianbai Xiao

AI总结:

本文提出基于可微编程的多尺度流解决方案,通过端到端优化实现计算流体力学与机器学习的统一。

摘要:

准确且高效地预测多尺度流仍是一个严峻挑战。构建理论模型和数值方法往往涉及设计和优化参数。尽管梯度下降方法主要在深度学习的浪潮中显现其优势,但可组合的自动微分可以推动科学计算,其中仅使用经典伴随方法是不可行或繁琐的。可微编程提供了一种新的范式,它统一了数据结构和控制流,并促进了计算机程序中参数的梯度优化。本文针对基于可微编程的多尺度流物理在连续和稀薄区域中的第一个解决方案算法的概念和实现进行了探讨。完全可微的模拟器提供了一个统一的框架,使计算流体力学和机器学习能够收敛,即科学机器学习。具体而言,参数化的机械-神经流模型和数值方法可以用于正向物理过程,同时参数可以在整个模拟程序的反向传递中利用梯度进行实时训练,即端到端优化。结果,可以实现多方面的数据驱动建模和模拟,用于物理发现、替代建模和模拟加速。解决方案算法的基本原理和实现细节得到了详细展示。包括流体动力学和动能方程的正向和反向问题的数值实验被展示,以证明数值方法的性能。用于重现数值结果的开源代码可在MIT许可下获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑