plot_eigen¶
- opstool.vis.plotly.plot_eigen(mode_tags, odb_tag=None, subplots=False, scale=1.0, show_outline=False, show_origin=False, style='surface', show_bc=True, bc_scale=1.0, show_mp_constraint=True, solver='-genBandArpack', mode='eigen')[source]¶
Modal visualization.
- Return type:
Figure
Parameters¶
- mode_tags: Union[List, Tuple]
The modal range to visualize, [mode i, mode j].
- odb_tag: Union[int, str], default: None
Tag of output databases (ODB) to be visualized. If None, the data will be saved automatically.
- subplots: bool, default: False
If True, multiple subplots are used to present mode i to mode j. Otherwise, they are presented as slides.
- scale: float, default: 1.0
Zoom the presentation size of the mode shapes.
- 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.
- solverstr, optional,
OpenSees’ eigenvalue analysis solver, by default “-genBandArpack”.
- 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