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

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 1/cos⁡θ 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 cos⁡θ0, so its directivity falls by 10log10⁡cos⁡θ0 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?

Name it

What the lab computes

  • Planar array factor: for an Nx×Ny grid with spacings dx, dy (in wavelengths) steered to (θ0,ϕ0), the pattern is the product of two linear factors in ux=sin⁡θcos⁡ϕ−sin⁡θ0cos⁡ϕ0 and uy=sin⁡θsin⁡ϕ−sin⁡θ0sin⁡ϕ0, each sin⁡(Nπdu)/sin⁡(πdu).
  • Directivity by integration: D=4π|AF|peak2/∮|AF|2dΩ, with the integral as a sum over a θ–φ grid weighted by sin θ.
  • Squint by search: with phase shifters set for θ0 at f0, the pattern at f=rf0 has ψ=2πd(rsin⁡θ−sin⁡θ0); 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 20log10⁡(1−p) dB and the directivity by 10log10⁡(1−p).

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 |AF|2sin⁡θ 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?