This code uses the formulas from A. B. Constantine, Antenna Theory: Analysis and Design. Wiley Interscience, 2005 to generate planar antenna gains.
Table with calculated gains and equations are provided in Chukhno, N., Chukhno, O., Moltchanov, D., Molinaro, A., Gaidamaka, Y., Samouylov, K., ... & Araniti, G. (2021). Optimal Multicasting in Millimeter Wave 5G NR with Multi-beam Directional Antennas. IEEE Transactions on Mobile Computing.