arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.01158cs.MS
收藏

使用FEM在2D和3D中快速计算非线性能量的MATLAB:节点单元

Fast MATLAB evaluation of nonlinear energies using FEM in 2D and 3D: nodal elements

Alexej Moskovka, Jan Valdman

摘要:

变分法中出现的非线性能量泛函可以用有限元法离散,并表示为局部单元能量贡献的总和。一个快速评估的能量泛函包含一阶梯度项是一个核心部分,这方面的贡献。我们描述了一个矢量化的实现,使用最简单的线性节点(P1)元素,其中所有的能量贡献进行评估,一次没有循环三角形或四面体元素。此外,结合一阶优化方法,能量泛函的离散梯度以在所有自由度上一次全部评估梯度分量的方式被组装。关键成分是节点补丁的精确或近似的能量梯度的矢量化。它导致了更高的内存成本的时间效率的实现。MATLAB中提供的与2D/3D超弹性和2D p-Laplacian问题相关的代码可供下载,并且可以轻松扩展到其他类型的矢量或标量形式的能量。

英文摘要:

Nonlinear energy functionals appearing in the calculus of variations can be discretized by the finite element (FE) method and formulated as a sum of energy contributions from local elements. A fast evaluation of energy functionals containing the first order gradient terms is a central part of this contribution. We describe a vectorized implementation using the simplest linear nodal (P1) elements in which all energy contributions are evaluated all at once without the loop over triangular or tetrahedral elements. Furthermore, in connection to the first-order optimization methods, the discrete gradient of energy functional is assembled in a way that the gradient components are evaluated over all degrees of freedom all at once. The key ingredient is the vectorization of exact or approximate energy gradients over nodal patches. It leads to a time-efficient implementation at higher memory-cost. Provided codes in MATLAB related to 2D/3D hyperelasticity and 2D p-Laplacian problem are available for download and structured in a way it can be easily extended to other types of vector or scalar forms of energies.

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

↑