Skip to main content

OpenseesPy Functions

Project description

TOpsPY

PyPI version fury.io Downloads

By: Bijan Sayyafzadeh (b.sayyaf@yahoo.com)

This module conatin my functions for openseespy and you can find the doucumentation using shift+Tab key after their name.

Special Thanks to Dr. Silivia Mazzoni & Prof. Michael Scott Because of many guidances on my efforts
And
Also So many thanks to Ph. D. Candidate Selamawit Dires for her supports.

Packages and Functions that Are presented are here with their usage Description:

  • dynamic (SubPackage)
    • LAT2 : Function for importing acceleration data from *.AT2 PEER Files.
    • RspSpc : Function for calculating Linear Response Spectrum for any Time History.
    • SDFTHA : Function for calculation the displacement response history of a SDF under any time history acceleration.
  • modeling (SubPackage)
    • ElePerPend : Function that Provide a vector that is perpendicular to the line from first defined point to the last defined point.
    • eleAxialForce : Function That return the Axial force of the defined element.
    • MultiEl : Function That draw any number of elements alog defined nodes. This function also returns middle point/s NodeTag/s and their corresponding coordinates. There is an option that by this option User Can specify that end connection be pinned or fixed!
    • GmTVector : Function that return the Geometric Transformation Vector of any element using only one Parameter. For more information Review This: https://github.com/BijanSeif/My-Opensees-Jupyter-NoteBooks/blob/main/Auto%20Geometric%20Transform%20Function%20(GmTVector).ipynb

How to use it:

1- Install it : pip install topspy (for windows)
2- In your python code import it:

  • For dynamic subpackage: import topspy.dynamic as bjd
  • For modelling subpackage: import topspy.modeling as bjm

3- Using bjd or bjm you have access to mentioned function.

Example of using the functions:

  • dynamic (SubPackage)
    • LAT2 :
    • RspSpc :
    • SDFTHA :
  • modeling (SubPackage)
    • ElePerPend : bjm.ElePerPend(1,5) Using Node Numbers (Node 1 and Node 5) , bjm.ElePerPend(a,b) Using Node Coordinate (a and b are the coordinate list of node 1 and node 5)
    • eleAxialForce : Axial1,Axial2=bjm.eleAxialForce(eleTag) using element Tag number the axial force of the element is presented in Axial1, Axial2.
    • MultiEl : bjm.MultiEl(4,5,5,elep,0) #Define 5 elements with elep properties from node 4 to node 5 with no buckling shape and in a direct line. bjm.MultiEl(4,5,5,elep,0,'Yes',1e9,10) The last 'Yes' cause that generated element be 2 head pinned using zero length Element with Rigid Stiffness equal to 1e9 or any other user value with NewMaterialTag equal to 10!. (ATTENTION: it is very important that user don't define any previously used tag for NewMaterialTag)
    • GmTVector : vec=bjm.GmTVector(Node1,Node2,Theta) Using Node Coordinate (Node1,Node2 are the coordinate list of node 1 and node 5) and Theta is the cross section rotation angle according degree and the result (vec) is the Geometric transformation vector.

Find more examples in detail: https://github.com/BijanSeif/My-Opensees-Jupyter-NoteBooks

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

TOpsPy-0.0.16.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

TOpsPy-0.0.16-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file TOpsPy-0.0.16.tar.gz.

File metadata

  • Download URL: TOpsPy-0.0.16.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for TOpsPy-0.0.16.tar.gz
Algorithm Hash digest
SHA256 ebe2cebc9b5859d8d7da0e34a71ee2394ac8c50345305637927afe624a445194
MD5 1194f9d3fe4a5342905b38b4abc4b3fb
BLAKE2b-256 04e0a71d74e1059efc982aabbcc124e7474e1ca1a3fc6ab5f80d37af9886c155

See more details on using hashes here.

File details

Details for the file TOpsPy-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: TOpsPy-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for TOpsPy-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 9bb47c76fdf06ed5e8169d7210e9e3afa3a14995d77a1150e035a2d76967c11d
MD5 df8d1fe1dd9dae73d3dd6a1e6bb6a1e5
BLAKE2b-256 807147ef23220bea25e909fec711799a65c75955f41d59c55e2f9645a58f595f

See more details on using hashes here.

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