Skip to content

A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model

License

Notifications You must be signed in to change notification settings

jamesmaguire/opensees-3d-visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

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.

About

A Python script that reads OpenSees simulation input and output files to create a 3D visualisation of your displaced model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published