AtmosphereModelBasic#

class ansys.stk.core.stkobjects.aviator.AtmosphereModelBasic#

Class defining the basic atmosphere model.

Overview#

name

Get or set the name of the atmosphere model.

basic_model_type

Get or set the type of basic atmosphere.

use_non_standard_atmosphere

Opt whether to use non standard atmosphere conditions.

temperature

Get or set the sea-level temperature.

pressure

Get or set the sea-level pressure.

density_altitude

Get the sea-level density altitude.

Examples#

Configure the weather and atmosphere of the Mission

# Mission mission: Aviator Mission object
# Get the wind model used for the mission
windModel = mission.wind_model
# Let's use the mission model
windModel.wind_model_source = WindAtmosphereModelSource.MISSION_MODEL
# Let's use constant wind
windModel.wind_model_type = WindModelType.CONSTANT_WIND
# Get the constant wind model options
constantWind = windModel.mode_as_constant
# Set the wind bearing
constantWind.wind_bearing = 30
# Set the wind speed
constantWind.wind_speed = 5

# Get the atmosphere model used for the mission
atmosphere = mission.atmosphere_model
# Let's use the mission model
atmosphere.atmosphere_model_source = WindAtmosphereModelSource.MISSION_MODEL
# Get the basic atmosphere options
basicAtmosphere = atmosphere.mode_as_basic
# Use standard 1976 atmosphere
basicAtmosphere.basic_model_type = AtmosphereModelType.STANDARD1976
# Opt to override the values
basicAtmosphere.use_non_standard_atmosphere = True
# Override the temperature
basicAtmosphere.temperature = 290

Configure the wind and atmosphere for a procedure

# IProcedure procedure: Procedure object
# Get the wind model for the procedure
windModel = procedure.wind_model
# Use the procedure model
windModel.wind_model_source = WindAtmosphereModelSource.PROCEDURE_MODEL
# Let's use constant wind
windModel.wind_model_type = WindModelType.CONSTANT_WIND
# Get the constant wind model options
constantWind = windModel.mode_as_constant
# Set the wind bearing
constantWind.wind_bearing = 30
# Set the wind speed
constantWind.wind_speed = 5

# Get the atmosphere model used for the procedure
atmosphere = procedure.atmosphere_model
# Let's use the procedure model
atmosphere.atmosphere_model_source = WindAtmosphereModelSource.PROCEDURE_MODEL
# Get the basic atmosphere options
basicAtmosphere = atmosphere.mode_as_basic
# Use standard 1976 atmosphere
basicAtmosphere.basic_model_type = AtmosphereModelType.STANDARD1976

Import detail#

from ansys.stk.core.stkobjects.aviator import AtmosphereModelBasic

Property detail#

property AtmosphereModelBasic.name: str#

Get or set the name of the atmosphere model.

property AtmosphereModelBasic.basic_model_type: AtmosphereModelType#

Get or set the type of basic atmosphere.

property AtmosphereModelBasic.use_non_standard_atmosphere: bool#

Opt whether to use non standard atmosphere conditions.

property AtmosphereModelBasic.temperature: float#

Get or set the sea-level temperature.

property AtmosphereModelBasic.pressure: float#

Get or set the sea-level pressure.

property AtmosphereModelBasic.density_altitude: float#

Get the sea-level density altitude.