create_sbr_radar_from_json#
- Hfss.create_sbr_radar_from_json(radar_file, name, offset=None, speed=0.0, use_relative_cs=False, relative_cs_name=None)#
Create an SBR+ radar setup from a JSON file.
Example of input JSON file:
{ "name": "Example_1Tx_1Rx", "version": 1, "number_tx":"1", "number_rx":"1", "units":"mm", "antennas": { "tx1": { "antenna_type":"parametric", "mode":"tx", "offset":["0" ,"0" ,"0"], "rotation_axis":null, "rotation":null, "beamwidth_elevation":"10deg", "beamwidth_azimuth":"60deg", "polarization":"Vertical" }, "rx1": { "antenna_type":"parametric", "mode":"rx", "offset":["0" ,"1.8" ,"0"], "rotation_axis":null, "rotation":null, "beamwidth_elevation":"10deg", "beamwidth_azimuth":"60deg", "polarization":"Vertical" } } }
- Parameters:
- radar_file
str
Path to the directory with the radar file.
- name
str
Name of the radar file.
- offset
list
,optional
Offset relative to the global coordinate system.
- speed
float
,optional
Radar movement speed relative to the global coordinate system if greater than
0
.- use_relative_csbool,
optional
Whether to use the relative coordinate system. The default is
False
.- relative_cs_name
str
Name of the relative coordinate system to link the radar to. The default is
None
, in which case the global coordinate system is used.
- radar_file
- Returns:
ansys.aedt.core.modeler.actors.Radar
Radar class object.
References
AEDT API Commands.
>>> oEditor.CreateRelativeCS >>> oModule.SetSBRTxRxSettings >>> oEditor.CreateGroup