Package org.orekit.forces.gravity
Class DeSitterRelativity
java.lang.Object
org.orekit.forces.gravity.DeSitterRelativity
- All Implemented Interfaces:
ForceModel,EventDetectorsProvider,ParameterDriversProvider
De Sitter post-Newtonian correction force due to general relativity.
De Sitter term causes a precession of the orbital plane at a rate of 19 mas per year.
- Since:
- 10.3
- Author:
- Bryan Cazabonne
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSuffix for parameter name for attraction coefficient enabling Jacobian processing.Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DeSitterRelativity(CelestialBody earth, CelestialBody sun) Simple constructor. -
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.booleanCheck if force model depends on position only at a given, fixed date.getEarth()Get the Earth model used to compute De Sitter effect.Get the drivers for parameters.getSun()Get the sun model used to compute De Sitter effect.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
addContribution, addContribution, 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
-
ATTRACTION_COEFFICIENT_SUFFIX
Suffix for parameter name for attraction coefficient enabling Jacobian processing.- See Also:
-
-
Constructor Details
-
DeSitterRelativity
Constructor.It uses the
DataContext.getDefault()to initialize the celestial bodies. -
DeSitterRelativity
Simple constructor.- Parameters:
earth- the Earthsun- the Sun
-
-
Method Details
-
getSun
Get the sun model used to compute De Sitter effect.- Returns:
- the sun model
-
getEarth
Get the Earth model used to compute De Sitter effect.- Returns:
- the earth model
-
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
-
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
-