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.
First, instantiate the OpenSeesMatlab interface class. This class provides native OpenSees commands, as well as additional visualization, pre/post-processing, and utility methods.
12
opsMAT=OpenSeesMatlab();ops=opsMAT.opensees;
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.
123
ops.wipe();opsMAT.utils.loadExamples("ArchBridge2");% or your model here
We can visualize the model using the plotModel function in the vis attribute.
opts.color.useColormap=true;% opts.color.colormap = jet(256);modeTags=[1357];cmps={"parula","turbo","cool","winter"};% Create a figure at position (100,100) with width=1200px and height=900pxfigure('Position',[100,100,1200,900]);fori=1:4subplot(2,2,i)ax=gca();opsMAT.vis.plotEigen(modeTags(i),eigenData,opts=opts,ax=ax);axisoff;colormap(ax,cmps{i});end