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

使用SfePy在Python中进行多尺度有限元计算

Multiscale finite element calculations in Python using SfePy

Robert Cimrman, Vladimír Lukeš, Eduard Rohan

摘要:

SfePy(Simple finite elements in Python)是一个软件,用于通过有限元法解决一维、二维或三维空间中由偏微分方程描述的各种问题。它的源代码大部分(85%)是Python,并依赖于NumPy包提供的快速矢量化操作。对于一个特定的问题,可以使用两个接口:一个是声明式应用程序编程接口(API),其中问题描述/定义文件(Python模块)用于定义计算,另一个是命令式API,可用于交互式命令或脚本和库。在概述了SfePy软件包的发展之后,本文介绍了它的实现、结构和一般特性。用一个简单的热传导问题的例子来描述定义偏微分方程的组件。具体来说,SfePy的声明性API在示例中呈现。为了说明SfePy的主要资产之一,用于实现复杂的多尺度模型的框架的基础上的均匀化理论,一个两尺度压电弹性模型的例子,显示问题的数学描述和相应的代码。

英文摘要:

SfePy (Simple finite elements in Python) is a software for solving various kinds of problems described by partial differential equations in one, two or three spatial dimensions by the finite element method. Its source code is mostly (85\%) Python and relies on fast vectorized operations provided by the NumPy package. For a particular problem two interfaces can be used: a declarative application programming interface (API), where problem description/definition files (Python modules) are used to define a calculation, and an imperative API, that can be used for interactive commands, or in scripts and libraries. After outlining the SfePy package development, the paper introduces its implementation, structure and general features. The components for defining a partial differential equation are described using an example of a simple heat conduction problem. Specifically, the declarative API of SfePy is presented in the example. To illustrate one of SfePy's main assets, the framework for implementing complex multiscale models based on the theory of homogenization, an example of a two-scale piezoelastic model is presented, showing both the mathematical description of the problem and the corresponding code.

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

↑