Unified Form Language: A Domain-Specific Language for Weak Formulations of Partial Differential Equations

被引:341
作者
Alnaes, Martin S. [1 ]
Logg, Anders [1 ,2 ]
Olgaard, Kristian B. [3 ]
Rognes, Marie E. [1 ]
Wells, Garth N. [4 ]
机构
[1] Simula Res Lab, Ctr Biomed Comp, N-1325 Lysaker, Norway
[2] Univ Oslo, N-0316 Oslo, Norway
[3] Aalborg Univ, Dept Civil Engn, DK-6700 Esbjerg, Denmark
[4] Univ Cambridge, Dept Engn, Cambridge CB2 1PZ, England
来源
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE | 2014年 / 40卷 / 02期
关键词
Algorithms; Design; Languages; AD; algorithmic differentiation; automatic functional differentiation; discretization; domain specific language; DSEL; DSL; einstein notation; embedded language; FEM; finite element method; functional; implicit summation; index notation; mixed element; partial differential equation; PDE; symbolic differentiation; tensor algebra; weak form; weak formulation; FINITE-ELEMENT-METHOD; CODE GENERATION; COMPUTATIONS; FRAMEWORK;
D O I
10.1145/2566630
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 multifield 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.
引用
收藏
页数:37
相关论文
共 51 条
  • [11] Arnold DN, 2006, ACT NUMERIC, V15, P1, DOI 10.1017/S0962492906210018
  • [12] Bagheri B., 2004, TR200409 U CHIC DEP
  • [13] Synthesis of high-performance parallel programs for a class of Ab Initio quantum chemistry models
    Baumgartner, G
    Auer, AA
    Bernholdt, DE
    Bibireata, A
    Choppella, V
    Cociorva, D
    Gao, XY
    Harrison, RJ
    Hirata, S
    Krishnamoorthy, S
    Krishnan, S
    Lam, CC
    Lu, QD
    Nooijen, M
    Pitzer, RM
    Ramanujam, J
    Sadayappan, P
    Sibiryakov, A
    [J]. PROCEEDINGS OF THE IEEE, 2005, 93 (02) : 276 - 292
  • [14] Brandenburg C., 2012, CONSTRAINED OPTIMIZA, P257
  • [15] 2 FAMILIES OF MIXED FINITE-ELEMENTS FOR 2ND ORDER ELLIPTIC PROBLEMS
    BREZZI, F
    DOUGLAS, J
    MARINI, LD
    [J]. NUMERISCHE MATHEMATIK, 1985, 47 (02) : 217 - 235
  • [16] A deterministic approach to the adapted optode placement for illumination of highly scattering tissue
    Brunner, Patricia
    Clason, Christian
    Freiberger, Manuel
    Scharfetter, Hermann
    [J]. BIOMEDICAL OPTICS EXPRESS, 2012, 3 (07): : 1732 - 1743
  • [17] Farrell P. E., 2012, AUTOMATED DERIVATION
  • [18] Farrell PE., 2013, ABS13023894 CORR
  • [19] Gamma E., 1993, ECOOP '93 - Object-Oriented Programming. 7th European Conference Proceedings, P406
  • [20] Griewank A., 1989, MATH PROGRAMMING REC, V6, P83