Eigen (Pyvista)

The eigenvalue (modal) visualization provides insights into the dynamic characteristics of the structure. It includes the following features:

  • Mode Shapes: Visual representation of how the structure deforms under specific vibration modes.

  • Natural Frequencies or Periods: Display of corresponding frequencies or periods for each mode, enabling detailed analysis of structural dynamics.

  • Animation: Dynamic visualization of the mode shapes to better understand the structural response.

Using the visualization tools, you can:

  1. Analyze the vibration patterns of the structure.

  2. Identify critical modes that may impact structural performance.

  3. Evaluate the effectiveness of design modifications in improving dynamic behavior.

[1]:
import opstool as opst
import opstool.vis.pyvista as opsvis

Here, we use a built-in example from opstool, which is an example of a suspension bridge model primarily composed of frame elements and shell elements.

[2]:
opst.load_ops_examples("SuspensionBridge")
# or your model code here

Save the eigen analysis results

Although not mandatory, you can use the save_eigen_data function to save eigenvalue analysis data, which can help you better understand how opstool operates.

Parameters:

  • odb_tag: Specifies the label for the output database.

  • mode_tag: Specifies the number of modes to save. Modal data within the range [1, mode_tag] will be saved.

For detailed usage, please refer to the opstool.post.save_eigen_data().

[3]:
opst.post.save_eigen_data(odb_tag=1, mode_tag=6)
Using DomainModalProperties - Developed by: Massimo Petracca, Guido Camata, ASDEA Software Technology
OPSTOOL ::  Eigen data has been saved to _OPSTOOL_ODB/EigenData-1.nc!

Plot mode shape by animation

The following example demonstrates how to animate Mode 1:

[7]:
plotter = opsvis.plot_eigen_animation(
    mode_tag=1, odb_tag=1, savefig="EigenAnimation.gif"
)
plotter.show(jupyter_backend="jupyterlab")
# plotter.show()
OPSTOOL ::  Loading eigen data from _OPSTOOL_ODB/EigenData-1.nc ...
../../_images/src_vis_plot_eigen_pyvista_22_1.png