S5 · Lesson 37 · Array lab
Planar-array directivity by integration, scan loss, beam squint by search and failed elements, in Python
Lessons 32 to 34 gave rules of thumb for arrays: directivity from aperture area, a beam that broadens as when scanned, squint from phase shifters, and gain that degrades gracefully when elements fail. This lab checks each one the hard way: it integrates a planar array's pattern over the whole sphere to get its directivity, measures how that falls with scan angle, finds a squinted beam's peak by searching the pattern, and computes what failed elements cost.
- The curve is an idealized phased array's scan loss: its projected aperture shrinks as , so its directivity falls by dB.
- At 60° the projected aperture is half: 3 dB lost, before the elements' own patterns take more.
- The lab integrates the exact array factor to check this.
Predict
An 8 × 8 array of isotropic elements spaced λ/2 apart radiates equally toward both faces. Its area is 16λ². About what broadside directivity does it have?
An aperture radiating into one half-space has , but isotropic elements with no ground plane radiate equally behind, splitting the power between two beams: . Integrating the array factor over the sphere gives 94, the shortfall coming from the array's finite size and its edges.
Name it
What the lab computes
- Planar array factor: for an grid with spacings , (in wavelengths) steered to , the pattern is the product of two linear factors in and , each .
- Directivity by integration: , with the integral as a sum over a θ–φ grid weighted by sin θ.
- Squint by search: with phase shifters set for at , the pattern at has ; search θ for its peak.
- Failed elements: if a fraction p of elements fail open, the coherent peak field falls to (1 − p) of its value and the radiated power to (1 − p): the EIRP drops by dB and the directivity by .
Check
Write planar_directivity(Nx, Ny, dx, dy, th0_deg=0, n=200): the directivity of a planar array of isotropic elements steered to (θ₀, φ = 0), by summing over n steps in θ and 2n in φ.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write squint_peak(N, d, th0_deg, r): the direction (degrees, searched in 0.01° steps from −90° to 90°) of the peak of an N-element linear array spaced d wavelengths, phase-steered to th0 at its design frequency, at r times that frequency.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write failure_loss_db(p): return (EIRP loss, directivity loss) in dB when a fraction p of an array's elements fail open; and simulate_failures(N, p, trials, seed): the average EIRP loss in dB when each of N elements fails independently with probability p, computed from the number that survive.
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 phased array's directivity fall as it scans away from broadside?
An array's directivity depends on the size of its aperture as seen from the direction of the beam. When the beam is steered to an angle θ₀ from broadside, the array is viewed obliquely, and its projected width in that direction shrinks by cos θ₀. A smaller effective aperture means a wider beam and less directivity, in proportion to cos θ₀. On top of that, each element's own pattern usually falls away from broadside and the elements' coupling changes the impedance, so real arrays lose more than the projection alone predicts and are rarely scanned beyond about 60°.