This is a MatLab program I wrote to use a genetic algorithm to modify the parameters of a antenna and eventually “give birth” to a “best known case” antenna based upon forward gain, etc. Currently, it uses NEC2 (Numerical Electromagnetics Code 2) as the processing engine. It writes out a text file to disk, then calls NEC2 to process that file. I am in the process of entirely rewriting a combination of NEC and this program in a C++ framework to be more extensible and robust.
Click the image above or click here to download the MatLab code.
The program was written specifically to model a helical antenna, which looks like this: