S1620 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S16 · Lesson 20 · Radiation and localization lab

A baffled piston's exact on-axis pressure with its near-field maxima, the sidelobes of a steered line array found by scanning, a fractional delay recovered by cross-correlation and parabolic interpolation, and a source located from time differences by Gauss–Newton

Lessons 15 to 19 gave radiation and reception in their far-field, ideal forms. Real measurements happen near sources, arrays have sidelobes that matter, delays fall between samples, and a position comes from several noisy delays at once. In this lab you'll compute a piston's pressure right down to its face, an array's worst sidelobe, a sub-sample delay between two recorded signals, and a source's position from four microphones.

  • The curve is the on-axis pressure amplitude of a baffled piston of radius a, relative to 2ρcU, against distance in units of a2/λ, for the ka on the slider.
  • Close in, the pressure oscillates between zero and its maximum as contributions from the center and edge interfere; the last maximum lies near a2/λ, and beyond it the pressure falls as 1/r.
  • Measurements meant to represent the far field must be taken well beyond that last maximum.

Predict

A 10 cm-radius piston radiates 3430 Hz (λ = 10 cm). Where along the axis is the last pressure maximum?

Name it

What the lab computes

  • Piston on axis: |p|=2ρcU|sin⁡[k2(r2+a2−r)]|, exact at every distance; far away it tends to ρcUka2/2r.
  • Arrays: the normalized array factor of N elements with spacing d steered to θs, |sin⁡(Nu/2)/(Nsin⁡(u/2))| with u=kd(sin⁡θ−sin⁡θs); the highest sidelobe is found by scanning angles outside the main lobe (|u|≥2π/N) and outside any grating lobes.
  • Delays: the integer lag that maximizes the cross-correlation ∑ixiyi+l, refined by a parabola through the peak and its two neighbors.
  • Positions: given microphones at known positions and the measured delays of each relative to the first, find (x, y) minimizing the squared mismatch between predicted and measured range differences by Gauss–Newton iterations from a starting guess.

Check

Write piston_axis(a, f, U, r), the exact on-axis pressure amplitude in air (ρ = 1.21 kg/m³, c = 343 m/s).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write array_factor(N, kd, st, th) (angles in radians) and max_sidelobe(N, kd, st=0) in dB, scanning 20,000 angles.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write xcorr_delay(x, y, maxlag=20): the delay of y relative to x in samples, with parabolic interpolation.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write locate(mics, tdoa, c=343.0, guess=(0.0, 0.0)): the 2D source position from delays of microphones 2, 3, … relative to microphone 1, by Gauss–Newton.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a piston's on-axis pressure oscillate near its face but fall smoothly as 1/r far away?