https://github.com/xdwightsbeetsx/beam-analysis
Perform engineering analysis on beams with diagrams for shear, moments, angle, and deflection. Now has 3D plots!
https://github.com/xdwightsbeetsx/beam-analysis
analysis beam engineering mechanical-engineering python
Last synced: 4 months ago
JSON representation
Perform engineering analysis on beams with diagrams for shear, moments, angle, and deflection. Now has 3D plots!
- Host: GitHub
- URL: https://github.com/xdwightsbeetsx/beam-analysis
- Owner: XDwightsBeetsX
- License: mit
- Created: 2021-02-23T06:32:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T21:21:04.000Z (over 4 years ago)
- Last Synced: 2026-01-03T03:53:42.723Z (5 months ago)
- Topics: analysis, beam, engineering, mechanical-engineering, python
- Language: Python
- Homepage: https://pypi.org/project/beam-analysis/
- Size: 374 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# beam-analysis
[](https://www.python.org/downloads/release/python-380/)
[](https://badge.fury.io/py/beam-analysis)
[](https://app.travis-ci.com/XDwightsBeetsX/beam-analysis)
[](https://lgtm.com/projects/g/XDwightsBeetsX/beam_analysis/context:python)
[](https://lgtm.com/projects/g/XDwightsBeetsX/beam_analysis/alerts/)
[](https://hits.seeyoufarm.com)
Perform engineering analysis on beams with diagrams for shear, moments, angle, and deflection
## Usage 💻
### Install
```shell
pip install beam_analysis
```
```shell
git clone https://github.com/XDwightsBeetsX/beam-analysis
```
### Sample Code
```python
E = 207 * 10**6
L = 1.0
CS = CrossSection(CrossSectionTypes.CIRC, [.01])
B = Beam(L, E, crossSection=CS)
B.addPointLoad(0, 11, 45)
B.addPointLoad(L/2, -20, 45)
B.addPointLoad(L, 11, 45)
B.addDistributedLoad(0, L, -2, 45)
B.addBoundaryCondition(L/2, BoundaryConditionTypes.ANGLE, 0)
B.addBoundaryCondition(L, BoundaryConditionTypes.DEFLECTION, 0)
B.runAnalysis(outputToFile=True)
```
## Mechanical Requirements ⚙️⚠️
- Currently reactions are not solved for...
- All loads and reactions must be inputted
- Boundary conditions currently required
- one angle *AND* one deflection value
- *OR* two deflection parameters
- Beam weight is not accounted for by default
- represent it with a distributed load
***Check out some demos [here 📂](beam_analysis/docs/demos.md)!***
***If you run into usage problems, double check the [requirements.txt 📄](requirements.txt)***
## Continuous development using `twine` 👷🛠️
This project is maintained on [PYPI](https://pypi.org/project/beam-analysis/) via releases through twine...
```shell
python setup.py sdist bdist_wheel
twine upload -r testpypi dist/* -u $username -p $password
twine upload -r pypi dist/* -u $username -p $password
```