STK AviatorSend comments on this topic.
IAgAvtrWindModelConstant Interface

Description

Interface used to access the options for a Constant Bearing/Speed wind model.

Public Properties

Public Property BlendTimeGets or sets the blend time to transition from the previous wind model if one exists.
Public Property NameGets or sets the name of the wind model.
Public Property WindBearingGets or sets the wind's true bearing.
Public Property WindSpeedGets or sets the constant wind speed.

CoClasses that Implement IAgAvtrWindModelConstant

Example

Configure the weather and atmosphere of the Mission
[C#]
// Get the wind model used for the mission
IAgAvtrWindModel windModel = mission.WindModel;
// Let's use the mission model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eMissionModel;
// Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind;
// Get the constant wind model options
IAgAvtrWindModelConstant constantWind = windModel.ModeAsConstant;
// Set the wind bearing
constantWind.WindBearing = 30;
// Set the wind speed
constantWind.WindSpeed = 5;

// Get the atmosphere model used for the mission
IAgAvtrAtmosphereModel atmosphere = mission.AtmosphereModel;
// Let's use the mission model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eMissionModel;
// Get the basic atmosphere options
IAgAvtrAtmosphereModelBasic basicAtmosphere = atmosphere.ModeAsBasic;
// Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976;
// Opt to override the values
basicAtmosphere.UseNonStandardAtmosphere = true;
// Override the temperature
basicAtmosphere.Temperature = 290;
Configure the wind and atmosphere for a procedure
[C#]
// Get the wind model for the procedure
IAgAvtrWindModel windModel = procedure.WindModel;
// Use the procedure model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel;
// Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind;
// Get the constant wind model options
IAgAvtrWindModelConstant constantWind = windModel.ModeAsConstant;
// Set the wind bearing
constantWind.WindBearing = 30;
// Set the wind speed
constantWind.WindSpeed = 5;

// Get the atmosphere model used for the procedure
IAgAvtrAtmosphereModel atmosphere = procedure.AtmosphereModel;
// Let's use the procedure model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel;
// Get the basic atmosphere options
IAgAvtrAtmosphereModelBasic basicAtmosphere = atmosphere.ModeAsBasic;
// Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976;
Configure the weather and atmosphere of the Mission
[Visual Basic .NET]
' Get the wind model used for the mission
Dim windModel As IAgAvtrWindModel = mission.WindModel
' Let's use the mission model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eMissionModel
' Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind
' Get the constant wind model options
Dim constantWind As IAgAvtrWindModelConstant = windModel.ModeAsConstant
' Set the wind bearing
constantWind.WindBearing = 30
' Set the wind speed
constantWind.WindSpeed = 5

' Get the atmosphere model used for the mission
Dim atmosphere As IAgAvtrAtmosphereModel = mission.AtmosphereModel
' Let's use the mission model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eMissionModel
' Get the basic atmosphere options
Dim basicAtmosphere As IAgAvtrAtmosphereModelBasic = atmosphere.ModeAsBasic
' Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976
' Opt to override the values
basicAtmosphere.UseNonStandardAtmosphere = True
' Override the temperature
basicAtmosphere.Temperature = 290
Configure the wind and atmosphere for a procedure
[Visual Basic .NET]
' Get the wind model for the procedure
Dim windModel As IAgAvtrWindModel = procedure.WindModel
' Use the procedure model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel
' Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind
' Get the constant wind model options
Dim constantWind As IAgAvtrWindModelConstant = windModel.ModeAsConstant
' Set the wind bearing
constantWind.WindBearing = 30
' Set the wind speed
constantWind.WindSpeed = 5

' Get the atmosphere model used for the procedure
Dim atmosphere As IAgAvtrAtmosphereModel = procedure.AtmosphereModel
' Let's use the procedure model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel
' Get the basic atmosphere options
Dim basicAtmosphere As IAgAvtrAtmosphereModelBasic = atmosphere.ModeAsBasic
' Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976
Configure the wind and atmosphere for a procedure
[Python - STK API]
      # IAgAvtrProcedure procedure: Procedure object
# Get the wind model for the procedure
windModel = procedure.WindModel
# Use the procedure model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel
# Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind
# Get the constant wind model options
constantWind = windModel.ModeAsConstant
# Set the wind bearing
constantWind.WindBearing = 30
# Set the wind speed
constantWind.WindSpeed = 5

# Get the atmosphere model used for the procedure
atmosphere = procedure.AtmosphereModel
# Let's use the procedure model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eProcedureModel
# Get the basic atmosphere options
basicAtmosphere = atmosphere.ModeAsBasic
# Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976

Configure the weather and atmosphere of the Mission
[Python - STK API]
      # IAgAvtrMission mission: Aviator Mission object
# Get the wind model used for the mission
windModel = mission.WindModel
# Let's use the mission model
windModel.WindModelSource = AgEAvtrWindAtmosModelSource.eMissionModel
# Let's use constant wind
windModel.WindModelType = AgEAvtrWindModelType.eConstantWind
# Get the constant wind model options
constantWind = windModel.ModeAsConstant
# Set the wind bearing
constantWind.WindBearing = 30
# Set the wind speed
constantWind.WindSpeed = 5

# Get the atmosphere model used for the mission
atmosphere = mission.AtmosphereModel
# Let's use the mission model
atmosphere.AtmosphereModelSource = AgEAvtrWindAtmosModelSource.eMissionModel
# Get the basic atmosphere options
basicAtmosphere = atmosphere.ModeAsBasic
# Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = AgEAvtrAtmosphereModel.eStandard1976
# Opt to override the values
basicAtmosphere.UseNonStandardAtmosphere = True
# Override the temperature
basicAtmosphere.Temperature = 290

Configure the weather and atmosphere of the Mission
[MATLAB]
% IAgAvtrMission mission: Aviator Mission object
% Get the wind model used for the mission
windModel = mission.WindModel;
% Let's use the mission model
windModel.WindModelSource = 'eMissionModel';
% Let's use constant wind
windModel.WindModelType = 'eConstantWind';
% Get the constant wind model options
constantWind = windModel.ModeAsConstant;
% Set the wind bearing
constantWind.WindBearing = 30;
% Set the wind speed
constantWind.WindSpeed = 5;

% Get the atmosphere model used for the mission
atmosphere = mission.AtmosphereModel;
% Let's use the mission model
atmosphere.AtmosphereModelSource = 'eMissionModel';
% Get the basic atmosphere options
basicAtmosphere = atmosphere.ModeAsBasic;
% Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = 'eStandard1976';
% Opt to override the values
basicAtmosphere.UseNonStandardAtmosphere = 1;
% Override the temperature
basicAtmosphere.Temperature = 290;


        
Configure the wind and atmosphere for a procedure
[MATLAB]
% IAgAvtrProcedure procedure: Procedure object
% Get the wind model for the procedure
windModel = procedure.WindModel;
% Use the procedure model
windModel.WindModelSource = 'eProcedureModel';
% Let's use constant wind
windModel.WindModelType = 'eConstantWind';
% Get the constant wind model options
constantWind = windModel.ModeAsConstant;
% Set the wind bearing
constantWind.WindBearing = 30;
% Set the wind speed
constantWind.WindSpeed = 5;

% Get the atmosphere model used for the procedure
atmosphere = procedure.AtmosphereModel;
% Let's use the procedure model
atmosphere.AtmosphereModelSource = 'eProcedureModel';
% Get the basic atmosphere options
basicAtmosphere = atmosphere.ModeAsBasic;
% Use standard 1976 atmosphere
basicAtmosphere.BasicModelType = 'eStandard1976';


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.