Overview

For one of my technical projects, I created an Antenna Pattern Interpolation Tool (named “PIE”) which was an open source recreation of a function inside MATLAB’s Antenna Toolbox. However, when developing it, I used antenna patterns provided by UniFi for their commercial routers. These only had the principal 2D cuts, so I wasn’t able to calculate total error by comparing 3D patterns before and after interpolation.

What I’m setting out to do here is export the principal 2D slices of an antenna pattern from HFSS, run PIE to get the reconstructed 3D pattern, and then compare that with the 3D antenna pattern exported from HFSS. This would give me a more robust way to test how the tool functions looking at total error.

  • All gain patterns are for the Microstrip Patch Antenna I designed.
  • Note: Interpolation was performed using default weights (, )

Exporting from HFSS

First, I exported the 2D and 3D gain plots for the antenna. This data was exported from HFSS in the form of a CSV, but representative images are displayed below:

2D ElevationPlot Patch

Fig. 1. Patch antenna gain plot, elevation cut, exported from HFSS.

2D AzimuthPlot Patch

Fig. 2. Patch antenna gain plot, azimuthal cut, exported from HFSS.

3D PolarPlot Patch

Fig. 3. Patch antenna 3D gain plot, exported from HFSS.

2D Gain Contour Plot Patch

Fig. 4. Patch antenna 2D gain heatmap, exported from HFSS.

Interpolation Output

Some minor reformatting was required to convert the CSVs for the 2D polar graphs into a single .ant file. I then used this file as an input to generate the following 3D graphs with PIE:

Fig. 5. Patch antenna reconstructed 3D pattern, normalized gain, summing algorithm.

Fig. 6. Patch antenna reconstructed 3D pattern, normalized gain, approximation algorithm.

Fig. 7. Patch antenna reconstructed 3D pattern, normalized gain, hybrid algorithm.

Visual Error Analysis

Now that I had the CSVs for both the 3D pattern from HFSS and the 3D pattern from PIE, I used a script to calculate and visualize the error.

Summing Algorithm

Fig. 8. Patch antenna error plots, summing algorithm.

  • Main lobe has been reconstructed in the low region (), however, with noticeable angular spreading. We can consider this degradation relatively negligible given that the absolute error graph is predominantly blue in this region, indicating low error (< 5 dB).

  • The two nulls have been reconstructed at the correct position (approx. and ). However, we can see that the position of these nulls has been severely degraded.

  • As a result of the failure to reconstruct the null structure, large portions of the high- region () are dominated by severe error (red and dark orange).

Approximation Algorithm

Fig. 9. Patch antenna error plots, approximation algorithm.

  • Main lobe has been successfully reconstructed with less angular spreading.

  • Nulls have been reconstructed with even more severe degradation in -axis spread.

Hybrid Algorithm

Fig. 10. Patch antenna error plots, hybrid algorithm.

  • Same fundamental pattern, successful main lobe reconstruction, failed null reconstruction.

  • We can note that -axis spread is worse than the summing algorithm but better than the approximation algorithm.

Comparison of Algorithms

  • In terms of total error, we find that the approximation algorithm achieved the best performance overall (MSE: 74.11, RMSE: 8.61 dB), followed by the hybrid algorithm (MSE: 88.67, RMSE: 9.42 dB), and then the summing algorithm (MSE: 107.98, RMSE: 10.39 dB). This is interesting because while it is intuitive to assume that the summing algorithm would perform worse, the tradeoffs between the approximation and hybrid algorithms are much more subtle.

  • From the given patterns, we find that all algorithms exhibit a negative mean bias. This indicates they have a systematic behavior of underestimating the gain.

    • However, we find that the approximation algorithm retained the least negative bias (-6.97 dB), followed by the hybrid algorithm (-7.95 dB), then the summing algorithm (-8.81 dB).
    • This matches exactly what we expect from the literature: that the approximation algorithm is relatively the most “optimistic”, the summing algorithm is the most “conservative”, and the hybrid algorithm is somewhere in between depending on the weights used.