<div align="center">
<img src="https://github.com/JWock82/PyNite/raw/main/Resources/Full Logo No Buffer.png" width=40% align="center"/>
<br>
<h1>Simple Finite Element Analysis in Python</h1>
</div>
![Build Status](https://github.com/JWock82/PyNite/actions/workflows/build-and-test.yml/badge.svg)
[![codecov](https://codecov.io/gh/JWock82/Pynite/branch/main/graph/badge.svg?token=ZH18US3A7P)](https://codecov.io/gh/JWock82/Pynite)
![PyPI - Downloads](https://img.shields.io/pypi/dm/PyNiteFEA)
<img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/JWock82/PyNite">
![GitHub last commit](https://img.shields.io/github/last-commit/JWock82/PyNite)
![GitHub](https://img.shields.io/github/license/JWock82/PyNite)
[![Documentation Status](https://readthedocs.org/projects/pynite/badge/?version=latest)](https://pynite.readthedocs.io/en/latest/?badge=latest)
An easy to use elastic 3D structural engineering finite element analysis library for Python.
# Installation
The easiest way to install Pynite is with pip: `pip install PyniteFEA`
For a more detailed discussion on installation options and dependencies see https://pynite.readthedocs.io/en/latest/installation.html
# Current Capabilities
* 3D static analysis of elastic structures.
* P-Δ analysis of frame type structures.
* Member point loads, linearly varying distributed loads, and nodal loads are supported.
* Classify loads by load case and create load combinations from load cases.
* Produces shear, moment, and deflection results and diagrams for each member.
* Automatic handling of internal nodes on frame members (physical members).
* Tension-only and compression-only elements.
* Spring elements: two-way, tension-only, and compression-only.
* Spring supports: two-way and one-way.
* Quadrilateral plate elements (DKMQ formulation).
* Rectangular plate elements (12-term polynomial formulation).
* Basic meshing algorithms for some common shapes and for openings in rectangular walls.
* Reports support reactions.
* Rendering of model geometry, supports, load cases, load combinations, and deformed shapes.
* Generates PDF reports for models and model results.
# Project Objectives
As I've gotten into the structural engineering profession, I've found there's a need for an easy to use open-source finite element package. I hope to help fill that need by prioritizing the following:
1. Accuracy: There are no guarantees PyNite is error free, but accuracy and correctness are a priority. When bugs or errors are identified, top priority will be given to eliminate them. PyNite's code is frequently reviewed, and its output is tested against a suite of textbook problems with known solutions using continuous integration (CI) anytime a change to the code base is made. If you do happen to find an error, please report it as an issue.
2. Simplicity: There are other finite element alternatives out there with many more capabilities, but they are often lacking in documentation, written in difficult languages, or require extensive knowledge of finite element theory and/or element formulations to use. PyNite is not intended to be the most technically advanced solver out there. Rather, the goal is to provide a robust yet simple general purpose package.
4. Improvement: PyNite is getting better at what it does. Each new feature provides leverage to build upon previous features in more elaborate ways. Key to improvement is (a) maintaining the core features that other features rely on, and (b) adding new features that are solid stepping stones to other features. Improvement most often happens by getting the small and simple things right incrementally, rather than with sweeping overhauls all at once.
5. Collaboration: If you see a way to improve Pynite, you are encouraged to contribute. There are many simple ways to contribute that don't take much effort. Issue reports and pull requests can be very helpful. One easy way to contribute is to add to or improve the library of simple example problems in the `Examples` folder. Please keep them relatively simple. Most users learn Pynite from following these simple examples. Another way to help Pynite without having to know too much about its internal workings is to help with the documentation files in the `docs\source` folder of this repository. These files help new users learn Pynite. If you are able to make a bigger commitment, and would like to become a regular contributor to the project, please reach out about becoming a collaborator.
# Support
Whether you just need help getting started with PyNite, or are looking to build something more complex, there are a few resources available:
* The examples in the "Examples" folder in this repository cover a variety of simple problems. The comments in the examples provide additional guidance on how PyNite works.
* Documentation is a work in progress and can be found on readthedocs here: https://pynite.readthedocs.io/en/latest/index.html.
* If you're looking for more direct guidance on using PyNite, or for help coding a project, I am available on a private consulting basis. You can reach out to me directly at Building.Code@outlook.com to discuss options.
# Example Projects
Here's a list of projects that use PyNite:
* Building Code (https://building-code.herokuapp.com/) - This one is my personal side project.
* Standard Solver (https://www.standardsolver.com/)
* Civils.ai (https://civils.ai/1/free-3D-finite-element-structural-analysis)
* Phaenotyp (https://github.com/bewegende-Architektur/Phaenotyp) (https://youtu.be/shloSw9HjVI)
# What's New?
v0.0.98-100
* Bug fix for `FEModel3D.add_section`. It was throwing exceptions and had not been updated to match the examples.
* Improvements to spring rendering in `pyvista`. Up until this point spring elements were being rendered as lines. They now render as zigzag lines in `pyvista`. There is still more work for improvement on spring rendering, but this is a good start.
v0.0.97
* Fixed physical member load and deflection diagrams. Physical members are a newer feature. Member internal results were being reported correctly, but the diagrams for these members had not been revised to plot correctly. The old method for plain members was still being used. Physical members were not considering that a physical member was made from multiple submembers, and results for each span needed to be combined to get the whole plot.
* Switched some commonly used python libraries to be installed by default with `Pynite`. Most `Pynite` users will want these libraries installed for full-featured use of `Pynite`. These libraries help with `Pynite` visualizations, plotting, the sparse solver, and `Jupyter Lab` functionality. This is just easier for new python users. I was getting a lot of questions about how to set up libraries, and this takes the guesswork away. This is part of `Pynite's` objective to stay easy to use.
v0.0.96
* Changed quad elements from MITC4 formulation to DKMQ formulation. This greatly improves plate results at corners and increases the speed with which the plate's stiffness matrix is assembled. MITC4 element code has been retained as legacy code, but is no longer used by the program.
* ***Breaking Changes***: Implemented snake-case for dictionary names (e.g. `FEModel3D.Nodes` is now `FEModel3D.nodes`). These changes were made to prepare `Pynite` for a v1.0 release that is consistent with the `PEP8` style guide for `python`.
* Bug fix for tension/conpression-only member internal results. While global results were correct, member internal results were showing results from the first tension/compression only iteration.
* Member results arrays can now be customized to pick up user defined points. Member results arrays generate results much faster now too.
v0.0.95
* Bug fix for rendering negative point loads via `Pyvista`. They were being rendered as positive loads. The analysis was not impacted by this bug.
v0.0.94
* Added rendering via `Pyvista`. This greatly simplified the rendering code and provided a fresh look to the rendereings. Renderings in jupyter are now interactive. Global axes are also now shown in rendereings. To use `Pyvista` instead of `VTK`, use the new `Rendering` library rather than the old `Visualization` library. Rendering via `VTK` directly is still available.
* Bug fix for member self-weight. The program was throwing exceptions instead of calculating member self-weight. Added a unit test to help prevent this issue from occuring again as code changes.
* Refactored `material` to be `material_name` in the code. The prior naming convention caused confusion which led to the self-weight bug.
v0.0.93
* Fixed phantom reactions showing up at unsupported nodes. If there was a support defined at a node, the program was summing reactions for all directions at the node, rather than just the supported directions. This caused the program to report "extra" reaction directions at any supported node (if the user queried them). Element forces/stresses were not affected as this was a post-processing reaction summing issue. Reactions for supported directions were summed correctly, except in the case of nodes with both spring supports and other supports. Only unsupported directions, and nodes with both spring supports and other supports, were showing phantom reactions. This bug also caused statics checks to fail from time to time.
* Reorganized physical member code to match member code more consistently.
v0.0.92
* Added member self-weight calculations via `FEModel3D.add_member_self_weight()`. This only applies to members. This feature does not calculate self-weight for plate and quad elements.
v0.0.89-0.0.91
* Migrating visualizaton code from VTK to PyVista. PyVista greatly simplifies the rendering code, and simplifies adding new features to the renderings. This feature is only partially complete and partially functional.
v0.0.88
* Reorganized physical member code to match member code more consistently.
v0.0.87
* Fine-tuned P-$\delta$ effects. P-$\delta$ effects are now included in member internal slope and deflection calculations.
Raw data
{
"_id": null,
"home_page": "https://github.com/JWock82/PyNite.git",
"name": "PyNiteFEA",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "D. Craig Brinck, PE, SE",
"author_email": "Building.Code@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/5c/ac/b54337fbac7b5dcf508c9bbdc82da33cef514b5af20aa7d55081eae31ba7/pynitefea-0.0.100.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <img src=\"https://github.com/JWock82/PyNite/raw/main/Resources/Full Logo No Buffer.png\" width=40% align=\"center\"/>\n <br>\n <h1>Simple Finite Element Analysis in Python</h1>\n</div>\n\n![Build Status](https://github.com/JWock82/PyNite/actions/workflows/build-and-test.yml/badge.svg)\n[![codecov](https://codecov.io/gh/JWock82/Pynite/branch/main/graph/badge.svg?token=ZH18US3A7P)](https://codecov.io/gh/JWock82/Pynite)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/PyNiteFEA)\n<img alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/JWock82/PyNite\">\n![GitHub last commit](https://img.shields.io/github/last-commit/JWock82/PyNite)\n![GitHub](https://img.shields.io/github/license/JWock82/PyNite)\n[![Documentation Status](https://readthedocs.org/projects/pynite/badge/?version=latest)](https://pynite.readthedocs.io/en/latest/?badge=latest)\n\nAn easy to use elastic 3D structural engineering finite element analysis library for Python.\n\n# Installation\nThe easiest way to install Pynite is with pip: `pip install PyniteFEA`\n\nFor a more detailed discussion on installation options and dependencies see https://pynite.readthedocs.io/en/latest/installation.html\n\n# Current Capabilities\n* 3D static analysis of elastic structures.\n* P-Δ analysis of frame type structures.\n* Member point loads, linearly varying distributed loads, and nodal loads are supported.\n* Classify loads by load case and create load combinations from load cases.\n* Produces shear, moment, and deflection results and diagrams for each member.\n* Automatic handling of internal nodes on frame members (physical members).\n* Tension-only and compression-only elements.\n* Spring elements: two-way, tension-only, and compression-only.\n* Spring supports: two-way and one-way.\n* Quadrilateral plate elements (DKMQ formulation).\n* Rectangular plate elements (12-term polynomial formulation).\n* Basic meshing algorithms for some common shapes and for openings in rectangular walls.\n* Reports support reactions.\n* Rendering of model geometry, supports, load cases, load combinations, and deformed shapes.\n* Generates PDF reports for models and model results.\n\n# Project Objectives\nAs I've gotten into the structural engineering profession, I've found there's a need for an easy to use open-source finite element package. I hope to help fill that need by prioritizing the following:\n\n1. Accuracy: There are no guarantees PyNite is error free, but accuracy and correctness are a priority. When bugs or errors are identified, top priority will be given to eliminate them. PyNite's code is frequently reviewed, and its output is tested against a suite of textbook problems with known solutions using continuous integration (CI) anytime a change to the code base is made. If you do happen to find an error, please report it as an issue.\n\n2. Simplicity: There are other finite element alternatives out there with many more capabilities, but they are often lacking in documentation, written in difficult languages, or require extensive knowledge of finite element theory and/or element formulations to use. PyNite is not intended to be the most technically advanced solver out there. Rather, the goal is to provide a robust yet simple general purpose package.\n\n4. Improvement: PyNite is getting better at what it does. Each new feature provides leverage to build upon previous features in more elaborate ways. Key to improvement is (a) maintaining the core features that other features rely on, and (b) adding new features that are solid stepping stones to other features. Improvement most often happens by getting the small and simple things right incrementally, rather than with sweeping overhauls all at once.\n\n5. Collaboration: If you see a way to improve Pynite, you are encouraged to contribute. There are many simple ways to contribute that don't take much effort. Issue reports and pull requests can be very helpful. One easy way to contribute is to add to or improve the library of simple example problems in the `Examples` folder. Please keep them relatively simple. Most users learn Pynite from following these simple examples. Another way to help Pynite without having to know too much about its internal workings is to help with the documentation files in the `docs\\source` folder of this repository. These files help new users learn Pynite. If you are able to make a bigger commitment, and would like to become a regular contributor to the project, please reach out about becoming a collaborator.\n\n# Support\nWhether you just need help getting started with PyNite, or are looking to build something more complex, there are a few resources available:\n* The examples in the \"Examples\" folder in this repository cover a variety of simple problems. The comments in the examples provide additional guidance on how PyNite works.\n* Documentation is a work in progress and can be found on readthedocs here: https://pynite.readthedocs.io/en/latest/index.html.\n* If you're looking for more direct guidance on using PyNite, or for help coding a project, I am available on a private consulting basis. You can reach out to me directly at Building.Code@outlook.com to discuss options.\n\n# Example Projects\nHere's a list of projects that use PyNite:\n\n* Building Code (https://building-code.herokuapp.com/) - This one is my personal side project.\n* Standard Solver (https://www.standardsolver.com/)\n* Civils.ai (https://civils.ai/1/free-3D-finite-element-structural-analysis)\n* Phaenotyp (https://github.com/bewegende-Architektur/Phaenotyp) (https://youtu.be/shloSw9HjVI)\n\n# What's New?\nv0.0.98-100\n* Bug fix for `FEModel3D.add_section`. It was throwing exceptions and had not been updated to match the examples.\n* Improvements to spring rendering in `pyvista`. Up until this point spring elements were being rendered as lines. They now render as zigzag lines in `pyvista`. There is still more work for improvement on spring rendering, but this is a good start.\n\nv0.0.97\n* Fixed physical member load and deflection diagrams. Physical members are a newer feature. Member internal results were being reported correctly, but the diagrams for these members had not been revised to plot correctly. The old method for plain members was still being used. Physical members were not considering that a physical member was made from multiple submembers, and results for each span needed to be combined to get the whole plot.\n* Switched some commonly used python libraries to be installed by default with `Pynite`. Most `Pynite` users will want these libraries installed for full-featured use of `Pynite`. These libraries help with `Pynite` visualizations, plotting, the sparse solver, and `Jupyter Lab` functionality. This is just easier for new python users. I was getting a lot of questions about how to set up libraries, and this takes the guesswork away. This is part of `Pynite's` objective to stay easy to use.\n\nv0.0.96\n* Changed quad elements from MITC4 formulation to DKMQ formulation. This greatly improves plate results at corners and increases the speed with which the plate's stiffness matrix is assembled. MITC4 element code has been retained as legacy code, but is no longer used by the program.\n* ***Breaking Changes***: Implemented snake-case for dictionary names (e.g. `FEModel3D.Nodes` is now `FEModel3D.nodes`). These changes were made to prepare `Pynite` for a v1.0 release that is consistent with the `PEP8` style guide for `python`.\n* Bug fix for tension/conpression-only member internal results. While global results were correct, member internal results were showing results from the first tension/compression only iteration.\n* Member results arrays can now be customized to pick up user defined points. Member results arrays generate results much faster now too.\n\nv0.0.95\n* Bug fix for rendering negative point loads via `Pyvista`. They were being rendered as positive loads. The analysis was not impacted by this bug.\n\nv0.0.94\n* Added rendering via `Pyvista`. This greatly simplified the rendering code and provided a fresh look to the rendereings. Renderings in jupyter are now interactive. Global axes are also now shown in rendereings. To use `Pyvista` instead of `VTK`, use the new `Rendering` library rather than the old `Visualization` library. Rendering via `VTK` directly is still available.\n* Bug fix for member self-weight. The program was throwing exceptions instead of calculating member self-weight. Added a unit test to help prevent this issue from occuring again as code changes.\n* Refactored `material` to be `material_name` in the code. The prior naming convention caused confusion which led to the self-weight bug.\n\nv0.0.93\n* Fixed phantom reactions showing up at unsupported nodes. If there was a support defined at a node, the program was summing reactions for all directions at the node, rather than just the supported directions. This caused the program to report \"extra\" reaction directions at any supported node (if the user queried them). Element forces/stresses were not affected as this was a post-processing reaction summing issue. Reactions for supported directions were summed correctly, except in the case of nodes with both spring supports and other supports. Only unsupported directions, and nodes with both spring supports and other supports, were showing phantom reactions. This bug also caused statics checks to fail from time to time.\n* Reorganized physical member code to match member code more consistently.\n\nv0.0.92\n* Added member self-weight calculations via `FEModel3D.add_member_self_weight()`. This only applies to members. This feature does not calculate self-weight for plate and quad elements.\n\nv0.0.89-0.0.91\n* Migrating visualizaton code from VTK to PyVista. PyVista greatly simplifies the rendering code, and simplifies adding new features to the renderings. This feature is only partially complete and partially functional.\n\nv0.0.88\n* Reorganized physical member code to match member code more consistently.\n\nv0.0.87\n* Fine-tuned P-$\\delta$ effects. P-$\\delta$ effects are now included in member internal slope and deflection calculations.\n",
"bugtrack_url": null,
"license": null,
"summary": "A simple elastic 3D structural finite element library for Python.",
"version": "0.0.100",
"project_urls": {
"Homepage": "https://github.com/JWock82/PyNite.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "07b85518385a1212b91d7512e3e7100d84bd661baddda9c8d71c52b4868aff55",
"md5": "a5efc5ba2e2ab4789594e7acca9b4073",
"sha256": "7b6b3b9e5a2c08c799d75e73979291e457bd6fe531925716c42ededa6d94b301"
},
"downloads": -1,
"filename": "PyNiteFEA-0.0.100-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5efc5ba2e2ab4789594e7acca9b4073",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 118149,
"upload_time": "2024-12-07T23:45:12",
"upload_time_iso_8601": "2024-12-07T23:45:12.989774Z",
"url": "https://files.pythonhosted.org/packages/07/b8/5518385a1212b91d7512e3e7100d84bd661baddda9c8d71c52b4868aff55/PyNiteFEA-0.0.100-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5cacb54337fbac7b5dcf508c9bbdc82da33cef514b5af20aa7d55081eae31ba7",
"md5": "ed97969e8c53c269f6d962b5fe4f3620",
"sha256": "0d131e712fcc3b6fc87bb05c0520ffcb0cc39391940a3fb1ae34d21cfd25a4af"
},
"downloads": -1,
"filename": "pynitefea-0.0.100.tar.gz",
"has_sig": false,
"md5_digest": "ed97969e8c53c269f6d962b5fe4f3620",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 115115,
"upload_time": "2024-12-07T23:45:14",
"upload_time_iso_8601": "2024-12-07T23:45:14.855738Z",
"url": "https://files.pythonhosted.org/packages/5c/ac/b54337fbac7b5dcf508c9bbdc82da33cef514b5af20aa7d55081eae31ba7/pynitefea-0.0.100.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-07 23:45:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JWock82",
"github_project": "PyNite",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": []
},
{
"name": "scipy",
"specs": []
},
{
"name": "prettytable",
"specs": []
},
{
"name": "pyvista",
"specs": []
},
{
"name": "matplotlib",
"specs": []
},
{
"name": "trame_jupyter_extension",
"specs": []
},
{
"name": "ipywidgets",
"specs": []
}
],
"lcname": "pynitefea"
}