Multiscale finite element calculations in Python using SfePy

Robert Cimrman, Vladimír Lukeš, Eduard Rohan
10/1/2018
cs.MS

Official code: sfepy/sfepy (849 stars, Python, BSD-3-Clause, last commit 2026-11-16).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

sfepy/sfepyOfficial100%
BSD-3-Clause

Main SfePy repository

849199Python, CJul 28, 20102 weeks agoBSD-3-Clause

Similar Papers

Cite this paper

@article{cimrman2018multiscale,
  title  = {Multiscale finite element calculations in Python using SfePy},
  author = {Robert Cimrman and Vladimír Lukeš and Eduard Rohan},
  year   = {2018},
  eprint = {1810.00674},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.00674}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1810.00674.svg)](https://codeofpaper.com/paper/1810.00674)

Discussion