arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.01414cs.MScs.GRcs.PL
收藏

有限元方法的可扩展程序化规范

Extensible Programmatic Specification of Finite Element Methods

Massachusetts Institute of Technology(麻省理工学院);University of Southern California(南加州大学);Technion---Israel Institute of Technology(以色列理工学院);University of Washington(华盛顿大学)

Theadora Fields Collin, Oded Stein, Gilbert Bernstein, Saman Amarasinghe

AI总结:

针对有限元方法选择难、实现复杂的问题,提出ElementForge系统,可基于DSL的可读数学规范自动推导有限元实现,能以少量代码实现多种元并用于同一模拟,可探索多维度权衡。

摘要:

有限元方法(FEMs)是求解工程问题的强大且普遍应用的工具。尝试不同的有限元可提升解的质量与效率;在某些情况下,即便选择了最常见但错误的有限元,无论网格分辨率如何,解都会收敛到错误结果。然而,由于重新推导和重新实现有限元方法的复杂性,实际中不会探索有限元的选择。尝试新的有限元颇具挑战性,因为从业者必须手动推导使用这些元的公式,并在可能复杂的系统中实现它们。我们通过引入ElementForge解决该问题,这是一个以领域特定语言(DSL)编写的有限元的可读数学规范为参数的有限元系统。ElementForge编译器从第一性原理出发,对张量空间、张量和张量基进行推理,以推导有限元的实现,能够自动推导此前仅能手动推导的有限元实现。此外,ElementForge将几个关键数学概念(主要是张量场、网格拓扑、稀疏张量和组装的有限元算子)最小程度耦合,以生成一个以元选择为参数的完整有限元系统,因此编译器推导的元可参数化应用于新网格、偏微分方程(PDEs)和边界条件。我们通过用不同有限元实现多个模拟来评估该系统,证明其可探索通用性、准确性、速度和表示复杂性之间的权衡;例如,我们能用不到50行代码实现Morley、Bell、Argyris和Hermite类元,并在单个模拟中全部使用它们。

英文摘要:

Finite element methods (FEMs) are a powerful and ubiquitous tool for solving engineering problems. Experimenting with different finite elements can improve the quality and efficiency of solutions. In some cases, the wrong (but nonetheless most common) choice of finite element will produce solutions which converge to the wrong answer regardless of mesh resolution. However, in practice, the choice of finite element is not explored due to the complexity of re-deriving and re-implementing finite element methods. Trying a new finite element is challenging because practitioners must manually deduce formulas to use these elements and implement them within a potentially complex system. We address this problem by introducing ElementForge, a finite element system that is parametric over the literate mathematical specification of a finite element in a domain-specific language (DSL). The ElementForge compiler reasons about tensor spaces, tensors, and tensor bases from first principles to derive implementations of finite elements. The ElementForge compiler is able to automatically derive implementations of finite elements previously only derived by hand. Further, ElementForge minimally couples several key mathematical concepts, mainly tensor fields, mesh topologies, sparse tensors, and assembled finite element operators, to produce a complete finite element system that is parametric over the choice of element. Consequently, the elements derived by the compiler can be applied parametrically to new meshes, PDEs, and boundary conditions. We evaluate our system by implementing several simulations with different finite elements, demonstrating that our system can explore tradeoffs in generality, accuracy, speed, and representational complexity. For example, we are able to implement the Morley, Bell, Argyris, and Hermite like elements with less than 50 lines of code and use them all in a single simulation.

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

↑