Package org.orekit.forces.gravity
Class NewtonianAttraction
java.lang.Object
org.orekit.forces.gravity.NewtonianAttraction
- All Implemented Interfaces:
ForceModel,EventDetectorsProvider,ParameterDriversProvider
Force model for Newtonian central body attraction.
- Author:
- Luc Maisonobe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the single parameter of this model: the central attraction coefficient.Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends CalculusFieldElement<T>>
FieldVector3D<T> acceleration(FieldSpacecraftState<T> s, T[] parameters) Compute acceleration.acceleration(SpacecraftState s, double[] parameters) Compute acceleration.<T extends CalculusFieldElement<T>>
voidaddContribution(FieldSpacecraftState<T> s, FieldTimeDerivativesEquations<T> adder) Compute the contribution of the force model to the perturbing acceleration.voidCompute the contribution of the force model to the perturbing acceleration.booleanCheck if force model depends on position only at a given, fixed date.<T extends CalculusFieldElement<T>>
TgetMu(Field<T> field, FieldAbsoluteDate<T> date) Get the central attraction coefficient μ.doublegetMu(AbsoluteDate date) Get the central attraction coefficient μ.Get the drivers for parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getDateDetector, getEventDetectors, getFieldDateDetector, getFieldEventDetectorsMethods inherited from interface org.orekit.forces.ForceModel
dependsOnAttitudeRate, getEventDetectors, getFieldEventDetectors, getMassDerivative, getMassDerivative, init, initMethods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, isSupported
-
Field Details
-
CENTRAL_ATTRACTION_COEFFICIENT
Name of the single parameter of this model: the central attraction coefficient.- See Also:
-
-
Constructor Details
-
NewtonianAttraction
public NewtonianAttraction(double mu) Simple constructor.- Parameters:
mu- central attraction coefficient (m^3/s^2)
-
-
Method Details
-
dependsOnPositionOnly
public boolean dependsOnPositionOnly()Check if force model depends on position only at a given, fixed date.- Specified by:
dependsOnPositionOnlyin interfaceForceModel- Returns:
- true if force model depends on position only, false if it depends on mass or velocity, either directly or due to a dependency on attitude
-
getMu
Get the central attraction coefficient μ.- Parameters:
date- date at which the mu value wants to be known- Returns:
- mu central attraction coefficient (m³/s²)
-
getMu
Get the central attraction coefficient μ.- Type Parameters:
T- the type of the field element- Parameters:
field- field to which the state belongsdate- date at which the mu value wants to be known- Returns:
- mu central attraction coefficient (m³/s²)
-
addContribution
Compute the contribution of the force model to the perturbing acceleration.The default implementation simply adds the
accelerationas a non-Keplerian acceleration.- Specified by:
addContributionin interfaceForceModel- Parameters:
s- current state information: date, kinematics, attitudeadder- object where the contribution should be added
-
addContribution
public <T extends CalculusFieldElement<T>> void addContribution(FieldSpacecraftState<T> s, FieldTimeDerivativesEquations<T> adder) Compute the contribution of the force model to the perturbing acceleration.- Specified by:
addContributionin interfaceForceModel- Type Parameters:
T- type of the elements- Parameters:
s- current state information: date, kinematics, attitudeadder- object where the contribution should be added
-
acceleration
Compute acceleration.- Specified by:
accelerationin interfaceForceModel- Parameters:
s- current state information: date, kinematics, attitudeparameters- values of the force model parameters at state date, only 1 value for each parameterDriver- Returns:
- acceleration in same frame as state
-
acceleration
public <T extends CalculusFieldElement<T>> FieldVector3D<T> acceleration(FieldSpacecraftState<T> s, T[] parameters) Compute acceleration.- Specified by:
accelerationin interfaceForceModel- Type Parameters:
T- type of the elements- Parameters:
s- current state information: date, kinematics, attitudeparameters- values of the force model parameters at state date, only 1 value for each parameterDriver- Returns:
- acceleration in same frame as state
-
getParametersDrivers
Get the drivers for parameters.- Specified by:
getParametersDriversin interfaceParameterDriversProvider- Returns:
- drivers for parameters
-