AtmosphereModelBasic#
- class ansys.stk.core.stkobjects.aviator.AtmosphereModelBasic#
Class defining the basic atmosphere model.
Overview#
Get or set the name of the atmosphere model. |
|
Get or set the type of basic atmosphere. |
|
Opt whether to use non standard atmosphere conditions. |
|
Get or set the sea-level temperature. |
|
Get or set the sea-level pressure. |
|
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.basic_model_type: AtmosphereModelType#
Get or set the type of basic atmosphere.