In finite element calculations, the integral forms are usually evaluated using nested loops over elements, and over quadrature points. Many such forms (e.g. linear or multi-linear) can be expressed in a compact way, without the explicit loops, using a single tensor contraction expression by employing the Einstein summation convention. To automate this process and leverage existing high performance codes, we first introduce a notation allowing trivial differentiation of multi-linear finite element forms. Based on that we propose and describe a new transpiler from Einstein summation based expressions, augmented to allow defining multi-linear finite element weak forms, to regular tensor contraction expressions. The resulting expressions are compatible with a number of Python scientific computing packages, that implement, optimize and in some cases parallelize the general tensor contractions. We assess the performance of those packages, as well as the influence of operand memory layouts and tensor contraction paths optimizations on the elapsed time and memory requirements of the finite element form evaluations. We also compare the efficiency of the transpiled weak form implementations to the C-based functions available in the finite element package SfePy.
COFFEE -- An MPI-parallelized Python package for the numerical evolution of differential equations
COFFEE(Conformal Field Equation Evolver)是一个Python软件包,主要开发用于使用线方法随时间数值地演化偏微分方程系统。它包括各种时间积分器和有限差分stenosis与求和的部分财产,以及伪谱功能的角度导数的自旋加权函数。一些额外的功能包括在各种不同的几何图形上进行MPI并行化,HDF数据输出和后处理脚本以可视化数据,以及允许用户在每个时间步后创建代码进行分析的操作类。
Lamarr Institute, TU Dortmund University(拉马尔研究所,多特蒙德工业大学);Lamarr Institute, University of Bonn(拉马尔研究所,波恩大学);Lamarr Institute, Fraunhofer IAIS(拉马尔研究所,弗劳恩霍夫应用研究促进协会IAIS)