OpenseesPy Functions
Project description
TOpsPY
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.
Packages and Functions that Are presented are here with their usage Description:
-
AutoModeler (SubPackage)
-
TimeHistories (SubPackage)
-
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:
-
AutoModeler (SubPackage)
-
TimeHistories (SubPackage)
-
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)
- MultiElEQDOF :
- 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
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
File details
Details for the file TOpsPy-0.0.31.tar.gz
.
File metadata
- Download URL: TOpsPy-0.0.31.tar.gz
- Upload date:
- Size: 6.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c7d45407d382da601b090412044fbdd366e3217853f61e340871b8b4257730 |
|
MD5 | f90b2be0b317c78aad54e138529aa055 |
|
BLAKE2b-256 | a8b1048140fb9e631d89287adb07c4d8079e664b84452c72339e21bf970a3db1 |
File details
Details for the file TOpsPy-0.0.31-py3-none-any.whl
.
File metadata
- Download URL: TOpsPy-0.0.31-py3-none-any.whl
- Upload date:
- Size: 6.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f06d64044d0425517514820ad4c9c2483b0224230b33a4450718837f8ea448 |
|
MD5 | 4efd9d989ba48a25a7f008b7f81e5322 |
|
BLAKE2b-256 | 92d48e5f7b6354677dedce7c9e8fd505e77df2da9d90b2f8ff73aa8d92e019f7 |