plot_eigen_animation¶
- opstool.vis.plotly.plot_eigen_animation(mode_tag, odb_tag=None, n_cycle=5, framerate=3, scale=1.0, solver='-genBandArpack', show_outline=False, show_origin=False, style='surface', show_bc=True, bc_scale=1.0, show_mp_constraint=True, mode='eigen')[source]¶
Modal animation visualization.
- Return type:
Figure
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, the 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.
- scale: float, default: 1.0
Zoom the presentation size of the mode shapes.
- solverstr, optional,
OpenSees’ eigenvalue analysis solver, by default “-genBandArpack”.
- show_outline: bool, default: False
Whether to display the outline of the model.
- show_origin: bool, default: False
Whether to show the undeformed shape.
- style: str, default: surface
Visualization mesh style of surfaces and solids. One of the following: style=’surface’ or style=’wireframe’ Defaults to ‘surface’. Note that ‘wireframe’ only shows a wireframe of the outer geometry.
- show_bc: bool, default: True
Whether to display boundary supports.
- bc_scale: float, default: 1.0
Scale the size of boundary support display.
- show_mp_constraint: bool, default: True
Whether to show multipoint (MP) constraint.
- 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.
Returns¶
- fig: plotly.graph_objects.Figure
You can use fig.show() to display, You can also use fig.write_html(“path/to/file.html”) to save as an HTML file, see Interactive HTML Export in Python