AGI STK Astrogator 11 Send comments on this topic.
IAgVAMCSInitialState Interface
Windows






Windows & Linux

Description

Properties for an Initial State segment.

Object Model





Public Methods

Public Method DisableControlParameterDisables a control parameter.
Public Method EnableControlParameterEnables a control parameter.
Public Method IsControlParameterEnabledSees if a control is enabled.
Public Method SetElementTypeSelects an coordinate type.

Public Properties

Public Property ControlParametersAvailableReturns whether or not the control parameters can be set.
Public Property CoordSystemNameThe coordinate system.
Public Property ElementThe elements of the selected coordinate type.
Public Property ElementTypeThe coordinate type.
Public Property FuelTankThe fuel tank parameters.
Public Property OrbitEpochThe orbit epoch. Uses DateFormat Dimension.
Public Property SpacecraftParametersThe spacecraft parameters.
Public Property UserVariablesInterface used to modify user variables for the initial state segment.

Example

Configure initial state segment
[C#]Copy Code
// Add a new segment and cast the segment to the IAgVAMCSInitialState interface 
IAgVAMCSSegment segment = driver.MainSequence.Insert(AgEVASegmentType.eVASegmentTypeInitialState, "Inner Orbit""-"); 
IAgVAMCSInitialState initState = segment as IAgVAMCSInitialState; 
 
initState.CoordSystemName = "CentralBody/Earth Fixed"
initState.OrbitEpoch = "1 Jan 2012 12:00:00.000"
 
// Set element type and cast the Element property to the appropriate interface 
// configure the element as necessary 
initState.SetElementType(AgEVAElementType.eVAElementTypeCartesian); 
IAgVAElementCartesian cartesian = initState.Element as IAgVAElementCartesian; 
cartesian.Vx = 8051.21
cartesian.Y = 55
cartesian.Z = 0
cartesian.Vx = 0.45
cartesian.Vy = 8.10158
cartesian.Vz = 3.51009
 
// Configure fuel tank if necessary 
initState.FuelTank.FuelDensity = 1001
initState.FuelTank.FuelMass = 501
initState.FuelTank.TankPressure = 5001
initState.FuelTank.TankTemperature = 292
 
// Configure spacecraft parameters 
initState.SpacecraftParameters.Cd = 2.3
initState.SpacecraftParameters.Ck = 1.1
initState.SpacecraftParameters.Cr = 1.3
initState.SpacecraftParameters.DragArea = 21
initState.SpacecraftParameters.DryMass = 501
initState.SpacecraftParameters.K1 = /*$k1$K1*/2
initState.SpacecraftParameters.K2 = 3
initState.SpacecraftParameters.RadiationPressureArea = 23.0
initState.SpacecraftParameters.SolarRadiationPressureArea = 22.0
 

Configure initial state segment
[Visual Basic .NET]Copy Code
' Add a new segment and cast the segment to the IAgVAMCSInitialState interface
Dim segment As IAgVAMCSSegment = driver.MainSequence.Insert(AgEVASegmentType.eVASegmentTypeInitialState, "Inner Orbit", "-")
Dim initState As IAgVAMCSInitialState = TryCast(segment, IAgVAMCSInitialState)

initState.CoordSystemName = "CentralBody/Earth Fixed"
initState.OrbitEpoch = "1 Jan 2012 12:00:00.000"

' Set element type and cast the Element property to the appropriate interface
' configure the element as necessary
initState.SetElementType(AgEVAElementType.eVAElementTypeCartesian)
Dim cartesian As IAgVAElementCartesian = TryCast(initState.Element, IAgVAElementCartesian)
cartesian.Vx = 8051.21
cartesian.Y = 55
cartesian.Z = 0
cartesian.Vx = 0.45
cartesian.Vy = 8.10158
cartesian.Vz = 3.51009

' Configure fuel tank if necessary
initState.FuelTank.FuelDensity = 1001
initState.FuelTank.FuelMass = 501
initState.FuelTank.TankPressure = 5001
initState.FuelTank.TankTemperature = 292

' Configure spacecraft parameters
initState.SpacecraftParameters.Cd = 2.3
initState.SpacecraftParameters.Ck = 1.1
initState.SpacecraftParameters.Cr = 1.3
initState.SpacecraftParameters.DragArea = 21
initState.SpacecraftParameters.DryMass = 501
initState.SpacecraftParameters.K1 = 2
initState.SpacecraftParameters.K2 = 3
initState.SpacecraftParameters.RadiationPressureArea = 23
initState.SpacecraftParameters.SolarRadiationPressureArea = 22

Insert an Initial State Segment into the MCS and configure
[MATLAB]Copy Code
% IAgVADriverMCS driver: MCS driver interface 
initState = driver.MainSequence.Insert('eVASegmentTypeInitialState', 'Inner Orbit', '-'); 
initState.InitialState.Epoch = scenario.StartTime; 
initState.SetElementType('eVAElementTypeKeplerian'); 
kep = initState.Element; 
kep.PeriapsisRadiusSize = 6700; 
kep.ArgOfPeriapsis = 0; 
kep.Eccentricity = 0; 
kep.Inclination = 0; 
kep.RAAN = 0; 
kep.TrueAnomaly = 0; 
 
 

CoClasses that Implement IAgVAMCSInitialState

© 2018 Analytical Graphics, Inc. All Rights Reserved.