14.10Example of use
We will execute horn4.py in .../QW-V2D/Standard/Antennas/Reflant/parabolic hyperbolic refl.pro - this project already contains source port, NTFBox and MURBox; also, the postprocessing is defined.
Figure 8: Corrugated horn antenna with default dimensions.
After the macro execution, the corrugated horn will appear at the position specified in the code - at the point (0,0). Subsequently, we will adjust the dimensions of the horn by modifying the QW-Parameters and rerun the macro. We will adapt the input radius of the horn to the waveguide hole radius parameter (the dimensions of the source port are adjusted to wg_r). Furthermore, we can also modify the dimensions of the reflectors – in this case, the changes will be immediately noticeable.
Figure 9: Corrugated horn with the modified values of the QW-Parameters after reexecuting the script
Figure 10: In the Mesh Settings, we can see that the mesh will conform to the metal geometry (Snap to Metal Geometry boxes are checked). Consequently, upon reexecuting the macro, we observe that it has been recalculated and the number of cells has changed.