Skip to main content

A simple beam analysis tool

Project description

Beam Analysis

Beam Analysis is a lightweight Python package for structural beam analysis.

Example - Cantilever Beam

from pybeam import members

length = 5  # m
resolution = 1000  # points
load = 50  # N
load_position = 5  # m

# create generic loadable member
loadable = members.Loadable(length, resolution)

# add load 
loadable.add_shear_point_force(load, load_position/length)  # relative position

# reaction loads (no automated solver yet)
loadable.add_shear_point_force(-load, 0)
loadable.add_point_moment(-load*length, 0)

loadable.plot()

Sign convention: positive shear loads downwards.

Use

(windows)

clone repo

python -m venv ./venv
./venv/Scripts/Activate.ps1

pip install -r requirements.txt

test: pip install -r requirements-dev.txt python -m pytest .\test\

coverage run -m pytest
coverage report -m

build

python -m build

whl file in dist/

Project details


Download files

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

Source Distribution

pybeam_structural-0.1.0a0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

pybeam_structural-0.1.0a0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pybeam_structural-0.1.0a0.tar.gz.

File metadata

  • Download URL: pybeam_structural-0.1.0a0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pybeam_structural-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 ebe23c54984d7923746f7c57f6f919c4df27196f30e113b72dd33f9cf545a81e
MD5 9a6b900d3d93eb77020c977180517d76
BLAKE2b-256 cb63d189f81b55d21cfd552a40fe773095b469c70f82048394ee04787ceb78ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybeam_structural-0.1.0a0.tar.gz:

Publisher: release.yml on DGames95/pybeam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pybeam_structural-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for pybeam_structural-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7af3610104eb164bb6dbed003f1d24712fb161bbd9f9eed0c613edbff2da8d
MD5 4e73c84063768a5357045281417d170a
BLAKE2b-256 7ba82f6196fed2f1f15e36603c6c60f46be6d5fdb87b21d3cb8078d9bd472de4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybeam_structural-0.1.0a0-py3-none-any.whl:

Publisher: release.yml on DGames95/pybeam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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