Class AbstractBodyAttraction

    • Field Detail

      • ATTRACTION_COEFFICIENT_SUFFIX

        public static final String ATTRACTION_COEFFICIENT_SUFFIX
        Suffix for parameter name for attraction coefficient enabling Jacobian processing.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractBodyAttraction

        protected AbstractBodyAttraction​(CelestialBody body)
        Simple constructor.
        Parameters:
        body - the third body to consider
    • Method Detail

      • getBodyName

        public String getBodyName()
        Getter for the body's name.
        Returns:
        the body's name
      • getBody

        @Deprecated
        protected CelestialBody getBody()
        Deprecated.
        in next major release this shall be removed as the class will not have to use a CelestialBody
        Protected getter for the body.
        Returns:
        the third body considered
      • getBodyPosition

        protected Vector3D getBodyPosition​(AbsoluteDate date,
                                           Frame frame)
        Get the body's position vector.
        Parameters:
        date - date
        frame - frame
        Returns:
        position
        Since:
        12.2
      • getBodyPosition

        protected <T extends CalculusFieldElement<T>> FieldVector3D<T> getBodyPosition​(FieldAbsoluteDate<T> date,
                                                                                       Frame frame)
        Get the body's position vector.
        Type Parameters:
        T - field type
        Parameters:
        date - date
        frame - frame
        Returns:
        position
        Since:
        12.2
      • getBodyPVCoordinates

        protected TimeStampedPVCoordinates getBodyPVCoordinates​(AbsoluteDate date,
                                                                Frame frame)
        Get the body's position-velocity-acceleration vector.
        Parameters:
        date - date
        frame - frame
        Returns:
        PV
        Since:
        12.2
      • dependsOnPositionOnly

        public boolean dependsOnPositionOnly()
        Check if force model depends on position only at a given, fixed date.
        Specified by:
        dependsOnPositionOnly in interface ForceModel
        Returns:
        true if force model depends on position only, false if it depends on velocity, either directly or due to a dependency on attitude