Daniel Duarte

Beam vibration and cavity acoustics: two interactive simulations

ME 541 was my favorite class at Duke. These two simulations come from my homework derivations there. Move the sliders or tap the structure, and the natural frequencies and motion are solved again in your browser.

A beam with a mass and spring

A pinned beam carries a point mass, with a spring from the same point to the ground. The mass lowers the frequencies and the spring raises them, and the amount depends on where the attachment sits relative to each mode's shape.

100
1.00
0.50

 

Solved live in your browser from the modal equations, with m = l = EI = 1. Dashed lines are the bare beam, and the dots mark the current K.

Try three things. At ξ = 0.5, the flat curve at 39.5 is a mode with a node at midspan, so the attachment never moves and K has no effect on it. Raise K, and the first mode climbs through that flat curve near K = 2,550, heading for about 61.7: the stiff spring acts as a pin in the middle of the beam, and each half then behaves as a pinned-clamped span. Then move ξ away from the center and sweep K again, and the curves approach each other and veer apart instead of crossing.

Equations

With beam modes sin(nπξ), generalized mass Mnn = ½ and bare-beam frequencies ωn = (nπ)², the energies are:

T = ½ Σ Mnn q̇n2 + ½ M ż2,   V = ½ Σ Mnn ωn2 qn2 + ½ K z2,   z = Σ qn sin(nπξs)

The constraint ties the mass and spring to the beam. Lagrange's equations then give a symmetric eigenproblem, which the page solves with sixteen modes each time a slider moves. Eliminating the multiplier gives the characteristic equation:

1 / (K − Mω2) + Σ sin2(nπξs) / [Mnn(ωn2 − ω2)] = 0

A flexible panel on an air cavity

A panel on an aircraft or rail car often closes a compartment. The trapped air and the panel affect each other: the panel's motion drives sound in the cavity, and the cavity's pressure pushes back on the panel.

30 cm
1.0 mm

 

A 60 cm wide panel in air, solved live in your browser. Motion is slowed and exaggerated so you can see it.

At the default setting, the panel alone would ring at about 7 Hz. With the cavity behind it, that first bending shape moves to about 51 Hz, because it changes the enclosed volume and has to compress the air. The second bending shape doesn't change the volume, so it barely moves, and it becomes the lowest mode of the system. Make the cavity shallower and the air spring gets stiffer. Make the panel thicker and the panel takes over.

Equations

In the cavity, the velocity potential obeys the wave equation with hard walls. Separating variables gives the cavity's modes and tones:

∇2φ − (1/c2) φtt = 0,   Φnm = cos(nπx/a) cos(mπz/d),   ωnm = cπ √[(n/a)2 + (m/d)2]

My homework stopped at those modes. This page adds the flexible panel at z = d, where the air's motion has to match the panel's. Expanding the pressure in Φnm and the panel in sine modes gives:

mr (q̈r + Ωr2 qr) = Σ Cir Pi,   P̈i + ωi2 Pi = −(ρ0c2/Λi) Σ Cir q̈r

These equations aren't symmetric as written. Rewriting the air in terms of a displacement potential makes them symmetric, so frequencies stay real and the page can solve them with a standard symmetric routine. The uniform pressure mode has zero frequency, and it survives only as the air spring on the panel.

Verification

These checks run the same code as this page, in checks/verify_vibration.js, along with a separate finite-element model.

CheckResult
Beam, K = 100, M = 1, ξ = 0.5, against 200 Hermite beam elements9.957, 39.478, 67.995 vs. 9.957, 39.478, 67.994
Beam, K = 100, M = 1, ξ = 0.3, against 200 Hermite beam elements9.944, 30.061, 86.736 vs. 9.944, 30.061, 86.736
Bare beamRecovers (nπ)² exactly
Very stiff spring at midspanModes tend to 39.478 and 61.67, a pinned-pinned and a pinned-clamped half span
Panel with no airRecovers the in-vacuo panel frequencies
Very heavy panelFirst tone tends to the rigid box value, πc/a
Uniform pressure onlyMatches the air-spring formula
Time integration of the original, unsymmetric equations165.962 rad/s vs. 165.961 rad/s from the symmetric form
More cavity terms (from 8 × 4 to 16 × 8)The two lowest frequencies shift by under 0.3%

The models are linear and two-dimensional, with simple support and rigid walls, so they're for building intuition rather than predicting a real panel. Light damping is added only so that a strike fades out.