SkillAgentSearch skills...

Felupe

finite element analysis for continuum mechanics of solid bodies

Install / Use

/learn @adtzlr/Felupe

README

<p align="center"> <a href="https://felupe.readthedocs.io/en/latest/?badge=latest"><img src="https://github.com/user-attachments/assets/cd86b3fb-db8e-40ed-b8c5-f879f032a57c" height="80"></a> <p align="center"><i>Finite element analysis for continuum mechanics of solid bodies.</i></p> </p>

FElupe PyPI version shields.io Conda Version PyPI - Python Version Documentation Status License: GPL v3 Project Status: Active – The project has reached a stable, usable state and is being actively developed. codecov DOI status pyOpenSci Peer-Reviewed Codestyle black PyPI - Downloads lite-badge <a target="_blank" href="https://colab.research.google.com/github/adtzlr/felupe-web/blob/main/notebooks/colab/01_Getting-Started.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> Streamlit App

FElupe is a Python 3.10+ finite element analysis package focusing on the formulation and numerical solution of nonlinear problems in continuum mechanics of solid bodies. This package is intended for scientific research, but is also suitable for running nonlinear simulations in general. In addition to the transformation of general weak forms into sparse vectors and matrices, FElupe provides an efficient high-level abstraction layer for the simulation of the deformation of solid bodies.

<p align="center"> <a href="https://felupe.readthedocs.io/en/stable/examples/"><img width="600" height="245" alt="Image" src="https://github.com/user-attachments/assets/85b38926-8cd6-45e4-8d6c-f0c8de991c2b" /></a> </p>

✨ Highlights

Efficient NumPy-based math is realized by element-wise operating trailing axes [1]. The finite element method, as used in FElupe, is based on [2], [3] and [4]. Related scientific articles are listed in the sections of the API reference.

[!NOTE] The name FElupe is a combination of FE (finite element) and the german word Lupe (magnifying glass) as a synonym for getting an insight how a finite element analysis code looks like under the hood.

📦 Installation

Install Python, open a terminal and run

pip install felupe[all]

The documentation covers more details, like required and optional dependencies and how to install the latest development version.

🚀 Getting Started

This minimal code-block demonstrates a nonlinear simulation of a hyperelastic cube under compression.

import felupe as fem

mesh = fem.Cube(n=8)
region = fem.RegionHexahedron(mesh)
field = fem.FieldContainer(fields=[fem.Field(region, dim=3)])

boundaries = fem.dof.uniaxial(field, clamped=True, move=-0.3, return_loadcase=False)
solid = fem.SolidBody(umat=fem.NeoHooke(mu=1, bulk=5), field=field)

step = fem.Step(items=[solid], boundaries=boundaries)
job = fem.Job(steps=[step]).evaluate()

solid.plot("Principal Values of Cauchy Stress").show()
<p align="center"> <img src="https://github.com/user-attachments/assets/9f6e1267-b624-44ae-a79c-0b337369591a" alt="Solid Body" height="200px"> </p>

📖 Documentation

The documentation is located here.

🧩 Extension Packages

The capabilities of FElupe may be enhanced with extension packages created by the community.

| Package | Description | |:-------------------------------------------------------:|:----------------------------------------------------------:| | contique | Numerical continuation of nonlinear equilibrium equations. | | hyperelastic | Constitutive hyperelastic material formulations | | matadi | Material Definition with Automatic Differentiation (AD) | | statescale | Snapshot-Driven State Upscaling | | tensortrax | Differentiable Tensors based on NumPy Arrays | | feplot | A visualization tool for FElupe |

🛠️ Testing

To run the FElupe unit tests, check out this repository and type

tox

📝 Scientific Publications

A list of articles in which FElupe is involved. If you use FElupe in your scientific work, please star this repository, cite it status and optionally add your publication to this list.

<details><summary>Expand the list...</summary>
  • A. Dutzler, C. Buzzi, and M. Leitner, "Nondimensional translational characteristics of elastomer components", Journal of Applied Engineering Design and Simulation, vol. 1, no. 1. UiTM Press, Universiti Teknologi MARA, Sep. 21, 2021. doi: 10.24191/jaeds.v1i1.20. medium-story

  • C. Buzzi, A. Dutzler, T. Faethe, J. Lassacher, M. Leitner, and F.-J. Weber, "Development of a tool for estimating the characteristic curves of rubber-metal parts", in Proceedings of the 12th International Conference on Railway Bogies and Running Gears, 2022 (ISBN 978-963-9058-46-0).

  • J. Torggler, A. Dutzler, B. Oberdorfer, T. Faethe, H. Müller, C. Buzzi, and M. Leitner, "Investigating Damage Mechanisms in Cord-Rubber Composite Air Spring Bellows of Rail Vehicles and Representative Specimen Design", Applied Composite Materials. Springer Science and Business Media LLC, Aug. 22, 2023. doi: 10.1007/s10443-023-10157-1. Simulation-related Python scripts are available on GitHub at adtzlr/fiberreinforcedrubber. <a target="_blank" href="https://colab.research.google.com/github/adtzlr/fiberreinforcedrubber/blob/main/docs/notebooks/ex01_specimen_amplitudes.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

</details>

📄 Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

📚 References

[1] T. Gustafsson and G. McBain, "scikit-fem: A Python package for finite element assembly", Journal of Open Source Software, vol. 5, no. 52. The Open Journal, p. 2369, Aug. 21, 2020. DOI:10.21105/joss.02369.

[2] J. Bonet and R. D. Wood, "Nonlinear Continuum Mechanics for Finite Element Analysis". Cambridge University Press, Mar. 13, 2008. DOI:10.1017/cbo9780511755446.

[3] K. J. Bathe, "Finite Element Procedures". 2006, isbn: 978-0-9790049-0-2.

[[4]](https://doi.org/1

View on GitHub
GitHub Stars167
CategoryDevelopment
Updated2d ago
Forks17

Languages

Python

Security Score

100/100

Audited on Apr 3, 2026

No findings