pyfe3d

Finite elements for 3D problems in Python/Cython

https://github.com/saullocastro/pyfe3d

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary

Keywords

analysis beam composites design elements finite optimization plate structural thin-walled
Last synced: 6 months ago · JSON representation ·

Repository

Finite elements for 3D problems in Python/Cython

Basic Info
  • Host: GitHub
  • Owner: saullocastro
  • License: bsd-3-clause
  • Language: Cython
  • Default Branch: main
  • Homepage:
  • Size: 6.93 MB
Statistics
  • Stars: 22
  • Watchers: 4
  • Forks: 3
  • Open Issues: 8
  • Releases: 23
Topics
analysis beam composites design elements finite optimization plate structural thin-walled
Created over 4 years ago · Last pushed 7 months ago
Metadata Files
Readme License Citation Authors

README.md

General-purpose finite element solver - pyfe3d

Github Actions status:

Actions Status

Coverage status:

Codecov Status

About pyfe3d

The pyfe3d module is a general-purpose finite element solver for structural analysis and optimization based on Python and Cython. The main principles guiding the development of pyfe3d are: simplicity, efficiency and compatibility. The aimed level of compatibility allows one to run this solver in any platform, including the Google Colab environment.

Citing this library

Saullo G. P. Castro. (2025). General-purpose finite element solver based on Python and Cython (Version 0.6.2). Zenodo. DOI: https://doi.org/10.5281/zenodo.6573489.

Documentation

The documentation is available on: https://saullocastro.github.io/pyfe3d.

Important features of this library

  • efficient and simple for linear and nonlinear analyses
  • importable and cimportable code
  • 6 degrees-of-freedom per node

Available finite elements

  • 'Quad4' - 4-node plate with linear interpolation, equivalent to Nastran's CQUAD4. The recommended quadrilateral plate element.

  • 'Quad4R' - 4-node plate with linear interpolation, equivalent to Abaqus' S4R. It has a not very robust hourglass control.

  • 'Tria3R' - 3-node plate with linear interpolation, equivalent to Abaqus' S3R or Nastran's CTRIA3.

  • 'BeamC' - 2-node Timoshenko beam element with consistent shape functions and analytical integration. The recommended beam element.

  • 'BeamLR' - 2-node Timoshenko beam element with linear interpolation and reduced integration.

  • 'Spring' - 2-node spring element with 6 stiffenesses defined in the element coordinate system.

  • 'Truss' - 2-node truss element with only axial and torsion stiffness. I recommend using the BeamLR instead, which is physically more consistent.

Installing pyfe3d

First, you should try to install from the distributed binaries by simply doing:

python -m pip install pyfe3d

If a distribution could not be found, you can try to install from the source code using:

python -m pip install .

Another alternative is the following:

python -m pip install -r requirements.txt python setup.py install

If none of the above alternatives worked for you, this link shares some information on how to set up a C compiler on different operating systems:

https://cython2.readthedocs.io/en/latest/src/quickstart/install.html

License

Distrubuted under the 3-Clause BSD license (https://raw.github.com/saullocastro/pyfe3d/main/LICENSE):

Copyright (c) 2021-2025, Saullo G. P. Castro (S.G.P.Castro@tudelft.nl)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Contacts: - Saullo G. P. Castro, S.G.P.Castro@tudelft.nl

Owner

  • Name: Saullo G P Castro
  • Login: saullocastro
  • Kind: user
  • Location: Delft, Netherlands
  • Company: Delft University of Technology

Associate Professor at TU Delft Aerospace Structures and Computational Mechanics

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  General-purpose finite element solver based on Python and
  Cython
type: software
abstract: >-
  The `pyfe3d` module is a general-purpose finite element
  solver for structural analysis and optimization based on
  Python and Cython. The main principles guiding the
  development of `pyfe3d` are: simplicity, efficiency and
  compatibility. The aimed level of compatibility allows one
  to run this solver in any platform, including the Google
  Colab environment.
message: >-
  Please, cite this software using:
  Saullo G. P. Castro. (2025). General-purpose finite element solver based on Python and Cython (Version 0.6.2). Zenodo. DOI: https://doi.org/10.5281/zenodo.6573489.
authors:
  - given-names: Saullo G. P.
    family-names: Castro
    email: S.G.P.Castro@tudelft.nl
    affiliation: Delft University of Technology
    orcid: 'https://orcid.org/0000-0001-9711-0991'
identifiers:
  - description: This DOI represents all versions, and will always resolve to the latest one
    type: doi
    value: 10.5281/zenodo.6573489
repository-code: 'https://github.com/saullocastro/pyfe3d'
url: 'https://saullocastro.github.io/pyfe3d/'
license: BSD-3-Clause
version: 0.6.2
date-released: '2025-07-23'

GitHub Events

Total
  • Release event: 1
  • Watch event: 4
  • Delete event: 7
  • Issue comment event: 3
  • Push event: 16
  • Pull request event: 12
  • Fork event: 2
  • Create event: 7
Last Year
  • Release event: 1
  • Watch event: 4
  • Delete event: 7
  • Issue comment event: 3
  • Push event: 16
  • Pull request event: 12
  • Fork event: 2
  • Create event: 7

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 224
  • Total Committers: 1
  • Avg Commits per committer: 224.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
saullocastro s****i@g****m 224

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 13
  • Total pull requests: 22
  • Average time to close issues: 7 months
  • Average time to close pull requests: about 9 hours
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.31
  • Average comments per pull request: 0.73
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 9
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.33
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • saullocastro (13)
Pull Request Authors
  • saullocastro (22)
Top Labels
Issue Labels
development (4) question (4) enhancement (4) help wanted (2) good first issue (2) bug (2) documentation (2) bug with tests (1)
Pull Request Labels
enhancement (10) development (8) codex (8) documentation (4)

Dependencies

requirements.txt pypi
  • alg3dpy *
  • cython *
  • numpy *
  • pytest *
  • pytest-cov *
  • scipy *
requirements_doc.txt pypi
  • alg3dpy *
  • cython *
  • numpy *
  • numpydoc *
  • scipy *
  • sphinx *
setup.py pypi
  • alg3dpy *
  • numpy *
  • scipy *
.github/workflows/auto_doc.yml actions
  • JamesIves/github-pages-deploy-action v4.3.3 composite
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/auto_release.yml actions
  • actions/checkout v3 composite
  • softprops/action-gh-release v1 composite
.github/workflows/coverage.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • codecov/codecov-action v2 composite
.github/workflows/pytest.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/pythonpublish.yml actions
  • RalfG/python-wheels-manylinux-build v0.4.2-manylinux2014_x86_64 composite
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
pyproject.toml pypi