create_sbr_antenna#

Hfss.create_sbr_antenna(antenna_type='Conical Horn', target_cs=None, units=None, parameters=None, use_current_source_representation=False, is_array=False, custom_array=None, name=None)[source]#

Create a parametric beam antennas in SBR+.

Parameters:
antenna_typestr, SbrAntennas.ConicalHorn

Name of the antennas type. The enumerator SbrAntennas can also be used. The default is "SbrAntennas.Conical Horn".

target_csstr, optional

Target coordinate system. The default is None, in which case the active coodiante system is used.

unitsstr, optional

Model units to apply to the object. The default is None, in which case the active modeler units are applied.

parametersdict, optional

Dictionary of parameters. The default is None.

use_current_source_representationbool, optional

Whether to use the current source representation. The default is False.

is_arraybool, optional

Whether to define a parametric array. The default is False.

custom_arraystr, optional

Custom array file. The extensions supported are ".sarr". The default is None, in which case parametric array is created.

namestr, optional

Name of the 3D component. The default is None, in which case the name is auto-generated based on the antenna type.

Returns:
ansys.aedt.core.modules.boundary.NativeComponentObject

NativeComponentObject object.

References

>>> oEditor.InsertNativeComponent

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss(solution_type="SBR+")
>>> parm = {"Polarization": "Vertical"}
>>> par_beam = hfss.create_sbr_antenna(hfss.SbrAntennas.ShortDipole, parameters=parm, name="TX1")
>>> custom_array = "my_file.sarr"
>>> antenna_array = hfss.create_sbr_antenna(hfss.SbrAntennas.ShortDipole, custom_array=custom_array)
>>> antenna_array_parametric = hfss.create_sbr_antenna(hfss.SbrAntennas.ShortDipole, is_array=True)