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.