Description
Gets or sets the gravitational parameter. Uses Gravity Param Dimension.
Property type
Read-write property
Syntax
[Visual Basic .NET] |
---|
Public Property Mu() As Double
|
[C#] |
---|
public double Mu {get; set;}
|
[Managed C++] |
---|
public: __property double get_Mu(); public: __property void set_Mu(
double
);
|
[Unmanaged C++] |
---|
public: HRESULT get_Mu(
double * pVal
);
public: HRESULT put_Mu(
double InVal
);
|
[Java] |
---|
public double getMu();
public void setMu(
double
);
|
[Python - STK API ] |
---|
@property
def Mu(self) -> float:
@Mu.setter
def Mu(self, InVal:float) -> None:
|
See Also
Example
Set user defined Mu value on third body
[C#] |
---|
IAgComponentInfoCollection compInfoCol = scenario.ComponentDirectory.GetComponents(AgEComponent.eComponentAstrogator);
IAgComponentInfoCollection thirdBodyFolder = compInfoCol.GetFolder("Propagator Functions").GetFolder("Third Bodies");
IAgVAThirdBodyFunction newMoon = thirdBodyFolder.DuplicateComponent("Moon", "NewMoon") as IAgVAThirdBodyFunction;
newMoon.SetModeType(AgEVAThirdBodyMode.eVAThirdBodyModePointMass);
IAgVAPointMassFunction pointMass = newMoon.Mode as IAgVAPointMassFunction;
pointMass.GravSource = AgEVAGravParamSource.eVAGravParamSourceUser;
pointMass.Mu = 390000.0;
|
|
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
[Visual Basic .NET] |
---|
Dim compInfoCol As IAgComponentInfoCollection = scenario.ComponentDirectory.GetComponents(AgEComponent.eComponentAstrogator)
Dim thirdBodyFolder As IAgComponentInfoCollection = compInfoCol.GetFolder("Propagator Functions").GetFolder("Third Bodies")
Dim newMoon As IAgVAThirdBodyFunction = TryCast(thirdBodyFolder.DuplicateComponent("Moon", "NewMoon"), IAgVAThirdBodyFunction)
newMoon.SetModeType(AgEVAThirdBodyMode.eVAThirdBodyModePointMass)
Dim pointMass As IAgVAPointMassFunction = TryCast(newMoon.Mode, IAgVAPointMassFunction)
pointMass.GravSource = AgEVAGravParamSource.eVAGravParamSourceUser
pointMass.Mu = 390000
|
|
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
|
|