Class Relativity

java.lang.Object
org.orekit.forces.gravity.Relativity
All Implemented Interfaces:
ForceModel, EventDetectorsProvider, ParameterDriversProvider

public class Relativity extends Object implements ForceModel
Post-Newtonian correction force due to general relativity. The main effect is the precession of periapsis by a few arcseconds per year.

Implemented from Montenbruck and Gill equation 3.146.

Author:
Evan Ward
See Also:
  • "Montenbruck, Oliver, and Gill, Eberhard. Satellite orbits : models, methods, and applications. Berlin New York: Springer, 2000."
  • Constructor Details

    • Relativity

      public Relativity(double gm)
      Create a force model to add post-Newtonian acceleration corrections to an Earth orbit.
      Parameters:
      gm - Earth's gravitational parameter.
  • Method Details

    • acceleration

      public Vector3D acceleration(SpacecraftState s, double[] parameters)
      Compute acceleration.
      Specified by:
      acceleration in interface ForceModel
      Parameters:
      s - current state information: date, kinematics, attitude
      parameters - 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:
      acceleration in interface ForceModel
      Type Parameters:
      T - type of the elements
      Parameters:
      s - current state information: date, kinematics, attitude
      parameters - values of the force model parameters at state date, only 1 value for each parameterDriver
      Returns:
      acceleration in same frame as state
    • getParametersDrivers

      public List<ParameterDriver> getParametersDrivers()
      Get the drivers for parameters. By default, no parameters. Override, for instance, to enable partial derivatives.
      Specified by:
      getParametersDrivers in interface ForceModel
      Specified by:
      getParametersDrivers in interface ParameterDriversProvider
      Returns:
      drivers for parameters