17 Macro-based objects
This chapter presents objects with parameterized dimensions, such as various feeds and reflectors, which are defined using Python scripts. These objects can be imported into any QW-Modeller project by executing the macro that contains their source code. The Execute macro dialogue can be invoked using Macro−→Macros... command from the main menu.
Corrugated horn
The python script for this example is available in the Feeds folder in the QW-Modeller macros directory. The horn4.py script can be loaded using Macro®Macros... command from main menu. .../QW-Modeller/v2023x64/macros/Feeds/horn4.py
The dimensions of the corrugated horn corresponding to the variable names in QW Vars are presented below:
Horn waveguide
The python script for this example is available in the Feeds folder in the QW-Modeller macros directory. The waveguide.py script can be loaded using Macro®Macros... command from main menu.
The waveguide is defined by the following parameters:
• horn angle horn radius
• radius
• length
• port position
• thickness
Simple waveguide
The python script for this example is available in the Feeds folder in the QW-Modeller macros directory. The simple waveguide.py script can be loaded using Macro®Macros... command from main menu.
The waveguide is defined by the following parameters:
• radius
• length
• port position
• thickness
Parabolic reflector
The python script for this example is available in the Reflectors folder in the QW-Modeller macros directory. The parabolic refl.py script can be loaded using Macro®Macros... command from main menu.
This parabolic reflector is defined by the following parameters:
• Focal length
• Half angle
• Waveguide outer radius - determines the radius of the center hole
• Reflector thickness
This parabolic reflector model serves as an alternative to the parabolic_refl.QWpro, where users can modify the reflector dimensions by inputting values for the diameter and f/D ratio.
Hyperbolic reflector
The python script for this example is available in the Reflectors folder in the QW-Modeller macros directory. The hyperbolic refl.py script can be loaded using Macro®Macros... command from main menu. This hyperbolic reflector is drawn in such a way that its focal point is located at a distance of QW Vars.focal - QW Vars.dist refl from its vertex. Therefore, if a reflector with a focal length equal to the focal parameter is created at point (0,0), the coordinates of the foci of both reflectors will coincide. The focal parameter must be greater than the dist refl parameter.
This hyperbolic reflector is defined by the following parameters:
• Focal length
• Half angle
• Distance from (0,0)
• Reflector thickness
Flat hat reflector
The python script for this example is available in the Reflectors folder in the QW-Modeller macros directory. The flat hat.py script can be loaded using Macro®Macros... command from main menu.
The dimensions of the subreflector corresponding to the variable names in QW Vars are presented below:
Modified flat hat reflector
The python script for this example is available in the Reflectors folder in the QW-Modeller macros directory. The modified_flat_hat.py script can be loaded using Macro®Macros... command from main menu.
The dimensions of the subreflector corresponding to the variable names in QW Vars are presented below: