Skip to content

Latest commit

 

History

140 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beam-analysis

Python 3.8 PyPI version Build Status Language grade: Python Total alerts Hits

Perform engineering analysis on beams with diagrams for shear, moments, angle, and deflection

Usage 💻

Install

pip install beam_analysis
git clone https://github.com/XDwightsBeetsX/beam-analysis

Sample Code

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 📂!

If you run into usage problems, double check the requirements.txt 📄

Continuous development using twine 👷🛠️

This project is maintained on PYPI via releases through twine...

python setup.py sdist bdist_wheel
twine upload -r testpypi dist/* -u $username -p $password
twine upload -r pypi dist/* -u $username -p $password

About

Perform engineering analysis on beams with diagrams for shear, moments, angle, and deflection. Now has 3D plots!

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages