Skip to content
John Hodge

← Projects

Phased Array Antenna Model

Problem

Phased-array pattern analysis is easy to write slowly and hard to write fast. A naive element-by-element loop bogs down once you sweep steering angles or array sizes, which makes interactive exploration painful.

Approach

This is a Python library for antenna pattern modeling that vectorizes the array factor and element computations with NumPy. It handles the parts that matter in practice (mutual coupling, phase quantization, steering across multiple beams) and ships a Streamlit app so you can sweep parameters and watch the pattern update.

Result

The vectorized path runs roughly 125× faster than the element-by-element version in the repo’s benchmarks, which is the difference between a static plot and an interactive one. The live demo lets you steer the beam and change array geometry in the browser; the code is on GitHub.

View code Live demo