一种从微分方程生成数值求解器的多物理场编译器
A multi-physics compiler for generating numerical solvers from differential equations
AI总结:
本文提出一种多物理场编译器,可从微分方程高层描述自动生成构造即正确的数值求解器,并通过编译到OpenFOAM验证其在方程修改方法中的可行性。
摘要:
我们开发了一种工具,使领域专家能够从基于常微分方程/偏微分方程及其在符号时空域上的初始条件和边界条件的高层描述出发,快速生成面向新兴多物理场现象的数值求解器。这种“多物理场”编译器旨在弥合问题表述与计算之间的鸿沟,这一鸿沟在历史上往往跨越数年甚至数十年。计算流体动力学(CFD)等领域的专用数值求解器常常对不熟悉其底层方案细节的初学者最终用户构成障碍,并且在耦合求解器最初未考虑的额外物理分量时需要进行精细的外科手术式修改。通过使用一种在经典微积分与外微积分之间保持中立的中间语言,该编译器生成构造即正确的数值源代码,从而在离散层面提供诸如守恒定律等不可变物理原理的保证。我们通过一些涉及编译到 OpenFOAM [1] 的示例展示了该多物理场编译器的概念验证。该编译器特别适合的一个具体用例涉及方程修改方法,其目标是通过向多物理场问题的原始控制方程添加人工项来使用诸如中心差分之类的简单数值格式 [2, 3, 4]。
英文摘要:
We develop a tool that enables domain experts to quickly generate numerical solvers for emerging multi-physics phenomena starting from a high-level description based on ordinary/partial differential equations and their initial and boundary conditions over a symbolic spacetime domain. This "multi-physics" compiler aims to bridge the gap between problem formulation and computation, which historically has spanned years or even decades. Specialized numerical solvers in areas such as computational fluid dynamics (CFD) often present a barrier to novice end users not well-versed in the intricacies of their underlying schemes, and requiring surgical modifications when coupling with additional physical components initially not accounted for by the solver. Through the use of an intermediate language that is neutral between classical and exterior calculus, the compiler generates correct-by-construction numerical source code that offers guarantees of immutable physical principles like conservation laws at the discrete level. We present a proof of concept for the multi-physics compiler through some examples involving compilation to OpenFOAM [1]. A specific use case that the compiler is well-suited for involves equation modification approaches, where the aim is to use simple numerical schemes such as central differencing through the additional of artificial terms to the original governing equations of the multi-physics problem [2, 3, 4].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。