StructuralVibration.jl is accompanied by an extension SVMakieExt.jl providing visualization capabilities. The extension provides a set of functions to visualize the results of the structural dynamics analysis.
To use one of these extensions, you need to import the desired plotting package by running the following command:
usingCairoMakie# orusingGLMakie
1 Bode plot
A Bode plot is a graph of the magnitude and phase of a transfer function versus frequency.
The Nyquist plot is either a 2D or 3D plot. In 2D, it is a graph of the imaginary part versus the real part of the transfer function. In 3D, it is a graph of the imaginary part versus the real part of the transfer function and the frequency.
2.1 2D plot
nyquist_plot
nyquist_plot(y)
Plot Nyquist diagram
Inputs
y: Complex data vector
Output
fig: Figure
nyquist_plot(H)
2.2 3D plot
nyquist_plot
nyquist_plot(freq, y, xlab = "Frequency (Hz)";
projection = false)
Plot Nyquist diagram in 3D
Inputs
freq: Frequency range
y: Complex vector
ylabel: y-axis label
projection: Projection of the curve on the xy, yz, and xz planes (default: false)
on the xy plane: (freq, real(y))
on the yz plane: (imag(y), freq)
on the xz plane: (real(y), imag(y))
Output
fig: Figure
nyquist_plot(freq, H, projection =true)
3 Waterfall plot
A waterfall plot is a 3D plot with a partial curtain along the y-axis.
Plot stabilization diagram for EMA-MDOF pole stability analysis.
Inputs
stab: EMA-MDOF stabilization data
indicator: Indicator to plot
:psif : Power spectrum indicator function (default)
:cmif : Complex mode indicator function
display_poles: Vector of Bool to choose which poles to display
display_poles[1] : Stable in frequency and damping (default: true)
display_poles[2] : Stable in frequency but not stable in damping (default: true)
display_poles[3] : Not stable in frequency (default: true)
Output
fig: Figure
Examples of stabilization plot can be found in the Modal extraction documentation.
5 Peaks plot
The peaks plot is used to visualize the peak detection of a given function. It is a useful tool to define the parameters of the peak detection algorithm use to extract the poles using Sdof methods.