Git Product home page Git Product logo

structpy's Introduction

Project Logo

Structural Analysis in Python

Build Status Badge Compatibility badge MIT License Badge

This library primarily uses the 'Direct Stiffness Method' to solve trusses and frames.

Getting StructPy

  • StructPy is not currently available through pip, but will be in the future. To use StructPy you need to manually install it with the development instructions below.

Cross Sections Library:

  • General shapes with user defined properties
  • Custom shapes generated by user defined parameters
    • I-Beam
    • Rectangle
    • Circle
    • Hollow Circle
  • AISC predefined cross sections and properties

Material Database

  • A992, A36, custom, etc...

Structural Analysis Classes to build structures

  • Node class
  • Member class
  • Structure class
    • Truss solving method and deformation plot

Development & Testing

Fork StructPy on github, and clone to your local machine with:

git clone [email protected]:{your_username}/StructPy.git

You can modify then test StructPy on your local Mac/Linux machine by running the following from the StructPy directory.

bash run_tests.sh

To install StructPy as a package run:

python3 setup.py install

References:

structpy's People

Contributors

brianchevalier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

structpy's Issues

Are the examples supposed to work?

Just downloaded and "bash run_tests.sh" ran ok. Tried to run "python3.8 'Truss 1.py' and got

Traceback (most recent call last):
  File "Truss 1.py", line 16, in <module>
    s1.addNode(0, 0, fixity='pin')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/StructPy/structural_classes.py", line 138, in addNode
    node = self.__class__.NodeType(x, y, n=n, cost=cost, fixity=fixity)
AttributeError: type object 'Structure' has no attribute 'NodeType'

Poked around and in Truss1.py s1 is an instance of Structure. Grepped around and found 'NodeType' defined in a class called Truss but no reference to Truss in Truss1.py and s1 is certainly not a Truss, it's a Structure.

So I'm wondering if I am doing something wrong or if the examples are broken.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.