Antenna Simulator

Hello, I am a telecommunications engineering student and I am trying to develop an antenna simulator in Unity. The main idea is for the user to be able to design an antenna and see how its characteristics vary in real-time, such as its radiation pattern. Is there any material that can help me develop this or at least a starting point? Any suggestions are welcome.

1 Like

Theres plenty of assets on the store to use in the actual simulator or scene, but as far as the creation of an antenna and radiation pattern detection, it will all have to be custom coded.

If you’re familiar with your antenna’s underlying math, there is no big deal to visualize it all in unity. The antenna editor is one thing, probably, it will need some procedural mesh generation. There is a lot of tutorials out there. The radiation pattern… It depends on how you want it to be represented. If you want it to be a flat diagram you can draw anything into texture, which you can apply on any object, or blit it directly onto the screen. If it supposed to be a 3D shape then also procedural mesh generation will do.

Thank you very much for your help guys. I found a library on GitHub that will allow me to perform the necessary calculations for the simulation. Here is part of the progress I have made (the figure in the image is the far-field radiation pattern of a simple straight dipole)

1 Like

So how the project coming along?. Never seen anything like this done with Unity, best of luck, keep us updated…

could you please send me the library GitHub link? I am trying to visualize the antenna pattern using realistic measured data in Unity instead of in MatLab. I have data points consists of theta, phi angles as well as power values. Do you have any commends about this idea?

Here is the link to the GitHub project “https://github.com/tmolteno/necpp”. I have actually encountered some issues due to time constraints, so I ended up using MATLAB to obtain the measurements and importing that data into Unity for visualization. At the moment, I am only struggling with processing the data from a .json file that I am importing into my project using JsonUtility. I must be doing something wrong because I can’t seem to get it to work, so that’s what I’m currently working on. If you can help me with this, I would greatly appreciate it.

JsonUtility is quite limited what it can parse…
see supported types,

try newtonsoft json for unity.

Hello again, here I leave you with an update on the progress of the project. It is now possible to manipulate the geometry of a dipole and see how it affects the radiation pattern. Greetings to everyone and have a good day.

9414470–1318766–Antenna Simulator test dipolo.rar (3.11 MB)

better upload video to youtube/vimeo/twitter or any other site, easier to view :slight_smile: