plot_truss_responses_animation¶
- opstool.vis.pyvista.plot_truss_responses_animation(odb_tag=1, ele_tags=None, framerate=None, savefig='TrussRespAnimation.gif', off_screen=True, show_values=False, resp_type='axialForce', alpha=1.0, line_width=1.5, cpos='iso')[source]¶
Truss response animation.
Parameters¶
- odb_tag: Union[int, str], default: 1
Tag of output databases (ODB) to be visualized.
- ele_tags: Union[int, list], default: None
The tags of truss elements to be visualized. If None, all truss elements are selected.
- framerate: int, default: None
Framerate for the display, i.e., the number of frames per second.
- savefig: str, default: TrussRespAnimation.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.
- show_values: bool, default: False
Whether to display the response value.
- resp_type: str, default: “axialForce”
Response type, optional, one of [“axialForce”, “axialDefo”, “Stress”, “Strain”].
- alpha: float, default: 1.0
Scale the size of the response graph.
Note
You can adjust the scale to make the response graph more visible. A negative number will reverse the direction.
- line_width: float, default: 1.5.
Line width of the response graph.
- 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”.
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.