To plot a gain versus frequency plot in CST Studio while designing an antenna, you can follow these steps:
Create a new far-field monitor in CST Studio. To do this, go to Field Monitors > New Field Monitor. In the Type drop-down menu, select Far Field.
In the Far Field dialog box, select Transient broadband as the Frequency type.
Click Apply and then OK.
Run your simulation.
Once the simulation is complete, go to Results > Post Processing > Far Field.
In the Far Field dialog box, select the far-field monitor that you created in step 1.
In the Quantity drop-down menu, select Total Gain.
Click Plot.
CST Studio will generate a plot of the gain versus frequency for your antenna.
Here are some additional tips for plotting gain versus frequency in CST Studio:
Make sure that your far-field monitor is located in a region where the far-field approximation is valid. This means that the monitor should be located at a distance from the antenna that is greater than or equal to 2D²/λ, where D is the largest dimension of the antenna and λ is the wavelength of the radiation.
If you are interested in plotting the realized gain of your antenna, you can use the Realized Gain quantity instead of the Total Gain quantity in step 7. The realized gain takes into account the losses in the antenna feed, such as the impedance mismatch between the antenna and the feed, and the losses in the feed itself.
You can also use CST Studio to plot the gain versus frequency plot for different antenna orientations. To do this, simply rotate the antenna in the CST Studio design window and then repeat steps 5-8.