Visualization of Results

The simulation results can be viewed and analyzed in many ways using Matlab/Octave functions. Here are some examples.

Time Domain
Here is an example of the voltage waveforms in the rectangular waveguide tutorial which has a section of waveguide with ports at each end. After the simulation is complete, the plot frequency range is defined and is run.

The time values and the total voltage values are extracted from the data structures for the ports and plotted. The blue curve is the active port and the red curve shows the wave incident on the second port.

Frequency Domain
Frequently in microwave engineering we want to view the s-parameters, just as we would with a vector network analyzer. Here is an example taken from the rectangular waveguide tutorial. After the simulation is complete, the plot frequency range is defined and is run. (Note that it should only be necessary to run once, and then numerous plots can be made from the port data structure.)

Next, components of the port structure can be used in calculations and the results plotted. Here is the calculation of s11 and s21 using incident and reflected frequency-domain voltages:

And the curves plotted in dB:

The reflection coefficient can also be plotted on a polar plot (Smith Chart). Note that in this example that the radius of the outer circle is much less than 1 because the waveguide is well matched and auto-scaling zooms into the centre of the plot.

Radiation Patterns
For antennas, radiation patterns are an important property to plot. Assuming that the NF2FF box has been set up in the simulation, after the simulation the  function transforms the near-field data at frequency  to far-field cuts over the range  on cuts (in this case 0, 45, and 90 degrees).

The openEMS function  plots the radiation patterns.

However,  plots |E| which has the co- and cross-polarized components of the electric field combined, and antenna engineers often plot the two polarization responses as separate curves. Part of the structure returned by  are orthogonal field components aligned in the phi direction and the theta direction. These components can be extracted with:

Conversion to co and cross is straightforward:

These can be plotted on a single graph with solid lines representing the co-polarized patterns and dashed lines the cross-polarized patterns.

(In this example  to specify the three phi-cuts.)

A modified version of  plots the co- and cross-polarized patterns:.