Class ThirdBodyAttraction

    • Constructor Detail

      • ThirdBodyAttraction

        public ThirdBodyAttraction​(ExtendedPositionProvider positionProvider,
                                   String name,
                                   double mu)
        Simple constructor.
        Parameters:
        positionProvider - extended position provider for the body to consider
        name - name of the body
        mu - body gravitational constant
        Since:
        13.0
    • Method Detail

      • acceleration

        public Vector3D acceleration​(SpacecraftState s,
                                     double[] parameters)
        Compute acceleration.
        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.
        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