Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesmaguire/opensees-3d-visualisation
A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model
https://github.com/jamesmaguire/opensees-3d-visualisation
Last synced: about 1 month ago
JSON representation
A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model
- Host: GitHub
- URL: https://github.com/jamesmaguire/opensees-3d-visualisation
- Owner: jamesmaguire
- License: mit
- Created: 2017-03-24T03:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T09:12:03.000Z (over 3 years ago)
- Last Synced: 2024-08-02T19:01:31.776Z (5 months ago)
- Language: Tcl
- Size: 163 KB
- Stars: 16
- Watchers: 4
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-opensees - OpenSees 3D Visualisation - A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model. ![oss][oss] ![python][python] (Visualiser)
README
# OpenSees 3D visualisation
A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model
You can use the script to visualise node locations as points in 3D space and elements as lines between nodes, with the ability to customise colours, linestyles, and linewidths easily.
## Dependancies
The script is written for python3 and uses the following packages:
- Pandas
- Numpy
- Matplotlib## Example
The script is currently setup to run the example model located in the `./example` subfolder.
- `./example/example-model.tcl` is an example OpenSees file that defines the nodes and elements of a storage rack.
- `./example/example-disps.out` is the output file produced by a pushover analysis run in OpenSees on the rack. The script will also handle OpenSees' `.xml` output format.
With the following settings:
```python
scalefactor = 1 # Displacement scalefactor
azimuth = -50 # Angle from which to view structure
elevation = 20 # Elevation from which to view structure
```we can get the following result:
![3D visualisation](example/example.png)
In this example the undisplaced structure is plotted using dashed lines, and the displaced structure is plotted using solid coloured lines. The lineweights and colours of the displaced structure are customised to make the plot look nice and clean.