Aircraft#

class ansys.stk.core.stkobjects.Aircraft#

Bases: ISTKObject, ILifetimeInformation, IGreatArcVehicle, IProvideSpatialInfo

Aircraft object.

Overview#

graphics

Get the aircraft’s 2D Graphics properties.

graphics_3d

Get the aircraft’s 3D Graphics properties.

export_tools

Return the AircraftExportTools interface.

atmosphere

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

radar_clutter_map

Return the radar clutter map.

radar_cross_section

Return the radar cross sectoin.

laser_environment

Get the laser environment.

rf_environment

Get the RF environment.

lighting_maximum_step_terrain

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

lighting_maximum_step_central_body_shape

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

get_eoir_settings

Get the EOIR properties of the aircraft.

Examples#

Set the Attitude of the Aircraft

# Aircraft aircraft: Aircraft object
aircraft.attitude.basic.set_profile_type(AttitudeProfile.COORDINATED_TURN)

Add Array of Waypoints to Aircraft

# Aircraft aircraft: Aircraft object
route = aircraft.route
ptsArray = [[37.5378, 14.2207, 3.0480, 0.0772, 2], [47.2602, 30.5517, 3.0480, 0.0772, 2]]
route.set_points_smooth_rate_and_propagate(ptsArray)
# Propagate the route
route.propagate()

Set the Great Arc Propagator and Add Individual Waypoints to an Aircraft

# Aircraft aircraft: Aircraft object
# Set route to great arc, method and altitude reference
aircraft.set_route_type(PropagatorType.GREAT_ARC)
route = aircraft.route
route.method = VehicleWaypointComputationMethod.DETERMINE_TIME_ACCELERATION_FROM_VELOCITY
route.set_altitude_reference_type(VehicleAltitudeReference.MEAN_SEA_LEVEL)
# Add first point
waypoint = route.waypoints.add()
waypoint.latitude = 37.5378
waypoint.longitude = 14.2207
waypoint.altitude = 5  # km
waypoint.speed = 0.1  # km/sec
# Add second point
waypoint2 = route.waypoints.add()
waypoint2.latitude = 47.2602
waypoint2.longitude = 30.5517
waypoint2.altitude = 5  # km
waypoint2.speed = 0.1  # km/sec
# Propagate the route
route.propagate()

Create a New Aircraft (on the current scenario central body)

# STKObjectRoot root: STK Object Model root
aircraft = root.current_scenario.children.new(STKObjectType.AIRCRAFT, "MyAircraft")

Import detail#

from ansys.stk.core.stkobjects import Aircraft

Property detail#

property Aircraft.graphics: AircraftGraphics#

Get the aircraft’s 2D Graphics properties.

property Aircraft.graphics_3d: AircraftGraphics3D#

Get the aircraft’s 3D Graphics properties.

property Aircraft.export_tools: AircraftExportTools#

Return the AircraftExportTools interface.

property Aircraft.atmosphere: Atmosphere#

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

property Aircraft.radar_clutter_map: IRadarClutterMapInheritable#

Return the radar clutter map.

property Aircraft.radar_cross_section: RadarCrossSectionInheritable#

Return the radar cross sectoin.

property Aircraft.laser_environment: PlatformLaserEnvironment#

Get the laser environment.

property Aircraft.rf_environment: IPlatformRFEnvironment#

Get the RF environment.

property Aircraft.lighting_maximum_step_terrain: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

property Aircraft.lighting_maximum_step_central_body_shape: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

property Aircraft.get_eoir_settings: IEOIR#

Get the EOIR properties of the aircraft.