plot_frame_responses_animation¶
- opstool.vis.pyvista.plot_frame_responses_animation(odb_tag=1, ele_tags=None, resp_type='sectionForces', resp_dof='MZ', scale=1.0, show_values=False, cpos='iso', framerate=None, savefig='FrameForcesAnimation.gif', off_screen=True, line_width=1.5)[source]¶
Animate the responses of frame elements.
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 frame elements to be visualized. If None, all frame elements are selected.
- resp_type: str, default: “sectionforces”
Response type, optional, one of [“localForces”, “basicForces”, “basicDeformations”, “plasticDeformation”, “sectionForces”, “sectionDeformations”].
- resp_dof: str, default: “MZ”
Component type corrsponding to the resp_type.
For localForces: [“FX”, “FY”, “FZ”, “MX”, “MY”, “MZ”]
For basicForces: [“N”, “MZ”, “MY”, “T”]
For basicDeformations: [“N”, “MZ”, “MY”, “T”]
For plasticDeformation: [“N”, “MZ”, “MY”, “T”]
For sectionForces: [“N”, “MZ”, “VY”, “MY”, “VZ”, “T”]
For sectionDeformations: [“N”, “MZ”, “VY”, “MY”, “VZ”, “T”]
Note
For sectionForces and sectionDeformations, not all sections include the shear dof VY and VZ. For instance, in the most commonly used 3D fiber cross-sections, only the axial force N, bending moments MZ and MY, and torsion T are available.
- scale: 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.
- show_values: bool, default: True
Whether to display the response value.
- framerate: int, default: None
Framerate for the display, i.e., the number of frames per second.
- savefig: str, default: FrameForcesAnimation.gif
Path to save the animation. The suffix can be
.gifor.mp4.- 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”.
- off_screen: bool, default: True
Whether to display the plotting window. If True, the plotting window will not be displayed.
- line_width: float, default: 1.5.
Line width of the response graph.
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.