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





Description

Properties for an Initial State segment.

Object Model





Public Methods

Public Method DisableControlParameter Disables a control parameter.
Public Method EnableControlParameter Enables a control parameter.
Public Method IsControlParameterEnabled Sees if a control is enabled.
Public Method SetElementType Selects an coordinate type.

Public Properties

Public Property ControlParametersAvailable Returns whether or not the control parameters can be set.
Public Property CoordSystemName The coordinate system.
Public Property Element The elements of the selected coordinate type.
Public Property ElementType The coordinate type.
Public Property FuelTank The fuel tank parameters.
Public Property OrbitEpoch The orbit epoch. Uses DateFormat Dimension.
Public Property SpacecraftParameters The spacecraft parameters.
Public Property UserVariables Interface 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

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1