plot_unstruct_responses_animation

opstool.vis.pyvista.plot_unstruct_responses_animation(odb_tag=1, ele_tags=None, framerate=None, ele_type='Shell', resp_type=None, resp_dof=None, savefig=None, off_screen=True, style='surface', cpos='iso')[source]

Unstructured element (Shell, Plane, Brick) response animation.

Note

The responses at all Gaussian points are averaged.

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.

ele_type: str, default: “Shell”

Element type, optional, one of [“Shell”, “Plane”, “Solid”].

framerate: int, default: None

Framerate for the display, i.e., the number of frames per second.

savefig: str, default: None

Path to save the animation. The suffix can be .gif or .mp4.

off_screen: bool, default: True

Off-screen rendering, i.e., not showing the rendering window. If False, the rendering window will be displayed.

resp_type: str, default: None

Response type, which dependents on the element type ele_type.

  1. For Shell elements, one of [“sectionForces”, “sectionDeformations”].

    I.e., section forces and deformations at Gaussian integration points (per unit length). If None, defaults to “sectionForces”.

  2. For Plane elements, one of [“stresses”, “strains”].

    I.e., stresses and strains at Gaussian integration points. If None, defaults to “stresses”.

  3. For Brick or Solid elements, one of [“stresses”, “strains”].

    I.e., stresses and strains at Gaussian integration points. If None, defaults to “stresses”.

resp_dof: str, default: None

Dof to be visualized, which dependents on the element type ele_type.

Note

The resp_dof here is consistent with stress-strain (force-deformation), and whether it is stress or strain depends on the parameter resp_type.

  1. For Shell elements, one of [“FXX”, “FYY”, “FXY”, “MXX”, “MYY”, “MXY”, “VXZ”, “VYZ”].

    If None, defaults to “MXX”.

  2. For Plane elements, one of [“sigma11”, “sigma22”, “sigma12”, “p1”, “p2”, “sigma_vm”, “tau_max”].

    • “sigma11, sigma22, sigma12”: Normal stress and shear stress (strain) in the x-y plane.

    • “p1, p2”: Principal stresses (strains).

    • “sigma_vm”: Von Mises stress.

    • “tau_max”: Maximum shear stress (strains).

    • If None, defaults to “sigma_vm”.

  3. For Brick or Solid elements, one of [“sigma11”, “sigma22”, “sigma33”, “sigma12”, “sigma23”, “sigma13”, “p1”, “p2”, “p3”, “sigma_vm”, “tau_max”, “sigma_oct”, “tau_oct”]

    • “sigma11, sigma22, sigma33”: Normal stress (strain) along x, y, z.

    • “sigma12, sigma23, sigma13”: Shear stress (strain).

    • “p1, p2, p3”: Principal stresses (strains).

    • “sigma_vm”: Von Mises stress.

    • “tau_max”: Maximum shear stress (strains).

    • “sigma_oct”: Octahedral normal stress (strains).

    • “tau_oct”: Octahedral shear stress (strains).

    • If None, defaults to “sigma_vm”.

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”.

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.