Skip to main content

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.

Custom materials must also provide a provenance source when added to a truss.

Project Links

License

This project is released under the MIT License.

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

trussme-0.1.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

trussme-0.1.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

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

Hashes for trussme-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82da77575dbb733df81f099dc59f515876cf97d34c1d42e4f606b11a73dca45a
MD5 a77b565600f41d845a2818f756f41f45
BLAKE2b-256 e73081d232e3284c02ee5d1c88cb32ae0b95afafcca058e2a806638a6580af90

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on cmccomb/TrussMe

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

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

Hashes for trussme-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbc5829185cdb15429a09fa6460ce96c255df877e059e71e03d7ca6a57d93b43
MD5 808ef458cd26ff675b08ced3ad512e0e
BLAKE2b-256 cbf842ecaa7d053ce76079d45347fc1f0950802adfc94d7aa0c2b833a7421b7a

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on cmccomb/TrussMe

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