Resonance Frequency Simulator Back
Structural Dynamics

Resonance Frequency Simulator

Tune mass, spring stiffness, and damping ratio to watch resonance curves reshape in real time. Q factor, half-power bandwidth, and phase lag calculated instantly — the core of CAE vibration analysis.

System Parameters
Mass m1.0 kg
Spring stiffness k100 N/m
Damping ratio ζ0.10
Drive frequency f_d1.59 Hz
Presets
Resonance Stats
1.59 Hz
Natural freq. fₙ
5.0
Q factor
5.05
Amplitude ratio
0.32 Hz
Bandwidth Δf

Forced Vibration Amplitude

$$X = \frac{F_0/k}{\sqrt{(1-r^2)^2 + (2\zeta r)^2}}$$

$r = \omega/\omega_n$ (frequency ratio)
Q factor: $Q = 1/(2\zeta)$
Natural frequency: $\omega_n = \sqrt{k/m}$

What is Resonance?

🧑‍🎓
What exactly is resonance? I hear it can make bridges collapse, but the simulator just shows a wiggling mass and a graph.
🎓
Basically, it's when a system vibrates with maximum amplitude because you push it at just the right frequency. In this simulator, the "Drive frequency" slider controls how fast you push. When it matches the system's natural frequency—which depends on the Mass and Stiffness you set—the amplitude spikes. Try setting damping (ζ) very low and slide the drive frequency near the peak to see a huge response.
🧑‍🎓
Wait, really? So the damping ratio (ζ) just controls how tall and pointy that spike is? What's the "Q factor" number that pops up?
🎓
Exactly! The damping ratio tells you how much energy is lost per cycle. The Q factor, or Quality factor, quantifies the "sharpness" of the resonance peak. It's calculated as $Q = 1/(2\zeta)$. A high Q (low ζ) means a very tall, narrow peak—the system "rings" for a long time. In practice, try moving the ζ slider from 0.01 to 0.5 and watch the peak get lower and wider. The bandwidth shown is the frequency range around resonance where the vibration is strong.
🧑‍🎓
So if I'm designing something, I want to avoid resonance, right? But sometimes engineers seem to use it, like in musical instruments.
🎓
Great point! It's a double-edged sword. For a bridge or a turbine blade, you absolutely must ensure its natural frequency (which you can calculate here with $\omega_n = \sqrt{k/m}$) is far from any driving frequency, like wind vortices. But for a radio tuner or a guitar, you *want* a high-Q resonance to pick out or amplify a specific frequency. The phase lag curve in the simulator shows how the vibration timing shifts relative to the driving force, which is also crucial for control systems.

Physical Model & Key Equations

The core equation governing the steady-state amplitude X of a damped, driven harmonic oscillator is shown below. It tells you how much the mass moves for a given driving force.

$$X = \frac{F_0/k}{\sqrt{(1-r^2)^2 + (2\zeta r)^2}}$$

$X$: Vibration amplitude [m]
$F_0$: Amplitude of the driving force [N]
$k$: Spring stiffness [N/m]
$r$: Frequency ratio $r = \omega / \omega_n$
$\zeta$: Damping ratio (dimensionless)
The denominator gets smallest when $r \approx 1$ (resonance), making $X$ largest, especially if $\zeta$ is small.

These related equations define the system's inherent properties and the sharpness of its resonance.

$$\omega_n = \sqrt{\frac{k}{m}}\quad \quad Q = \frac{1}{2\zeta}$$

$\omega_n$: Natural angular frequency [rad/s]. Set by mass (m) and stiffness (k) in the simulator.
$Q$: Quality factor. A single number for resonance sharpness. High Q = low damping = narrow bandwidth.
The bandwidth $\Delta \omega$ is approximately $\omega_n / Q$, which you can observe directly on the frequency response graph as you change $\zeta$.

Real-World Applications

Structural Engineering & Earthquake Design: Buildings have natural frequencies based on their mass and stiffness. Engineers use damping devices (like tuned mass dampers) to increase ζ and lower Q, preventing dangerous resonance during earthquakes or strong winds. The simulator's low ζ values (~0.02) mimic lightly damped steel frames.

Automotive Suspension Tuning: A car's suspension is a spring-mass-damper system. Engineers tune the damping ratio (ζ) to be near 0.2–0.3 for a balance of comfort (isolating road bumps) and handling (keeping wheels in contact with the road). The phase lag plot helps understand wheel response timing.

Electronics & Filter Design: Resonant circuits (RLC circuits) are mathematically identical to this mechanical model. High-Q circuits are used in radios to select a specific station frequency from the airwaves, while low-Q, broad-bandwidth filters are used for digital signal processing.

Musical Instruments & Acoustics: The body of a guitar or violin is designed to have high-Q resonances at specific frequencies to amplify sound beautifully. Conversely, microphone and speaker designers sometimes aim for low Q (high damping) to get a "flat" frequency response without coloration.

Common Misconceptions and Points to Note

When you start using this simulator, there are a few points that are easy to misunderstand. First, you might think "the resonant frequency is determined solely by the spring constant", but in reality, it's based on the natural frequency $\omega_n = \sqrt{k/m}$, which is determined by the combination with mass. For example, if you double the stiffness of the spring but also double the mass simultaneously, the resonant frequency remains unchanged.

Next, the idea that "setting the damping ratio ζ to zero results in infinite vibration". Theoretically, that's true, but in the real world, friction and air resistance always exist, so a system with ζ=0 does not exist. In practical engineering when analyzing metal structures, estimating this "invisible damping" can be quite challenging. When using materials not listed in catalogs, you need to infer values from similar materials or measure them through experiments.

Also, make sure you firmly grasp the meaning of the graph's vertical axis, "Amplification Factor". This indicates how many times the static displacement ($F_0/k$) is multiplied. For instance, even if the amplification factor reads 10, the actual displacement can be minuscule if the external force $F_0$ is small. To assess the "danger" of resonance, you need to look at both this amplification factor and the magnitude of the actual applied force. Don't get overly excited or worried just by looking at the simulation result numbers.

Related Engineering Fields

The concept of this single-degree-of-freedom vibration system forms the foundation for various engineering fields, not just CAE. First is Acoustical Engineering. In speaker and musical instrument design, this resonance curve directly determines the frequency response (which sounds are amplified). By adjusting the damping ratio, engineers control the "clarity" and "sustain" of the sound.

It's also deeply related to Control Engineering. In position control for robot arms or precision stages, mechanical resonant frequencies limit the control system's bandwidth. The Bode plot of a "second-order system" found in control textbooks is essentially the same as the phase lag graph in this simulator. How to suppress the resonance peak (= how to introduce damping) becomes key to achieving stable and fast control.

Furthermore, it's essential knowledge in Earthquake Engineering and Building Structures. Buildings are modeled by considering the structure itself as mass, columns as springs, and dampers as damping. Designs aim to prevent earthquake shaking (input frequency) from approaching the building's natural period (resonant frequency), or conversely, seismic isolation structures intentionally shift the resonance point to absorb energy. The intuition you gain playing with this tool becomes the foundation for considering the safety of large structures.

For Further Learning

Once you're comfortable with this simulator, we recommend learning about "Multi-Degree-of-Freedom Vibration Systems". Real-world structures possess multiple resonant frequencies (modes). For example, an automobile body has countless resonance points: global bending modes, torsional modes, local door vibrations, etc. In CAE software, modal analysis calculates all these resonant frequencies and their vibration patterns (mode shapes) at once.

Mathematically, understanding matrices and eigenvalue problems becomes essential. The single-degree-of-freedom equation of motion $m\ddot{x}+kx=0$ becomes a matrix form for multiple degrees of freedom: $[M]\{\ddot{x}\} + [K]\{x\} = \{0\}$. The eigenvalues that appear here correspond to the squared natural frequencies $\omega_n^2$ of each mode, and the eigenvectors correspond to the mode shapes. Tracing how the "$\omega_n = \sqrt{k/m}$" you learned with this tool extends into the world of matrices will significantly deepen your understanding.

As a next step directly connected to practical work, try creating a simple beam or plate model in CAE software (e.g., ANSYS or Abaqus) and actually running a modal analysis. If you can visualize the multiple resulting modes as a "superposition of individual resonance curves" learned in this simulator, then your first step into vibration analysis is a success.