plot_eigen_animation¶
- opstool.vis.pyvista.plot_eigen_animation(mode_tag, odb_tag=None, n_cycle=5, framerate=3, savefig='EigenAnimation.gif', off_screen=True, cpos='iso', solver='-genBandArpack', alpha=1.0, mode='eigen', **kargs)[source]¶
Modal animation visualization.
- Return type:
Plotter
Parameters¶
- mode_tag: int
The mode tag to display.
- odb_tag: Union[int, str], default: None
Tag of output databases (ODB) to be visualized. If None, data will be saved automatically.
- n_cycle: int, default: five
Number of cycles for the display.
- framerate: int, default: three
Framerate for the display, i.e., the number of frames per second.
- savefig: str, default: EigenAnimation.gif
Path to save the animation. The suffix can be
.gifor.mp4.- off_screen: bool, default: True
Whether to display the plotting window. If True, the plotting window will not be displayed.
- cpos: str, default: iso
Model display perspective, optional: “iso”, “xy”, “yx”, “xz”, “zx”, “yz”, “zy”. If 3d, defaults to “iso”. If 2d, defaults to “xy”.
- solverstr, optional,
OpenSees’ eigenvalue analysis solver, by default “-genBandArpack”.
- alpha: float, default: 1.0
Zoom the presentation size of the mode shapes.
- mode: str, default: eigen
The type of modal analysis, can be “eigen” or “buckling”. If “eigen”, it will plot the eigenvalues and eigenvectors. If “buckling”, it will plot the buckling factors and modes. Added in v0.1.15.
- kargs: dict, optional parameters,
see
plot_eigen.
Returns¶
Plotting object of PyVista to display vtk meshes or numpy arrays. See pyvista.Plotter.
You can use Plotter.show. to display the plotting window.
You can also use Plotter.export_html. to export this plotter as an interactive scene to an HTML file.