plot_eigen¶
- opstool.vis.pyvista.plot_eigen(mode_tags, odb_tag=None, subplots=False, link_views=True, scale=1.0, show_outline=False, show_origin=False, style='surface', cpos='iso', show_bc=True, bc_scale=1.0, show_mp_constraint=True, solver='-genBandArpack', mode='eigen')[source]¶
Modal visualization.
- Return type:
Plotter
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, 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.
- link_views: bool, default: True
Link the views’ cameras when subplots=True.
- 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 the mesh style of surfaces and solids. One of the following: style=’surface’, style=’wireframe’, style=’points’, style=’points_gaussian’. Defaults to ‘surface’. Note that ‘wireframe’ only shows a wireframe of the outer geometry.
- 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”.
- 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¶
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.