Antenna#
- class ansys.stk.core.stkobjects.Antenna#
Bases:
ISTKObject
,ILifetimeInformation
,IDisplayTime
Class defining the antenna object.
Overview#
Do not use this method, as it is deprecated. Use ModelComponentLinking on Antenna instead. Sets the current antenna model by name. |
|
Get a value indicating whether the specified type can be used. |
Do not use this property, as it is deprecated. Use ModelComponentLinking on Antenna instead. Gets an array of supported model names. |
|
Do not use this property, as it is deprecated. Use ModelComponentLinking on Antenna instead. Gets the current antenna model. |
|
Get the antenna orientation. |
|
Refraction method, a member of the SensorRefractionType enumeration. |
|
Return an array of valid choices. |
|
Get a refraction model. |
|
Flag controls whether refraction is applied when computing relative position in Access. |
|
Get the 3D Graphics properties for the antenna. |
|
Get the 2D Graphics properties for the antenna. |
|
Get the object RF environment settings. |
|
Get the object laser environment settings. |
|
Get the link/embed controller for managing the antenna model component. |
Examples#
Modify Antenna Graphics
# Antenna antenna: Antenna object
contours = antenna.graphics.contour_graphics
contours.set_contour_type(AntennaContourType.GAIN)
contours.show = True
for i in range(-30, 30, 5):
contours.contour.levels.add(i)
antenna.graphics_3d.show_contours = True
antenna.graphics_3d.volume_graphics.show = True
Modify Antenna Orientation and Position
# Antenna antenna: Antenna object
antOrientation = antenna.orientation
antOrientation.assign_az_el(0, -90, AzElAboutBoresight.ROTATE)
antOrientation.position_offset.x = 0.0 # m
antOrientation.position_offset.y = 1 # m
antOrientation.position_offset.z = 0.25 # m
Modify Antenna Refraction
# Antenna antenna: Antenna object
antenna.use_refraction_in_access = True
antenna.refraction = SensorRefractionType.ITU_R_P834_4
refraction = antenna.refraction_model
refraction.ceiling = 5000 # m
refraction.atmosphere_altitude = 10000 # m
refraction.knee_bend_factor = 0.2
Modify Antenna Model Type
# Antenna antenna: Antenna object
antenna.set_model("Dipole")
antennaModel = antenna.model
antennaModel.design_frequency = 15 # GHz
antennaModel.length = 1.5 # m
antennaModel.length_to_wavelength_ratio = 45
antennaModel.efficiency = 85 # Percent
Create a New Antenna Object
# ISTKObject satellite: STK object
antenna = satellite.children.new(STKObjectType.ANTENNA, "MyAntenna")
Import detail#
from ansys.stk.core.stkobjects import Antenna
Property detail#
- property Antenna.supported_models: list#
Do not use this property, as it is deprecated. Use ModelComponentLinking on Antenna instead. Gets an array of supported model names.
- property Antenna.model: IAntennaModel#
Do not use this property, as it is deprecated. Use ModelComponentLinking on Antenna instead. Gets the current antenna model.
- property Antenna.orientation: IOrientation#
Get the antenna orientation.
- property Antenna.refraction: SensorRefractionType#
Refraction method, a member of the SensorRefractionType enumeration.
- property Antenna.refraction_model: IRefractionModelBase#
Get a refraction model.
- property Antenna.use_refraction_in_access: bool#
Flag controls whether refraction is applied when computing relative position in Access.
- property Antenna.graphics_3d: AntennaGraphics3D#
Get the 3D Graphics properties for the antenna.
- property Antenna.graphics: AntennaGraphics#
Get the 2D Graphics properties for the antenna.
- property Antenna.rf_environment: ObjectRFEnvironment#
Get the object RF environment settings.
- property Antenna.laser_environment: ObjectLaserEnvironment#
Get the object laser environment settings.
- property Antenna.model_component_linking: IComponentLinkEmbedControl#
Get the link/embed controller for managing the antenna model component.
Method detail#
- Antenna.set_model(self, model_name: str) None #
Do not use this method, as it is deprecated. Use ModelComponentLinking on Antenna instead. Sets the current antenna model by name.
- Antenna.is_refraction_type_supported(self, model: SensorRefractionType) bool #
Get a value indicating whether the specified type can be used.
- Parameters:
model :
SensorRefractionType
- Returns: