Quick Model and Eigen Visualization¤
This live script is written as a guided walkthrough for a post-processing workflow. It focuses on retrieving, organizing, and visualizing model or response data after an OpenSees analysis. Read the text cells first, then run each code cell in order so that the variables, model state, and recorded results are available for the later sections.
At any point during model creation, you can run the ops.vis.plotModel() or ops.vis.plotEigen() to visualize the current model’s geometric details and eigen modes.
Model visualization¤
This section creates the finite-element idealization used by the rest of the example. Check the dimensions, tags, and connectivity here before moving on.
1 | |
First, instantiate the OpenSeesMatlab interface class. This class provides native OpenSees commands, as well as additional visualization, pre/post-processing, and utility methods.
1 2 | |
For example, the tool property provides a function loadExamples to run some built-in models. Of course, you can run your own model; the built-in model is used here for demonstration purposes only.
1 2 3 | |
We can visualize the model using the plotModel function in the vis attribute.
1 | |
We can retrieve data from the current model, which returns a nested struct. You can view the data using MATLAB's workspace variables.
1 2 | |
Finally, we can customize the control parameters for model visualization. Let's first take a look at the default parameter settings.
1 2 | |
Then
1 2 3 4 5 | |
1 | |
Visualization based on Matlab GUI¤
1 | |
Visualization based on Polyscope GUI¤
1 | |
Eigen visualization¤
First, we need to save the eigenvalue analysis results data for future reuse.
Then, data is retrieved from the file, returning a nested structure that stores the various results of the eigenvalue analysis.
1 2 3 4 | |
Using this data, we can visualize the first modal shapes.
1 | |
and 5th
1 | |
Similarly, we obtain the default parameters.
1 2 | |
For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Visualization based on Matlab GUI¤
1 | |
Visualization based on Polyscope GUI¤
1 | |