Truss construction and analysis
Project description
trussme
trussme is a Python library for building, analyzing, and optimizing truss structures.
Installation
trussme supports Python 3.10 and newer.
pip install trussme
The package depends on numpy, scipy, pandas, matplotlib, and tabulate at runtime.
Quick Start
import trussme
truss = trussme.Truss()
pin = truss.add_pinned_joint([0.0, 0.0, 0.0])
free = truss.add_free_joint([2.5, 2.5, 0.0])
roller = truss.add_roller_joint([5.0, 0.0, 0.0])
truss.add_member(pin, free)
truss.add_member(pin, roller)
truss.add_member(roller, free)
truss.add_out_of_plane_support("z")
truss.set_load(free, [0.0, -10000.0, 0.0])
truss.analyze()
print(truss.fos)
print(truss.mass)
Built-in Materials
Trussme ships with a small library of common engineering materials. Each record
includes a source URL citing where the mechanical properties originate.
- A36_Steel - https://en.wikipedia.org/wiki/A36_steel
- A992_Steel - https://en.wikipedia.org/wiki/ASTM_A992
- 304_Stainless_Steel - https://en.wikipedia.org/wiki/SAE_304_stainless_steel
- 2024_T3_Aluminum - https://en.wikipedia.org/wiki/2024_aluminium_alloy
- 6061_T6_Aluminum - https://en.wikipedia.org/wiki/6061_aluminium_alloy
- 7075_T6_Aluminum - https://en.wikipedia.org/wiki/7075_aluminium_alloy
- Ti_6Al_4V_Titanium - https://en.wikipedia.org/wiki/Ti-6Al-4V
Custom materials must also provide a provenance source when added to a truss.
Project Links
- Source: GitHub
- Issues: GitHub Issues
- Release Guide: RELEASING.md
License
This project is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trussme-0.1.0.tar.gz.
File metadata
- Download URL: trussme-0.1.0.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82da77575dbb733df81f099dc59f515876cf97d34c1d42e4f606b11a73dca45a
|
|
| MD5 |
a77b565600f41d845a2818f756f41f45
|
|
| BLAKE2b-256 |
e73081d232e3284c02ee5d1c88cb32ae0b95afafcca058e2a806638a6580af90
|
Provenance
The following attestation bundles were made for trussme-0.1.0.tar.gz:
Publisher:
publish.yml on cmccomb/TrussMe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trussme-0.1.0.tar.gz -
Subject digest:
82da77575dbb733df81f099dc59f515876cf97d34c1d42e4f606b11a73dca45a - Sigstore transparency entry: 1005538668
- Sigstore integration time:
-
Permalink:
cmccomb/TrussMe@4cb944a1a08b8c5cd9a166903867a3501a0d2eb9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cmccomb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cb944a1a08b8c5cd9a166903867a3501a0d2eb9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trussme-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trussme-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc5829185cdb15429a09fa6460ce96c255df877e059e71e03d7ca6a57d93b43
|
|
| MD5 |
808ef458cd26ff675b08ced3ad512e0e
|
|
| BLAKE2b-256 |
cbf842ecaa7d053ce76079d45347fc1f0950802adfc94d7aa0c2b833a7421b7a
|
Provenance
The following attestation bundles were made for trussme-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on cmccomb/TrussMe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trussme-0.1.0-py3-none-any.whl -
Subject digest:
cbc5829185cdb15429a09fa6460ce96c255df877e059e71e03d7ca6a57d93b43 - Sigstore transparency entry: 1005538670
- Sigstore integration time:
-
Permalink:
cmccomb/TrussMe@4cb944a1a08b8c5cd9a166903867a3501a0d2eb9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cmccomb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cb944a1a08b8c5cd9a166903867a3501a0d2eb9 -
Trigger Event:
push
-
Statement type: