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​(ExtendedPositionProvider positionProvider,
                                         String name,
                                         double mu)
        Simple constructor.
        Parameters:
        positionProvider - provider for the body to consider
        name - body name
        mu - body gravitational constant
    • Method Detail

      • getBodyName

        public String getBodyName()
        Getter for the body's name.
        Returns:
        the body's name
      • 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