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
Release files for TOpsPy 0.0.31
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TOpsPy-0.0.31.tar.gz | 6.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TOpsPy-0.0.31-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:12.7 MB
Release files / TOpsPy-0.0.31.tar.gz
| Download URL | TOpsPy-0.0.31.tar.gz |
|---|---|
| Size | 6.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35c7d45407d382da601b090412044fbdd366e3217853f61e340871b8b4257730
|
|
BLAKE2b-256 checksum How to use checksums |
a8b1048140fb9e631d89287adb07c4d8079e664b84452c72339e21bf970a3db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / TOpsPy-0.0.31-py3-none-any.whl
| Download URL | TOpsPy-0.0.31-py3-none-any.whl |
|---|---|
| Size | 6.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32f06d64044d0425517514820ad4c9c2483b0224230b33a4450718837f8ea448
|
|
BLAKE2b-256 checksum How to use checksums |
92d48e5f7b6354677dedce7c9e8fd505e77df2da9d90b2f8ff73aa8d92e019f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|