Multiscale finite element calculations in Python using SfePy

10/01/2018
by   Robert Cimrman, et al.
0

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.

READ FULL TEXT

page 9

page 18

research
10/21/2022

Pyrit: A Finite Element Based Field Simulation Software Written in Python

Pyrit is a field simulation software based on the finite element method ...
research
05/31/2022

Symmetrized two-scale finite element discretizations for partial differential equations with symmetric solutions

In this paper, a symmetrized two-scale finite element method is proposed...
research
07/13/2018

The Dune Python Module

In this paper we present the new Dune-Python module which provides Pytho...
research
03/17/2021

PythonFOAM: In-situ data analyses with OpenFOAM and Python

In this article, we outline the development of a general-purpose Python-...
research
11/25/2022

Scalable multiscale-spectral GFEM for composite aero-structures

Ill-conditioned and multiscale partial differential equations (PDEs) ari...
research
04/16/2019

Unification and combination of iterative insertion strategies with one-step traversals

Motivated by an ongoing project on the computer aided derivation of mult...
research
06/26/2019

Investigating the OPS intermediate representation to target GPUs in the Devito DSL

The Devito DSL is a code generation tool for the solution of partial dif...

Please sign up or login with your details

Forgot password? Click here to reset