Skip to main content

Finite Element Analysis

Project description

Finite element analysis for continuum mechanics of solid bodies.

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 Open In Colab 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.

Image

✨ 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()

Solid Body

📖 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.

Expand the list...

📄 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] O. C. Zienkiewicz, R. L. Taylor and J. Z. Zhu, "The Finite Element Method: its Basis and Fundamentals". Elsevier, 2013. DOI:10.1016/c2009-0-24909-9.

🔓 License

FElupe - finite element analysis (C) 2021-2026 Andreas Dutzler, Graz (Austria).

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

felupe-10.1.0.tar.gz (262.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

felupe-10.1.0-py3-none-any.whl (379.2 kB view details)

Uploaded Python 3

File details

Details for the file felupe-10.1.0.tar.gz.

File metadata

  • Download URL: felupe-10.1.0.tar.gz
  • Upload date:
  • Size: 262.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for felupe-10.1.0.tar.gz
Algorithm Hash digest
SHA256 cf179e45a960ca9e79f18551a4745c37496733abed586df5d8c433bc97f4571c
MD5 de43ca0e6abb3aaa0f560bc5846b4321
BLAKE2b-256 a0ada0e78479dd5652b18832e8557a06fedf373a0a0c72bbb2e9614e63199418

See more details on using hashes here.

File details

Details for the file felupe-10.1.0-py3-none-any.whl.

File metadata

  • Download URL: felupe-10.1.0-py3-none-any.whl
  • Upload date:
  • Size: 379.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for felupe-10.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96fef93d29ccaf7a83f4a2b9f84cf33c89435e3a58a2ccdec00c4bd8bd649e38
MD5 3d47f2d22d00b49e0a3968bf802f31c9
BLAKE2b-256 f45930c0464719818c8f200fd7c2c48d3bca0c6013067474cf6c0270750261b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page