Description
General properties for propagators.
Public Methods
Public Properties
Interfaces
CoClasses that Implement IAgVANumericalPropagatorWrapper
Example
Set user defined Mu value on third body from propagators
[C#] |
---|
IAgComponentInfoCollection compInfoCol = scenario.ComponentDirectory.GetComponents(AgEComponent.eComponentAstrogator);
IAgComponentInfoCollection propagatorFolder = compInfoCol.GetFolder("Propagators");
IAgVANumericalPropagatorWrapper myEathHPOP = propagatorFolder.DuplicateComponent("Earth HPOP Default v10", "myEathHPOP") as IAgVANumericalPropagatorWrapper;
IAgVAThirdBodyFunction moon = myEathHPOP.PropagatorFunctions["Moon"] as IAgVAThirdBodyFunction;
moon.SetModeType(AgEVAThirdBodyMode.eVAThirdBodyModePointMass);
IAgVAPointMassFunction pointMass = moon.Mode as IAgVAPointMassFunction;
pointMass.GravSource = AgEVAGravParamSource.eVAGravParamSourceUser;
pointMass.Mu = 390000.0;
|
|
Set user defined Mu value on third body from propagators
[Visual Basic .NET] |
---|
Dim compInfoCol As IAgComponentInfoCollection = scenario.ComponentDirectory.GetComponents(AgEComponent.eComponentAstrogator)
Dim propagatorFolder As IAgComponentInfoCollection = compInfoCol.GetFolder("Propagators")
Dim myEathHPOP As IAgVANumericalPropagatorWrapper = TryCast(propagatorFolder.DuplicateComponent("Earth HPOP Default v10", "myEathHPOP"), IAgVANumericalPropagatorWrapper)
Dim moon As IAgVAThirdBodyFunction = TryCast(myEathHPOP.PropagatorFunctions("Moon"), IAgVAThirdBodyFunction)
moon.SetModeType(AgEVAThirdBodyMode.eVAThirdBodyModePointMass)
Dim pointMass As IAgVAPointMassFunction = TryCast(moon.Mode, IAgVAPointMassFunction)
pointMass.GravSource = AgEVAGravParamSource.eVAGravParamSourceUser
pointMass.Mu = 390000
|
|