arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1211.4047cs.MScs.NAcs.SCmath.NA
收藏

统一形式语言:一种用于偏微分方程弱形式的领域特定语言

Unified Form Language: A domain-specific language for weak formulations of partial differential equations

Simula Research Laboratory(Simula 研究实验室);University of Oslo(奥斯陆大学);Aalborg University(奥尔堡大学);University of Cambridge(剑桥大学)

Martin S. Alnaes, Anders Logg, Kristian B. Oelgaard, Marie E. Rognes, Garth N. Wells

AI总结:

提出统一形式语言(UFL),一种用于表示偏微分方程弱形式的领域特定语言,支持变分形式、自动微分、任意函数空间层次和灵活的张量代数,以接近数学符号的方式简洁表达有限元方法。

摘要:

我们提出了统一形式语言(UFL),这是一种用于表示偏微分方程弱形式以进行数值逼近的领域特定语言。UFL的特性包括支持变分形式和泛函、形式和表达式的自动微分、多场问题的任意函数空间层次、一般微分算子和灵活的张量代数。凭借这些特性,UFL已被用于以接近数学符号的方式轻松表达复杂偏微分方程系统的有限元方法,从而产生紧凑、直观且可读的程序。本文介绍了该语言及其构建。UFL的实现作为开源软件库免费提供。该库生成变分问题的抽象语法树表示,其他软件库使用这些表示来生成具体的低级实现。文中给出了一些应用示例,并强调了支持UFL的库。

英文摘要:

We present the Unified Form Language (UFL), which is a domain-specific language for representing weak formulations of partial differential equations with a view to numerical approximation. Features of UFL include support for variational forms and functionals, automatic differentiation of forms and expressions, arbitrary function space hierarchies for multi-field problems, general differential operators and flexible tensor algebra. With these features, UFL has been used to effortlessly express finite element methods for complex systems of partial differential equations in near-mathematical notation, resulting in compact, intuitive and readable programs. We present in this work the language and its construction. An implementation of UFL is freely available as an open-source software library. The library generates abstract syntax tree representations of variational problems, which are used by other software libraries to generate concrete low-level implementations. Some application examples are presented and libraries that support UFL are highlighted.

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

↑